



{"id":8420,"date":"2026-04-30T19:19:49","date_gmt":"2026-04-30T13:49:49","guid":{"rendered":"https:\/\/computersirkiclass.com\/cskc\/?p=8420"},"modified":"2026-07-20T17:25:17","modified_gmt":"2026-07-20T11:55:17","slug":"what-are-python-keywords","status":"publish","type":"post","link":"https:\/\/computersirkiclass.com\/cskc\/what-are-python-keywords\/","title":{"rendered":"What are python keywords"},"content":{"rendered":"<div id=\"modal-ready\">\r\n<p class=\"wp-block-paragraph\">Python does reserve a set of keywords which are fixed names used as language instructions. These names can not be used by the programmer for keeping their variable names or other identifiers. A list of keywords can easily be obtained by writing the following simple code.<br \/><br \/>import keyword<br \/>print (keyword.kwlist)<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The above code will result in the following. This list can differ a bit based on your python version.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">[&#8216;False&#8217;, &#8216;None&#8217;, &#8216;True&#8217;, &#8216;and&#8217;, &#8216;as&#8217;, &#8216;assert&#8217;, &#8216;async&#8217;, &#8216;await&#8217;, &#8216;break&#8217;, &#8216;class&#8217;, &#8216;continue&#8217;, &#8216;def&#8217;, &#8216;del&#8217;, &#8216;elif&#8217;, &#8216;else&#8217;, &#8216;except&#8217;, &#8216;finally&#8217;, &#8216;for&#8217;, &#8216;from&#8217;, &#8216;global&#8217;, &#8216;if&#8217;, &#8216;import&#8217;, &#8216;in&#8217;, &#8216;is&#8217;, &#8216;lambda&#8217;, &#8216;nonlocal&#8217;, &#8216;not&#8217;, &#8216;or&#8217;, &#8216;pass&#8217;, &#8216;raise&#8217;, &#8216;return&#8217;, &#8216;try&#8217;, &#8216;while&#8217;, &#8216;with&#8217;, &#8216;yield&#8217;]<br \/>You can see that leaving the first three words, all other words are all in lowercase english alphabets. The first three words False, None and True are actually special reserved words for boolean values True and False and None to indicate a situation of blank value.<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">The keywords are case-sensitive, meaning that they have to be written as it is without changing anything. For e.g. you can not write for as For or FOR.<\/p>\r\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Python reserves a set of keywords which are fixed names used as language instructions. These names can not be used by the programmer for keeping their variable names or other identifiers<\/p>\n","protected":false},"author":1,"featured_media":9787,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[114,244],"tags":[],"model_paper":[],"class_list":["post-8420","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cnr","category-python","python_index-101020-fundamental-concepts"],"acf":[],"_links":{"self":[{"href":"https:\/\/computersirkiclass.com\/cskc\/wp-json\/wp\/v2\/posts\/8420","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/computersirkiclass.com\/cskc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/computersirkiclass.com\/cskc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/computersirkiclass.com\/cskc\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/computersirkiclass.com\/cskc\/wp-json\/wp\/v2\/comments?post=8420"}],"version-history":[{"count":2,"href":"https:\/\/computersirkiclass.com\/cskc\/wp-json\/wp\/v2\/posts\/8420\/revisions"}],"predecessor-version":[{"id":8483,"href":"https:\/\/computersirkiclass.com\/cskc\/wp-json\/wp\/v2\/posts\/8420\/revisions\/8483"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/computersirkiclass.com\/cskc\/wp-json\/wp\/v2\/media\/9787"}],"wp:attachment":[{"href":"https:\/\/computersirkiclass.com\/cskc\/wp-json\/wp\/v2\/media?parent=8420"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/computersirkiclass.com\/cskc\/wp-json\/wp\/v2\/categories?post=8420"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/computersirkiclass.com\/cskc\/wp-json\/wp\/v2\/tags?post=8420"},{"taxonomy":"model_paper","embeddable":true,"href":"https:\/\/computersirkiclass.com\/cskc\/wp-json\/wp\/v2\/model_paper?post=8420"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}