{"id":22,"date":"2019-01-09T18:53:07","date_gmt":"2019-01-09T18:53:07","guid":{"rendered":"https:\/\/kindsonthegenius.com\/python\/?p=22"},"modified":"2019-03-31T21:06:23","modified_gmt":"2019-03-31T21:06:23","slug":"03-python-variable-and-data-types","status":"publish","type":"post","link":"https:\/\/www.kindsonthegenius.com\/python\/03-python-variable-and-data-types\/","title":{"rendered":"Python &#8211; Basic Syntax"},"content":{"rendered":"\r\n<p class=\"wp-block-paragraph\">The syntax of the Python Programming Language is fairly easy to learn and you can easily follow.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">In this lesson, we are going to write a program in Python and then work through the program line by line to explain the various ingredients that make up a Python Program.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">I would recommend you use PyCharm to write and run this codes. PyCharm is free and can be downloaded from <a href=\"https:\/\/www.jetbrains.com\/pycharm-edu\/download\">https:\/\/www.jetbrains.com\/pycharm-edu\/download<\/a><\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code># Your First Python Program\r\nname = \"Kindson The Tech Pro\"\r\nPrint(\"Name is \" + name)\r\n# End of Program<\/code><\/pre>\r\n\r\n\r\n<hr \/>\r\n\r\n\r\n<h4 class=\"wp-block-heading\">Comments in Python<\/h4>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The first line in the code that begins with a # is a single line comment in Python. Comments are texts you include in your program that are not really part of your program. They are not executed by the interpreter. So you can use comment to add information like:<\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>Your Name<\/li>\r\n<li>Date of the Program<\/li>\r\n<li>Description of the Program<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">&nbsp;<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">You can create multi-line comments in Python using triple single quotes (&#8221;&#8217;). The comment begins with three single quotes and ends with three single quotes.<\/p>\r\n\r\n\r\n<hr \/>\r\n\r\n\r\n<h4 class=\"wp-block-heading\">Identifiers in Python<\/h4>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">An identifier in Python is a name given to a variable, function, class or other objects by a programmer. Remember that variables are memory locations.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">A Python identifier begins with an alphabet or an underscore followed y a number of letters, digits or underscores. You cannot use punctuation or special characters in an identifier. Also note that identifiers are case sensitive. The following are rules for identifiers in Python:<\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>An identifier cannot start with a number<\/li>\r\n<li>An identifiers cannot contain any special character<\/li>\r\n<li>Class names in Python begins with an uppercase letter while other identifiers begins with lower case<\/li>\r\n<li>An identifier that begins with two underscores indicates its a private identifier<\/li>\r\n<li>An identifier that ends with two underscores indicate it is an inbuilt identifier provided by the language<\/li>\r\n<\/ul>\r\n\r\n\r\n<hr \/>\r\n\r\n\r\n<h4 class=\"wp-block-heading\">Python Reserved Words<\/h4>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Reserved words are keywords used by the programming language and you cannot used then and names of your variables or identifiers.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Python keywords are all lowercase as listed below:<\/p>\r\n\r\n\r\n\r\n<table class=\"wp-block-table aligncenter is-style-stripes\" style=\"width: 100%;\">\r\n<tbody>\r\n<tr>\r\n<td>and<\/td>\r\n<td>exec<\/td>\r\n<td>not<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>assert<\/td>\r\n<td>finally<\/td>\r\n<td>or<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>break<\/td>\r\n<td>for<\/td>\r\n<td>pass<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>class<\/td>\r\n<td>from<\/td>\r\n<td>print<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>continue<\/td>\r\n<td>global<\/td>\r\n<td>raise<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>def<\/td>\r\n<td>if<\/td>\r\n<td>return<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>del<\/td>\r\n<td>import<\/td>\r\n<td>try<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>elif<\/td>\r\n<td>in<\/td>\r\n<td>while<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>else<\/td>\r\n<td>is<\/td>\r\n<td>with<\/td>\r\n<\/tr>\r\n<tr>\r\n<td>except<\/td>\r\n<td>lambda<\/td>\r\n<td>yield<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n\r\n\r\n<hr \/>\r\n\r\n\r\n<h4 class=\"wp-block-heading\">Lines and Indentation in Python<\/h4>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">One unique feature of the Python programming language is absence of braces which is normally used to indicate block of code in other programming languages. In Python, blocks of codes are specified using line indentation<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Statements in the same level of indentation belong to the same block. An example is given below:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code># Executes correctly\r\na = 10\r\nb = 20\r\nif a == b:\r\n   print(\"a equals b\")\r\nelse:\r\n   print(\"a is not equal to b\")<\/code><\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">You will notice that the code below compiles fine. Additionally, notice the colon (:) after the if and else statement which means that the following statements should be indented, failure of which would result in error.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">If however the , above code is written without indentation as shown below:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code># Would generate an error\r\na = 10\r\nb = 20\r\nif a == b:\r\nprint(\"a equals b\")\r\nelse:\r\nprint(\"a is not equal to b\")<\/code><\/pre>\r\n\r\n\r\n<hr \/>\r\n\r\n\r\n<h4 class=\"wp-block-heading\">Multi-line Statements in Python<\/h4>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">If a statement would require more than one line, then Python provides a functionality to wrap a line of code to the next line. It is the continuation character, the backslash (\\). When this is used at the end of a line, then the interpreter will take the next line as part of the the current statement. An example is therefore given below<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code>title = \"Mr. \"\r\nfirstname = \"Kindson\"\r\nlastnaname = \"Munonye\"\r\nothername = \"Kany\"\r\nfullname = title + \\\r\n           firstname + \\\r\n           lastname + \\\r\n           othername <\/code><\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">This is the same as :<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code>title = \"Mr. \"\r\nfirstname = \"Kindson\"\r\nlastnaname = \"Munonye\"\r\nothername = \"Kany\"\r\nfullname = title + firstname + lastname + othername <\/code><\/pre>\r\n\r\n\r\n<hr \/>\r\n\r\n\r\n<h4 class=\"wp-block-heading\">Getting User Input<\/h4>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Sometimes, you may require your program to get an input from the user. This is accomplished in Python using the input function. For example<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-code\"><code>name = input(\"Please enter your name: \")<\/code><\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The result of the above code is that a prompt is displayed to the output that says: &#8220;Please enter your name&#8221;. If the users enters his name and then press the enter key, the name the user entered is assigned to the variable name.<\/p>\r\n\r\n\r\n<hr \/>\r\n\r\n\r\n<h4 class=\"wp-block-heading\">Watch the Video<\/h4>\r\n\r\n\r\n\r\n<figure><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/cWB-bE4qhAE\" width=\"560\" height=\"315\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/figure>\r\n","protected":false},"excerpt":{"rendered":"<p>The syntax of the Python Programming Language is fairly easy to learn and you can easily follow. In this lesson, we are going to write &hellip; <\/p>\n","protected":false},"author":395,"featured_media":286,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[5],"tags":[],"class_list":["post-22","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Python - Basic Syntax - Python Tutorials<\/title>\n<meta name=\"description\" content=\"In this lesson, you will learn about the basic python programming syntax and how to start writing a Python Program using Pycharm IDE\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.kindsonthegenius.com\/python\/03-python-variable-and-data-types\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python - Basic Syntax - Python Tutorials\" \/>\n<meta property=\"og:description\" content=\"In this lesson, you will learn about the basic python programming syntax and how to start writing a Python Program using Pycharm IDE\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.kindsonthegenius.com\/python\/03-python-variable-and-data-types\/\" \/>\n<meta property=\"og:site_name\" content=\"Python Tutorials\" \/>\n<meta property=\"article:published_time\" content=\"2019-01-09T18:53:07+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-03-31T21:06:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.kindsonthegenius.com\/python\/wp-content\/uploads\/sites\/8\/2019\/01\/Basic-Syntax-2.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"887\" \/>\n\t<meta property=\"og:image:height\" content=\"494\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"kindsonthegenius\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"kindsonthegenius\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/python\\\/03-python-variable-and-data-types\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/python\\\/03-python-variable-and-data-types\\\/\"},\"author\":{\"name\":\"kindsonthegenius\",\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/python\\\/#\\\/schema\\\/person\\\/63a68934672db675ff0cd80d066510c2\"},\"headline\":\"Python &#8211; Basic Syntax\",\"datePublished\":\"2019-01-09T18:53:07+00:00\",\"dateModified\":\"2019-03-31T21:06:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/python\\\/03-python-variable-and-data-types\\\/\"},\"wordCount\":608,\"commentCount\":3,\"image\":{\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/python\\\/03-python-variable-and-data-types\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/python\\\/wp-content\\\/uploads\\\/sites\\\/8\\\/2019\\\/01\\\/Basic-Syntax-2.jpg\",\"articleSection\":[\"Python Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.kindsonthegenius.com\\\/python\\\/03-python-variable-and-data-types\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/python\\\/03-python-variable-and-data-types\\\/\",\"url\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/python\\\/03-python-variable-and-data-types\\\/\",\"name\":\"Python - Basic Syntax - Python Tutorials\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/python\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/python\\\/03-python-variable-and-data-types\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/python\\\/03-python-variable-and-data-types\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/python\\\/wp-content\\\/uploads\\\/sites\\\/8\\\/2019\\\/01\\\/Basic-Syntax-2.jpg\",\"datePublished\":\"2019-01-09T18:53:07+00:00\",\"dateModified\":\"2019-03-31T21:06:23+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/python\\\/#\\\/schema\\\/person\\\/63a68934672db675ff0cd80d066510c2\"},\"description\":\"In this lesson, you will learn about the basic python programming syntax and how to start writing a Python Program using Pycharm IDE\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/python\\\/03-python-variable-and-data-types\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.kindsonthegenius.com\\\/python\\\/03-python-variable-and-data-types\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/python\\\/03-python-variable-and-data-types\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/python\\\/wp-content\\\/uploads\\\/sites\\\/8\\\/2019\\\/01\\\/Basic-Syntax-2.jpg\",\"contentUrl\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/python\\\/wp-content\\\/uploads\\\/sites\\\/8\\\/2019\\\/01\\\/Basic-Syntax-2.jpg\",\"width\":887,\"height\":494,\"caption\":\"Basic Syntax of Python Programming IDE\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/python\\\/03-python-variable-and-data-types\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/python\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python &#8211; Basic Syntax\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/python\\\/#website\",\"url\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/python\\\/\",\"name\":\"Python Tutorials\",\"description\":\"Python Tutorial for Programming and Data Science\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/python\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/python\\\/#\\\/schema\\\/person\\\/63a68934672db675ff0cd80d066510c2\",\"name\":\"kindsonthegenius\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3079a7f663b02e801d03cd075852a037af36bd179b5fbcd0603bae3dd7833a9b?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3079a7f663b02e801d03cd075852a037af36bd179b5fbcd0603bae3dd7833a9b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3079a7f663b02e801d03cd075852a037af36bd179b5fbcd0603bae3dd7833a9b?s=96&d=mm&r=g\",\"caption\":\"kindsonthegenius\"},\"url\":\"https:\\\/\\\/www.kindsonthegenius.com\\\/python\\\/author\\\/kindsonthegenius-2\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python - Basic Syntax - Python Tutorials","description":"In this lesson, you will learn about the basic python programming syntax and how to start writing a Python Program using Pycharm IDE","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:\/\/www.kindsonthegenius.com\/python\/03-python-variable-and-data-types\/","og_locale":"en_US","og_type":"article","og_title":"Python - Basic Syntax - Python Tutorials","og_description":"In this lesson, you will learn about the basic python programming syntax and how to start writing a Python Program using Pycharm IDE","og_url":"https:\/\/www.kindsonthegenius.com\/python\/03-python-variable-and-data-types\/","og_site_name":"Python Tutorials","article_published_time":"2019-01-09T18:53:07+00:00","article_modified_time":"2019-03-31T21:06:23+00:00","og_image":[{"width":887,"height":494,"url":"https:\/\/www.kindsonthegenius.com\/python\/wp-content\/uploads\/sites\/8\/2019\/01\/Basic-Syntax-2.jpg","type":"image\/jpeg"}],"author":"kindsonthegenius","twitter_card":"summary_large_image","twitter_misc":{"Written by":"kindsonthegenius","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.kindsonthegenius.com\/python\/03-python-variable-and-data-types\/#article","isPartOf":{"@id":"https:\/\/www.kindsonthegenius.com\/python\/03-python-variable-and-data-types\/"},"author":{"name":"kindsonthegenius","@id":"https:\/\/www.kindsonthegenius.com\/python\/#\/schema\/person\/63a68934672db675ff0cd80d066510c2"},"headline":"Python &#8211; Basic Syntax","datePublished":"2019-01-09T18:53:07+00:00","dateModified":"2019-03-31T21:06:23+00:00","mainEntityOfPage":{"@id":"https:\/\/www.kindsonthegenius.com\/python\/03-python-variable-and-data-types\/"},"wordCount":608,"commentCount":3,"image":{"@id":"https:\/\/www.kindsonthegenius.com\/python\/03-python-variable-and-data-types\/#primaryimage"},"thumbnailUrl":"https:\/\/www.kindsonthegenius.com\/python\/wp-content\/uploads\/sites\/8\/2019\/01\/Basic-Syntax-2.jpg","articleSection":["Python Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.kindsonthegenius.com\/python\/03-python-variable-and-data-types\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.kindsonthegenius.com\/python\/03-python-variable-and-data-types\/","url":"https:\/\/www.kindsonthegenius.com\/python\/03-python-variable-and-data-types\/","name":"Python - Basic Syntax - Python Tutorials","isPartOf":{"@id":"https:\/\/www.kindsonthegenius.com\/python\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.kindsonthegenius.com\/python\/03-python-variable-and-data-types\/#primaryimage"},"image":{"@id":"https:\/\/www.kindsonthegenius.com\/python\/03-python-variable-and-data-types\/#primaryimage"},"thumbnailUrl":"https:\/\/www.kindsonthegenius.com\/python\/wp-content\/uploads\/sites\/8\/2019\/01\/Basic-Syntax-2.jpg","datePublished":"2019-01-09T18:53:07+00:00","dateModified":"2019-03-31T21:06:23+00:00","author":{"@id":"https:\/\/www.kindsonthegenius.com\/python\/#\/schema\/person\/63a68934672db675ff0cd80d066510c2"},"description":"In this lesson, you will learn about the basic python programming syntax and how to start writing a Python Program using Pycharm IDE","breadcrumb":{"@id":"https:\/\/www.kindsonthegenius.com\/python\/03-python-variable-and-data-types\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.kindsonthegenius.com\/python\/03-python-variable-and-data-types\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.kindsonthegenius.com\/python\/03-python-variable-and-data-types\/#primaryimage","url":"https:\/\/www.kindsonthegenius.com\/python\/wp-content\/uploads\/sites\/8\/2019\/01\/Basic-Syntax-2.jpg","contentUrl":"https:\/\/www.kindsonthegenius.com\/python\/wp-content\/uploads\/sites\/8\/2019\/01\/Basic-Syntax-2.jpg","width":887,"height":494,"caption":"Basic Syntax of Python Programming IDE"},{"@type":"BreadcrumbList","@id":"https:\/\/www.kindsonthegenius.com\/python\/03-python-variable-and-data-types\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.kindsonthegenius.com\/python\/"},{"@type":"ListItem","position":2,"name":"Python &#8211; Basic Syntax"}]},{"@type":"WebSite","@id":"https:\/\/www.kindsonthegenius.com\/python\/#website","url":"https:\/\/www.kindsonthegenius.com\/python\/","name":"Python Tutorials","description":"Python Tutorial for Programming and Data Science","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.kindsonthegenius.com\/python\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.kindsonthegenius.com\/python\/#\/schema\/person\/63a68934672db675ff0cd80d066510c2","name":"kindsonthegenius","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/3079a7f663b02e801d03cd075852a037af36bd179b5fbcd0603bae3dd7833a9b?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/3079a7f663b02e801d03cd075852a037af36bd179b5fbcd0603bae3dd7833a9b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3079a7f663b02e801d03cd075852a037af36bd179b5fbcd0603bae3dd7833a9b?s=96&d=mm&r=g","caption":"kindsonthegenius"},"url":"https:\/\/www.kindsonthegenius.com\/python\/author\/kindsonthegenius-2\/"}]}},"_links":{"self":[{"href":"https:\/\/www.kindsonthegenius.com\/python\/wp-json\/wp\/v2\/posts\/22","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kindsonthegenius.com\/python\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kindsonthegenius.com\/python\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kindsonthegenius.com\/python\/wp-json\/wp\/v2\/users\/395"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kindsonthegenius.com\/python\/wp-json\/wp\/v2\/comments?post=22"}],"version-history":[{"count":9,"href":"https:\/\/www.kindsonthegenius.com\/python\/wp-json\/wp\/v2\/posts\/22\/revisions"}],"predecessor-version":[{"id":260,"href":"https:\/\/www.kindsonthegenius.com\/python\/wp-json\/wp\/v2\/posts\/22\/revisions\/260"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.kindsonthegenius.com\/python\/wp-json\/wp\/v2\/media\/286"}],"wp:attachment":[{"href":"https:\/\/www.kindsonthegenius.com\/python\/wp-json\/wp\/v2\/media?parent=22"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kindsonthegenius.com\/python\/wp-json\/wp\/v2\/categories?post=22"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kindsonthegenius.com\/python\/wp-json\/wp\/v2\/tags?post=22"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}