{"id":1572,"date":"2023-03-21T10:10:21","date_gmt":"2023-03-21T01:10:21","guid":{"rendered":"https:\/\/bdsl.jbnu.ac.kr\/blog\/?p=1572"},"modified":"2023-03-27T01:38:16","modified_gmt":"2023-03-26T16:38:16","slug":"python-programming-basics","status":"publish","type":"post","link":"https:\/\/bdsl.jbnu.ac.kr\/blog\/python-programming-basics\/","title":{"rendered":"Python programming (basics)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">A <strong>computer program<\/strong> is a sequence of instructions that can be interpreted and executed by computer. It is written in a <strong>programming language<\/strong> that can be interepreted by computer. Python is a <strong>high-level programming language<\/strong>, which can be easily interpreted by human. Python interpreter converts the Python code (high-level) into instructions (low-level) the computer can understand. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Python is composed of objects<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For better human readability and easy usage, Python uses <strong>objects<\/strong> that have various functionality in it. For example, a text or a list of characters is represented as a <strong>string<\/strong> object, and it provides functions that allows users to extract a part of it or to concatenate two string objects. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"python\" class=\"language-python line-numbers\"># Create a string object with name of 'sample_text' \nsimple_text = \"hello\"\n\n# Get sub-string \nsimple_text[2:5]\n\n# Concatenate two strings \nsimple_text + simple_text <\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Flow of information<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Programs are often written to execute <strong>computations<\/strong>, which is a series of process including (1) getting input, (2) storing data, (3) calculating or transforming the input into other form, (4) returning the result. It can be understood as a process of converting one form of data into another forms. For example, a table of data with the time and the atmosphere temperature can be converted into a figure showing that the temperature increases as the sun rises and decreases as the sun sets. The program converts table format data into figure format data, to provides visual insights on the data. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Therefore, an usual program will have the following sets of instructures. <\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Get inputs <\/li>\n\n\n\n<li>Store the input into variables (objects) <\/li>\n\n\n\n<li>Convert variables into other types of variables <\/li>\n\n\n\n<li>(a series of further data conversions)<\/li>\n\n\n\n<li>Return the final variable <\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">These instructions can be written in a series of command lines. Yet, in many cases we need to <strong>control<\/strong> the flow of information. A certain operation should be done when a certain condition is met. Operations can be repeated for a number of times. In Python <strong>if<\/strong>, <strong>for<\/strong>, <strong>while<\/strong> sentences can be used to control the flow of information. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">1. Data types <\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Basic types of data is defined as various types of objects in Python. Numbers can be represened by <strong>int<\/strong>, <strong>float<\/strong>, <strong>complex<\/strong>, and texts by <strong>string<\/strong>. A <strong>list <\/strong>and <strong>tuple <\/strong>works as a container, while the former can be changed while the later cannot be changed. A <strong>set<\/strong> represents mathematical sets, where each item is unique. A <strong>dictionary <\/strong>is composed of keys and values, where values are retrieved by the key. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">2. Flow control <\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The instructions in a prgram is executed one line after the other line. Yet, the flow can be controlled by using <strong>if<\/strong>, <strong>for<\/strong>, and <strong>while<\/strong> sentences. A condition and an instruction block, marked by indentation, is defined in these sentences. The block of an <strong>if<\/strong> sentence is executed only when the condition is met. The block below <strong>for<\/strong> and <strong>while<\/strong> are <span style=\"text-decoration: underline;\">repeated<\/span> while the condition is met. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">3. Simple tutorial<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">3.1. Variable <\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A <strong>variable <\/strong>can be thought as a name of an object. A piece of data (numbers, text, etc) is stored as an object (int, float, str). You can site it by assigning a name to it, the name is called <strong>variable<\/strong>. More precisely, a variable is a designator of the object. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A variable is assigned by using an operator <strong>&#8216;=&#8217;<\/strong>. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"python\" class=\"language-python\">name = \"name is a variable designating this string object\"<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">3.2. Print values<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">You can print the value (content) of a <strong>variable<\/strong>. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"python\" class=\"language-python\">print(\"hello\")\nprint(\"you\", \"can\", \"write something here\")\nprint(\"numbers can also be printed:\", 1234)<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">3.3. Data type for numbers<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">An integer and real number is represented by an <strong>int <\/strong>and <strong>float <\/strong>obejct. The object can be implicitly called by writing number it self, like <strong>10<\/strong> and <strong>10.0<\/strong> as shown below. If the type is not explicitly given, the interpreter infers the type of data. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"python\" class=\"language-python\"># int (\uc815\uc218), float (\uc2e4\uc218)\nx_i = 10 \nx_f = 10.0\ny_i = int(4)\ny_f = float(4)\nprint(x_i, x_f, y_i, y_f)\nprint(type(x_i), type(x_f), type(y_i), type(y_f))<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">3.4. Data type for text <\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A text or string of characters is represented by an <strong>str <\/strong>object. String object can be created by enclosing text with <strong>&#8220;<\/strong> or <strong>&#8216;<\/strong> marker. The object has multiple functions, which allows you operations like retrieving part of the sentence. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"python\" class=\"language-python\"># define a text data \nmsg = \"hello! good to see you!\"\n\n# get length of the text\nprint(len(msg))\n\n# get first 5 characters\nprint(msg[:5])<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">3.5. Container data type<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Multiple items can be stored in a <strong>list<\/strong> and <strong>tuple<\/strong> object. The former change changed, while the later is not. Unique items are stored in a <strong>set<\/strong> object. A <strong>dict<\/strong> object stores key and value pairs. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"python\" class=\"language-python\"># List \nfruits = [\"apple\", \"orange\", \"grape\"]\n\n# tuple \nflowers = (\"rose\", \"lily\", \"lilac\")\n\n# retrieval of data \nfor fr in fruits:\n    print(fr)\n\n# modification of data (addition of a fruit)\nfruits.append(\"watermelon\")\n\n# set \nfruits_set = {\"apple\", \"orange\", \"grape\", \"grape\"}\n\n# dict\ntelephone_number = {\"James\": \"010-xxx-xxxx\", \"Mary\": \"010-yyy-yyyy\"}\nprint(telephone_number[\"James\"])<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">3.6. Flow control<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The flow of data can be controlled by using <strong>if<\/strong>, <strong>for<\/strong>, and <strong>while<\/strong> sentence. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"python\" class=\"language-python\"># Print fruit with name containing letter 'o'.\nfor fr in fruits:\n    if 'o' in fr:\n        print(fr)\n\n# print 1 to 10 using while sentence\ncnt = 1\nwhile cnt &lt;= 10:\n    print(cnt)\n    cnt += 1<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Resources<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Basic grammer of an programming language can be learned from various online sources. W3Schools is a good online tutorials to learn Python. It covers a wide variety of issues including File Handling, Modules, Matplotlibs, etc. It is advised to visit each of the tutorial. <\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Learn basics by reading this post<\/li>\n\n\n\n<li>Participate in online tutorials (W3School): <a href=\"https:\/\/www.w3schools.com\/python\/\">https:\/\/www.w3schools.com\/python\/<\/a><\/li>\n\n\n\n<li>Practice to write your own code<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Online tutorial for Python &#8211; <a href=\"https:\/\/www.w3schools.com\/python\/\">https:\/\/www.w3schools.com\/python\/<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>A computer program is a sequence of instructions that can be interpreted and executed by computer. It is written in a programming language that can be interepreted by computer. Python is a high-level programming language, which can be easily interpreted by human. Python interpreter converts the Python code (high-level) into instructions (low-level) the computer can [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":"","_members_access_role":[],"_members_access_error":""},"categories":[1],"tags":[],"class_list":["post-1572","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Python programming (basics) - Biomedical Data Science Laboratory<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/bdsl.jbnu.ac.kr\/blog\/python-programming-basics\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python programming (basics) - Biomedical Data Science Laboratory\" \/>\n<meta property=\"og:description\" content=\"A computer program is a sequence of instructions that can be interpreted and executed by computer. It is written in a programming language that can be interepreted by computer. Python is a high-level programming language, which can be easily interpreted by human. Python interpreter converts the Python code (high-level) into instructions (low-level) the computer can [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/bdsl.jbnu.ac.kr\/blog\/python-programming-basics\/\" \/>\n<meta property=\"og:site_name\" content=\"Biomedical Data Science Laboratory\" \/>\n<meta property=\"article:published_time\" content=\"2023-03-21T01:10:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-03-26T16:38:16+00:00\" \/>\n<meta name=\"author\" content=\"sphong\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"sphong\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/bdsl.jbnu.ac.kr\\\/blog\\\/python-programming-basics\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/bdsl.jbnu.ac.kr\\\/blog\\\/python-programming-basics\\\/\"},\"author\":{\"name\":\"sphong\",\"@id\":\"https:\\\/\\\/bdsl.jbnu.ac.kr\\\/blog\\\/#\\\/schema\\\/person\\\/8d22f775fcc218b1184ec0d890034e9b\"},\"headline\":\"Python programming (basics)\",\"datePublished\":\"2023-03-21T01:10:21+00:00\",\"dateModified\":\"2023-03-26T16:38:16+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/bdsl.jbnu.ac.kr\\\/blog\\\/python-programming-basics\\\/\"},\"wordCount\":747,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/bdsl.jbnu.ac.kr\\\/blog\\\/#organization\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/bdsl.jbnu.ac.kr\\\/blog\\\/python-programming-basics\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/bdsl.jbnu.ac.kr\\\/blog\\\/python-programming-basics\\\/\",\"url\":\"https:\\\/\\\/bdsl.jbnu.ac.kr\\\/blog\\\/python-programming-basics\\\/\",\"name\":\"Python programming (basics) - Biomedical Data Science Laboratory\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/bdsl.jbnu.ac.kr\\\/blog\\\/#website\"},\"datePublished\":\"2023-03-21T01:10:21+00:00\",\"dateModified\":\"2023-03-26T16:38:16+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/bdsl.jbnu.ac.kr\\\/blog\\\/python-programming-basics\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/bdsl.jbnu.ac.kr\\\/blog\\\/python-programming-basics\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/bdsl.jbnu.ac.kr\\\/blog\\\/python-programming-basics\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/bdsl.jbnu.ac.kr\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python programming (basics)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/bdsl.jbnu.ac.kr\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/bdsl.jbnu.ac.kr\\\/blog\\\/\",\"name\":\"Biomedical Data Science Laboratory\",\"description\":\"Home page for Biomedical Data Science Laboratory.\",\"publisher\":{\"@id\":\"https:\\\/\\\/bdsl.jbnu.ac.kr\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/bdsl.jbnu.ac.kr\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/bdsl.jbnu.ac.kr\\\/blog\\\/#organization\",\"name\":\"Biomedical Data Science Laboratory\",\"url\":\"https:\\\/\\\/bdsl.jbnu.ac.kr\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/bdsl.jbnu.ac.kr\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/bdsl.jbnu.ac.kr\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/bdsl.jbnu.ac.kr\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/11\\\/logo.png\",\"width\":1792,\"height\":638,\"caption\":\"Biomedical Data Science Laboratory\"},\"image\":{\"@id\":\"https:\\\/\\\/bdsl.jbnu.ac.kr\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/bdsl.jbnu.ac.kr\\\/blog\\\/#\\\/schema\\\/person\\\/8d22f775fcc218b1184ec0d890034e9b\",\"name\":\"sphong\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/bdsl.jbnu.ac.kr\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/cropped-\uc99d\uba85\uc0ac\uc9c4-96x96.jpg\",\"url\":\"https:\\\/\\\/bdsl.jbnu.ac.kr\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/cropped-\uc99d\uba85\uc0ac\uc9c4-96x96.jpg\",\"contentUrl\":\"https:\\\/\\\/bdsl.jbnu.ac.kr\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/04\\\/cropped-\uc99d\uba85\uc0ac\uc9c4-96x96.jpg\",\"caption\":\"sphong\"},\"description\":\"Assistant professor Department of Molecular Biology Jeonbuk National University\",\"sameAs\":[\"https:\\\/\\\/bdsl.jbnu.ac.kr\"],\"url\":\"https:\\\/\\\/bdsl.jbnu.ac.kr\\\/blog\\\/author\\\/sphong\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python programming (basics) - Biomedical Data Science Laboratory","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/bdsl.jbnu.ac.kr\/blog\/python-programming-basics\/","og_locale":"en_US","og_type":"article","og_title":"Python programming (basics) - Biomedical Data Science Laboratory","og_description":"A computer program is a sequence of instructions that can be interpreted and executed by computer. It is written in a programming language that can be interepreted by computer. Python is a high-level programming language, which can be easily interpreted by human. Python interpreter converts the Python code (high-level) into instructions (low-level) the computer can [&hellip;]","og_url":"https:\/\/bdsl.jbnu.ac.kr\/blog\/python-programming-basics\/","og_site_name":"Biomedical Data Science Laboratory","article_published_time":"2023-03-21T01:10:21+00:00","article_modified_time":"2023-03-26T16:38:16+00:00","author":"sphong","twitter_card":"summary_large_image","twitter_misc":{"Written by":"sphong","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/bdsl.jbnu.ac.kr\/blog\/python-programming-basics\/#article","isPartOf":{"@id":"https:\/\/bdsl.jbnu.ac.kr\/blog\/python-programming-basics\/"},"author":{"name":"sphong","@id":"https:\/\/bdsl.jbnu.ac.kr\/blog\/#\/schema\/person\/8d22f775fcc218b1184ec0d890034e9b"},"headline":"Python programming (basics)","datePublished":"2023-03-21T01:10:21+00:00","dateModified":"2023-03-26T16:38:16+00:00","mainEntityOfPage":{"@id":"https:\/\/bdsl.jbnu.ac.kr\/blog\/python-programming-basics\/"},"wordCount":747,"commentCount":0,"publisher":{"@id":"https:\/\/bdsl.jbnu.ac.kr\/blog\/#organization"},"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/bdsl.jbnu.ac.kr\/blog\/python-programming-basics\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/bdsl.jbnu.ac.kr\/blog\/python-programming-basics\/","url":"https:\/\/bdsl.jbnu.ac.kr\/blog\/python-programming-basics\/","name":"Python programming (basics) - Biomedical Data Science Laboratory","isPartOf":{"@id":"https:\/\/bdsl.jbnu.ac.kr\/blog\/#website"},"datePublished":"2023-03-21T01:10:21+00:00","dateModified":"2023-03-26T16:38:16+00:00","breadcrumb":{"@id":"https:\/\/bdsl.jbnu.ac.kr\/blog\/python-programming-basics\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/bdsl.jbnu.ac.kr\/blog\/python-programming-basics\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/bdsl.jbnu.ac.kr\/blog\/python-programming-basics\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/bdsl.jbnu.ac.kr\/blog\/"},{"@type":"ListItem","position":2,"name":"Python programming (basics)"}]},{"@type":"WebSite","@id":"https:\/\/bdsl.jbnu.ac.kr\/blog\/#website","url":"https:\/\/bdsl.jbnu.ac.kr\/blog\/","name":"Biomedical Data Science Laboratory","description":"Home page for Biomedical Data Science Laboratory.","publisher":{"@id":"https:\/\/bdsl.jbnu.ac.kr\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/bdsl.jbnu.ac.kr\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/bdsl.jbnu.ac.kr\/blog\/#organization","name":"Biomedical Data Science Laboratory","url":"https:\/\/bdsl.jbnu.ac.kr\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/bdsl.jbnu.ac.kr\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/bdsl.jbnu.ac.kr\/blog\/wp-content\/uploads\/2022\/11\/logo.png","contentUrl":"https:\/\/bdsl.jbnu.ac.kr\/blog\/wp-content\/uploads\/2022\/11\/logo.png","width":1792,"height":638,"caption":"Biomedical Data Science Laboratory"},"image":{"@id":"https:\/\/bdsl.jbnu.ac.kr\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/bdsl.jbnu.ac.kr\/blog\/#\/schema\/person\/8d22f775fcc218b1184ec0d890034e9b","name":"sphong","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/bdsl.jbnu.ac.kr\/blog\/wp-content\/uploads\/2022\/04\/cropped-\uc99d\uba85\uc0ac\uc9c4-96x96.jpg","url":"https:\/\/bdsl.jbnu.ac.kr\/blog\/wp-content\/uploads\/2022\/04\/cropped-\uc99d\uba85\uc0ac\uc9c4-96x96.jpg","contentUrl":"https:\/\/bdsl.jbnu.ac.kr\/blog\/wp-content\/uploads\/2022\/04\/cropped-\uc99d\uba85\uc0ac\uc9c4-96x96.jpg","caption":"sphong"},"description":"Assistant professor Department of Molecular Biology Jeonbuk National University","sameAs":["https:\/\/bdsl.jbnu.ac.kr"],"url":"https:\/\/bdsl.jbnu.ac.kr\/blog\/author\/sphong\/"}]}},"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"sphong","author_link":"https:\/\/bdsl.jbnu.ac.kr\/blog\/author\/sphong\/"},"uagb_comment_info":0,"uagb_excerpt":"A computer program is a sequence of instructions that can be interpreted and executed by computer. It is written in a programming language that can be interepreted by computer. Python is a high-level programming language, which can be easily interpreted by human. Python interpreter converts the Python code (high-level) into instructions (low-level) the computer can&hellip;","_links":{"self":[{"href":"https:\/\/bdsl.jbnu.ac.kr\/blog\/wp-json\/wp\/v2\/posts\/1572","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bdsl.jbnu.ac.kr\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bdsl.jbnu.ac.kr\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bdsl.jbnu.ac.kr\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bdsl.jbnu.ac.kr\/blog\/wp-json\/wp\/v2\/comments?post=1572"}],"version-history":[{"count":16,"href":"https:\/\/bdsl.jbnu.ac.kr\/blog\/wp-json\/wp\/v2\/posts\/1572\/revisions"}],"predecessor-version":[{"id":1615,"href":"https:\/\/bdsl.jbnu.ac.kr\/blog\/wp-json\/wp\/v2\/posts\/1572\/revisions\/1615"}],"wp:attachment":[{"href":"https:\/\/bdsl.jbnu.ac.kr\/blog\/wp-json\/wp\/v2\/media?parent=1572"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bdsl.jbnu.ac.kr\/blog\/wp-json\/wp\/v2\/categories?post=1572"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bdsl.jbnu.ac.kr\/blog\/wp-json\/wp\/v2\/tags?post=1572"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}