{"id":2703,"date":"2018-10-12T12:45:11","date_gmt":"2018-10-12T07:15:11","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=2703"},"modified":"2018-10-16T15:56:07","modified_gmt":"2018-10-16T10:26:07","slug":"basic-errors-solutions-for-python-beginners","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/basic-errors-solutions-for-python-beginners\/","title":{"rendered":"Basic Errors &amp; Solutions For Python Beginners."},"content":{"rendered":"<h2>Basic Errors &amp; Solutions For Python Beginners.<\/h2>\n<h4><strong>Date Posted: 13-10-2018<\/strong><\/h4>\n<p>In this article, we are going to discuss a basic errors and\u00a0 its solution in python. This article will help the beginners to know about\u00a0 the errors and\u00a0 guide them to solve it. let us detailed below,<\/p>\n<h3><strong><span style=\"font-size: 18.72px;\">1.Indentation<\/span>\u00a0Errors:<\/strong><\/h3>\n<ul>\n<li>It generally occurs when there is inconsistency in the code means somewhere we have to use the\u00a0 <strong>spaces<\/strong> and somewhere tabs for\u00a0\u00a0<strong>Indentation<\/strong>.<\/li>\n<\/ul>\n<h3><strong>\u00a0Indented block in python:<\/strong><\/h3>\n<ul>\n<li>To indicate a\u00a0block\u00a0of code in\u00a0Python, indent\u00a0each line of the\u00a0block\u00a0by the same amount. The two\u00a0blocks\u00a0of code in <strong>If-statement<\/strong> are both\u00a0<strong>indented\u00a0four spaces<\/strong>, which is a typical amount of indentation\u00a0for\u00a0Python.<\/li>\n<li>The lines of code that form an <strong>&#8220;if&#8221;<\/strong> block, or a<strong> &#8220;while&#8221;<\/strong> or &#8220;<strong>for&#8221;<\/strong> loop, or even an entire <strong>function\/method or class<\/strong>, must all have the <strong>same level of\u00a0indentation<\/strong>, otherwise the python\u00a0will not execute .<\/li>\n<\/ul>\n<h3><strong>2.Syntax Error:<\/strong><\/h3>\n<ul>\n<li>An\u00a0invalid syntax\u00a0error means that there is a line that\u00a0python\u00a0doesn&#8217;t know what to do with. The last common type of\u00a0syntax\u00a0error you will likely encounter has to do with indention. Follow the\u00a0 unintended does not match any outer indention level unexpected indent.<\/li>\n<\/ul>\n<h3>3.Often Occurring <span style=\"font-size: 18.72px;\">Indentation<\/span>\u00a0Error:<\/h3>\n<ul>\n<li>The unexpected indent and not intended are often occurring \u00a0errors.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/10\/1st-error.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2704\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/10\/1st-error.png\" alt=\"\" width=\"823\" height=\"276\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/10\/1st-error.png 823w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/10\/1st-error-300x101.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/10\/1st-error-768x258.png 768w\" sizes=\"auto, (max-width: 823px) 100vw, 823px\" \/><\/a><\/p>\n<h3><b>4.Print Statement Should be at Exact Indent:<\/b><\/h3>\n<p><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/10\/2nd-error.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2705\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/10\/2nd-error.png\" alt=\"\" width=\"541\" height=\"295\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/10\/2nd-error.png 812w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/10\/2nd-error-300x164.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/10\/2nd-error-768x419.png 768w\" sizes=\"auto, (max-width: 541px) 100vw, 541px\" \/><\/a><\/p>\n<h3><strong>5.Flow path for syntax and indentation<\/strong>:<\/h3>\n<ul>\n<li>For every if, class, for ,function, this flow has to follow to free\u00a0 from indentation.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/10\/3rd-error.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2706\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/10\/3rd-error.png\" alt=\"\" width=\"678\" height=\"489\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/10\/3rd-error.png 678w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/10\/3rd-error-300x216.png 300w\" sizes=\"auto, (max-width: 678px) 100vw, 678px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/10\/4thb-error.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2707\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/10\/4thb-error.png\" alt=\"\" width=\"824\" height=\"217\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/10\/4thb-error.png 1432w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/10\/4thb-error-300x79.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/10\/4thb-error-768x202.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/10\/4thb-error-1024x270.png 1024w\" sizes=\"auto, (max-width: 824px) 100vw, 824px\" \/><\/a><\/p>\n<h3><span id=\"Syntax_errors\" class=\"mw-headline\">6.Syntax Errors:<\/span><\/h3>\n<ul>\n<li>Syntax errors are the most basic type of error. They arise when the Python interpreter is unable to <strong>understand a line of code<\/strong>. Syntax errors are almost always fatal.<\/li>\n<li>During execution, Most syntax errors are typos, incorrect indentation, or incorrect arguments. If you get this error, try looking at your scripted code for any of these.<\/li>\n<\/ul>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">def some_function()\r\n    msg = \"hello, world!\"\r\n    print(msg)\r\n     return msg<\/pre>\n<p><strong>Syntax Error , Where def function doesn&#8217;t have any (:) colon at its end.<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\"> File \"&lt;ipython-input-3-6bb841ea1423&gt;\", line 1\r\n    def some_function()\r\n                       ^\r\nSyntaxError: invalid syntax<\/pre>\n<ul>\n<li>In this case, the problem is that the function <strong>definition is missing a colon<\/strong> at the end.<\/li>\n<\/ul>\n<h3><span id=\"Logic_errors\" class=\"mw-headline\">7.Logic Errors:<\/span><\/h3>\n<ul>\n<li>These are the most difficult type of error to find, because they will give unpredictable results and may crash your program. \u00a0A lot of different things can happen if you have a logic error. However these are very easy to fix as you can use a debugger, which will run through the program and fix any problems.<\/li>\n<\/ul>\n<h3>8.Variable name Errors:<\/h3>\n<ul>\n<li><strong>Name Error<\/strong> ,it occurs when you try to use a variable that does not exist. For your reference<\/li>\n<\/ul>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">print(a)<\/pre>\n<p>Error will shown as,<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">NameError   Traceback (most recent call last)\r\n&lt;ipython-input-7-9d7b17ad5387&gt; in &lt;module&gt;()\r\n----&gt; 1 print(a)\r\n\r\nNameError: name 'a' is not defined<\/pre>\n<ul>\n<li>Error messages are most Informative , which are usually of the form \u201cname \u2018the_variable_name\u2019 is not defined\u201d.The first and foremost thing\u00a0 is that you will use a<strong> string<\/strong> but forgot to put<strong> quotes<\/strong> around it.<\/li>\n<\/ul>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">print(Bye)<\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">---------------------------------------------------------------------------\r\nNameError Traceback (most recent call last)\r\n&lt;ipython-input-8-9553ee03b645&gt; in &lt;module&gt;()\r\n----&gt; 1 print(hello)\r\n\r\nNameError: name 'hello' is not defined<\/pre>\n<h3>9.Index Errors:<\/h3>\n<ul>\n<li>If you try to access an item in a list or a string that does not exist, then you will get an error.<\/li>\n<li><strong>Error Name<\/strong>: Index out of Range<\/li>\n<\/ul>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">letters = ['a', 'b', 'c']\r\nprint(\"Letter #1 is\", letters[0])\r\nprint(\"Letter #2 is\", letters[1])\r\nprint(\"Letter #3 is\", letters[2])\r\nprint(\"Letter #4 is\", letters[3])\r\n\r\n<\/pre>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">Letter #1 is a\r\nLetter #2 is b\r\nLetter #3 is c\r\n\r\n<\/pre>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">---------------------------------------------------------------------------\r\nIndexError  Traceback (most recent call last)\r\n&lt;ipython-input-11-d817f55b7d6c&gt; in &lt;module&gt;()\r\n      3 print(\"Letter #2 is\", letters[1])\r\n      4 print(\"Letter #3 is\", letters[2])\r\n----&gt; 5 print(\"Letter #4 is\", letters[3])\r\n\r\nIndexError: list index out of range\r\n\r\n\r\n<\/pre>\n<h3>10.File Errors:<\/h3>\n<ul>\n<li>File Errors are those occur due to incorrect path \/ not mentioning a detailed path will raise a error.<\/li>\n<li><strong>Error Name 1<\/strong> : FileNotFoundError<\/li>\n<li><strong>Error\u00a0 Name 2<\/strong> : Unsupportedoperation<\/li>\n<\/ul>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">file_handle = open('myfiles.txt', 'r')<\/pre>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">Traceback\u00a0(most\u00a0recent\u00a0call\u00a0last)---\r\n------------------------------------------------------------------------\r\nFileNotFoundError  \r\n&lt;ipython-input-14-f6e1ac4aee96&gt; in &lt;module&gt;()\r\n----&gt; 1 file_handle = open('myfiles.txt', 'r')\r\n\r\nFileNotFoundError: [Errno 2] No such file or directory: 'myfiles.txt'<\/pre>\n<p>Where the exact location of myfiles.txt, it should be mentioned in a following manner. If the myfiles.txt is located in Myproject\/local\/myfiles.txt, Declare in the script with detailed manner, Otherwise it will raise a <strong>FileNotFoundError.<\/strong><\/p>\n<p>A related issue can occur if you use the \u201cread\u201d flag\u00a0 (r) instead of the \u201cwrite\u201d flag(w). Python will not give you an error if you try to open a file for writing when the file does not exist. However, if you meant to open a file for reading, but accidentally opened it for writing, and then try to read from it, you will get an<strong> UnsupporetedOperation<\/strong> error telling you that the file was not opened for reading:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">file_handle = open('myfiles.txt', 'w')\r\nfile_handle.read()<\/pre>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">---------------------------------------------------------------------------\r\nUnsupportedOperation  Traceback (most recent call last)\r\n&lt;ipython-input-15-b846479bc61f&gt; in &lt;module&gt;()\r\n      1 file_handle = open('myfiles.txt', 'w')\r\n----&gt; 2 file_handle.read()\r\n\r\nUnsupportedOperation: not readable<\/pre>\n<p>These are the most Basic and common errors will occur for the python Beginners. I hope this article will give you a information ,how to fix those errors and what are the root cause of the Errors. Follow this article and improve your skills in python.Thank you and Leave a comments below.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Basic Errors &amp; Solutions For Python Beginners. Date Posted: 13-10-2018 In this article, we are going to discuss a basic errors and\u00a0 its solution in python. This article will help the beginners to know about\u00a0 the errors and\u00a0 guide them to solve it. let us detailed below, 1.Indentation\u00a0Errors: It generally&hellip; <a href=\"https:\/\/pheonixsolutions.com\/blog\/basic-errors-solutions-for-python-beginners\/\" class=\"more-link read-more\" rel=\"bookmark\">Continue Reading <span class=\"screen-reader-text\">Basic Errors &amp; Solutions For Python Beginners.<\/span><i class=\"fa fa-arrow-right\"><\/i><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[291,290,1],"tags":[442,448,443,450,445,447,449,446],"class_list":{"0":"post-2703","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-python-script","7":"category-script","8":"category-uncategorized","9":"tag-common-errors","10":"tag-filenotfounderror","11":"tag-indentation","12":"tag-index-out-of-range","13":"tag-syntax-error","14":"tag-unexpected-indent","15":"tag-unsupportedoperation-error","16":"tag-variable-name-error","17":"h-entry","19":"h-as-article"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Pheonix Solutions - We Empower Your Business Growth<\/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:\/\/pheonixsolutions.com\/blog\/basic-errors-solutions-for-python-beginners\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Pheonix Solutions - We Empower Your Business Growth\" \/>\n<meta property=\"og:description\" content=\"Basic Errors &amp; Solutions For Python Beginners. Date Posted: 13-10-2018 In this article, we are going to discuss a basic errors and\u00a0 its solution in python. This article will help the beginners to know about\u00a0 the errors and\u00a0 guide them to solve it. let us detailed below, 1.Indentation\u00a0Errors: It generally&hellip; Continue Reading Basic Errors &amp; Solutions For Python Beginners.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/pheonixsolutions.com\/blog\/basic-errors-solutions-for-python-beginners\/\" \/>\n<meta property=\"og:site_name\" content=\"PHEONIXSOLUTIONS\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/PheonixSolutions-209942982759387\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-10-12T07:15:11+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-10-16T10:26:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/10\/1st-error.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@pheonixsolution\" \/>\n<meta name=\"twitter:site\" content=\"@pheonixsolution\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\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:\\\/\\\/pheonixsolutions.com\\\/blog\\\/basic-errors-solutions-for-python-beginners\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/basic-errors-solutions-for-python-beginners\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/0ffa33d73c869faec2d50e79c24e3503\"},\"headline\":\"Basic Errors &amp; Solutions For Python Beginners.\",\"datePublished\":\"2018-10-12T07:15:11+00:00\",\"dateModified\":\"2018-10-16T10:26:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/basic-errors-solutions-for-python-beginners\\\/\"},\"wordCount\":694,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/basic-errors-solutions-for-python-beginners\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/10\\\/1st-error.png\",\"keywords\":[\"common errors\",\"FileNotFoundError\",\"Indentation\",\"Index out of range\",\"syntax error\",\"unexpected indent\",\"UnsupportedOperation error\",\"variable name error\"],\"articleSection\":[\"Python\",\"Script\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/basic-errors-solutions-for-python-beginners\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/basic-errors-solutions-for-python-beginners\\\/\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/basic-errors-solutions-for-python-beginners\\\/\",\"name\":\"Pheonix Solutions - We Empower Your Business Growth\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/basic-errors-solutions-for-python-beginners\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/basic-errors-solutions-for-python-beginners\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/10\\\/1st-error.png\",\"datePublished\":\"2018-10-12T07:15:11+00:00\",\"dateModified\":\"2018-10-16T10:26:07+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/basic-errors-solutions-for-python-beginners\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/basic-errors-solutions-for-python-beginners\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/basic-errors-solutions-for-python-beginners\\\/#primaryimage\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/10\\\/1st-error.png\",\"contentUrl\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/10\\\/1st-error.png\",\"width\":823,\"height\":276},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/basic-errors-solutions-for-python-beginners\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Basic Errors &amp; Solutions For Python Beginners.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/\",\"name\":\"Pheonix Solutions\",\"description\":\"We Empower Your Business Growth\",\"publisher\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#organization\",\"name\":\"PheonixSolutions\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/12\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/12\\\/logo.png\",\"width\":454,\"height\":300,\"caption\":\"PheonixSolutions\"},\"image\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/PheonixSolutions-209942982759387\\\/\",\"https:\\\/\\\/x.com\\\/pheonixsolution\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/0ffa33d73c869faec2d50e79c24e3503\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"http:\\\/\\\/pheonixsolutions.com\\\/blog\"],\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Pheonix Solutions - We Empower Your Business Growth","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:\/\/pheonixsolutions.com\/blog\/basic-errors-solutions-for-python-beginners\/","og_locale":"en_US","og_type":"article","og_title":"Pheonix Solutions - We Empower Your Business Growth","og_description":"Basic Errors &amp; Solutions For Python Beginners. Date Posted: 13-10-2018 In this article, we are going to discuss a basic errors and\u00a0 its solution in python. This article will help the beginners to know about\u00a0 the errors and\u00a0 guide them to solve it. let us detailed below, 1.Indentation\u00a0Errors: It generally&hellip; Continue Reading Basic Errors &amp; Solutions For Python Beginners.","og_url":"https:\/\/pheonixsolutions.com\/blog\/basic-errors-solutions-for-python-beginners\/","og_site_name":"PHEONIXSOLUTIONS","article_publisher":"https:\/\/www.facebook.com\/PheonixSolutions-209942982759387\/","article_published_time":"2018-10-12T07:15:11+00:00","article_modified_time":"2018-10-16T10:26:07+00:00","og_image":[{"url":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/10\/1st-error.png","type":"","width":"","height":""}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@pheonixsolution","twitter_site":"@pheonixsolution","twitter_misc":{"Written by":"admin","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/pheonixsolutions.com\/blog\/basic-errors-solutions-for-python-beginners\/#article","isPartOf":{"@id":"https:\/\/pheonixsolutions.com\/blog\/basic-errors-solutions-for-python-beginners\/"},"author":{"name":"admin","@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/person\/0ffa33d73c869faec2d50e79c24e3503"},"headline":"Basic Errors &amp; Solutions For Python Beginners.","datePublished":"2018-10-12T07:15:11+00:00","dateModified":"2018-10-16T10:26:07+00:00","mainEntityOfPage":{"@id":"https:\/\/pheonixsolutions.com\/blog\/basic-errors-solutions-for-python-beginners\/"},"wordCount":694,"commentCount":1,"publisher":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#organization"},"image":{"@id":"https:\/\/pheonixsolutions.com\/blog\/basic-errors-solutions-for-python-beginners\/#primaryimage"},"thumbnailUrl":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/10\/1st-error.png","keywords":["common errors","FileNotFoundError","Indentation","Index out of range","syntax error","unexpected indent","UnsupportedOperation error","variable name error"],"articleSection":["Python","Script"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/pheonixsolutions.com\/blog\/basic-errors-solutions-for-python-beginners\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/pheonixsolutions.com\/blog\/basic-errors-solutions-for-python-beginners\/","url":"https:\/\/pheonixsolutions.com\/blog\/basic-errors-solutions-for-python-beginners\/","name":"Pheonix Solutions - We Empower Your Business Growth","isPartOf":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/pheonixsolutions.com\/blog\/basic-errors-solutions-for-python-beginners\/#primaryimage"},"image":{"@id":"https:\/\/pheonixsolutions.com\/blog\/basic-errors-solutions-for-python-beginners\/#primaryimage"},"thumbnailUrl":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/10\/1st-error.png","datePublished":"2018-10-12T07:15:11+00:00","dateModified":"2018-10-16T10:26:07+00:00","breadcrumb":{"@id":"https:\/\/pheonixsolutions.com\/blog\/basic-errors-solutions-for-python-beginners\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/pheonixsolutions.com\/blog\/basic-errors-solutions-for-python-beginners\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/pheonixsolutions.com\/blog\/basic-errors-solutions-for-python-beginners\/#primaryimage","url":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/10\/1st-error.png","contentUrl":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/10\/1st-error.png","width":823,"height":276},{"@type":"BreadcrumbList","@id":"https:\/\/pheonixsolutions.com\/blog\/basic-errors-solutions-for-python-beginners\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/pheonixsolutions.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Basic Errors &amp; Solutions For Python Beginners."}]},{"@type":"WebSite","@id":"https:\/\/pheonixsolutions.com\/blog\/#website","url":"https:\/\/pheonixsolutions.com\/blog\/","name":"Pheonix Solutions","description":"We Empower Your Business Growth","publisher":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/pheonixsolutions.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/pheonixsolutions.com\/blog\/#organization","name":"PheonixSolutions","url":"https:\/\/pheonixsolutions.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/12\/logo.png","contentUrl":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/12\/logo.png","width":454,"height":300,"caption":"PheonixSolutions"},"image":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/PheonixSolutions-209942982759387\/","https:\/\/x.com\/pheonixsolution"]},{"@type":"Person","@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/person\/0ffa33d73c869faec2d50e79c24e3503","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g","caption":"admin"},"sameAs":["http:\/\/pheonixsolutions.com\/blog"],"url":"https:\/\/pheonixsolutions.com\/blog\/author\/admin\/"}]}},"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p7F4uM-HB","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/2703","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=2703"}],"version-history":[{"count":0,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/2703\/revisions"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=2703"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=2703"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=2703"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}