{"id":4710,"date":"2022-08-16T11:29:10","date_gmt":"2022-08-16T11:29:10","guid":{"rendered":"https:\/\/www.wikitechy.com\/interview-questions\/?p=4710"},"modified":"2022-08-16T11:29:35","modified_gmt":"2022-08-16T11:29:35","slug":"what-do-you-mean-by-python-literals","status":"publish","type":"post","link":"https:\/\/www.wikitechy.com\/interview-questions\/python\/what-do-you-mean-by-python-literals\/","title":{"rendered":"What do you mean by Python literals ?"},"content":{"rendered":"<p style=\"text-align: justify;\"><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone size-full wp-image-4711\" src=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/literals-in-python.png\" alt=\"\" width=\"1213\" height=\"826\" srcset=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/literals-in-python.png 1213w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/literals-in-python-300x204.png 300w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/literals-in-python-1024x697.png 1024w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/literals-in-python-768x523.png 768w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/literals-in-python-390x266.png 390w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/literals-in-python-820x558.png 820w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/literals-in-python-1180x804.png 1180w\" sizes=\"(max-width: 1213px) 100vw, 1213px\" \/><\/p>\n<ul style=\"text-align: justify;\">\n<li style=\"text-align: justify;\">Literals are a notation for representing a fixed value in source code and it can be defined as raw value or data given in variables or constants.<\/li>\n<\/ul>\n<h2 id=\"string-literals\" style=\"text-align: justify;\"><strong>String Literals<\/strong><\/h2>\n<ul style=\"text-align: justify;\">\n<li>A string literal can be created by writing a text with a group of characters surrounded by the single (\u2018), double (\u201c) or triple quotes.<\/li>\n<li>We can write multi-line strings or display in the desired way by using triple quotes.<\/li>\n<\/ul>\n<h3 id=\"sample-code\" style=\"text-align: justify;\"><strong>Sample Code<\/strong><\/h3>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <\/div> <pre class=\"language-python code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-python code-embed-code\"># string literals<br\/><br\/># in single quote<br\/><br\/>s = &#039;Welcome to Wikitechy&#039;<br\/><br\/><br\/><br\/><br\/># in double quotes<br\/><br\/>t = &quot;Welcome to Wikitechy&quot;<br\/><br\/><br\/><br\/><br\/># multi-line String<br\/><br\/>m = &#039;&#039;&#039;Welcome<br\/><br\/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 to<br\/><br\/>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Wikitechy&#039;&#039;&#039;<br\/><br\/><br\/><br\/><br\/>print(s)<br\/><br\/>print(t)<br\/><br\/>print(m)<\/code><\/pre> <\/div>\n<h3 id=\"output\" style=\"text-align: justify;\"><strong>Output<\/strong><\/h3>\n<p style=\"text-align: justify;\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4712\" src=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/string-literals.png\" alt=\"\" width=\"1455\" height=\"412\" srcset=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/string-literals.png 1455w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/string-literals-300x85.png 300w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/string-literals-1024x290.png 1024w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/string-literals-768x217.png 768w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/string-literals-390x110.png 390w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/string-literals-820x232.png 820w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/string-literals-1180x334.png 1180w\" sizes=\"(max-width: 1455px) 100vw, 1455px\" \/><\/p>\n<h2 id=\"numeric-literals\" style=\"text-align: justify;\"><strong>Numeric Literals<\/strong><\/h2>\n<ul style=\"text-align: justify;\">\n<li>They are immutable and it consists of three data types, they are Integer, Float, Complex.<\/li>\n<li>In integer both positive and negative numbers including 0 and it should not take any fractional part.<\/li>\n<li>Float data type are real numbers having both integer and fractional part.<\/li>\n<\/ul>\n<h3 id=\"sample-code-2\" style=\"text-align: justify;\"><strong>Sample Code<\/strong><\/h3>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <\/div> <pre class=\"language-python code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-python code-embed-code\"># integer literal<br\/><br\/><br\/><br\/><br\/># Binary Literals<br\/><br\/>a = 0b10100<br\/><br\/><br\/><br\/><br\/># Decimal Literal<br\/><br\/>b = 30<br\/><br\/><br\/><br\/><br\/># Octal Literal<br\/><br\/>c = 0o320<br\/><br\/><br\/><br\/><br\/># Hexadecimal Literal<br\/><br\/>d = 0x12b<br\/><br\/><br\/><br\/><br\/>print(a, b, c, d)<\/code><\/pre> <\/div>\n<h3 id=\"output-2\" style=\"text-align: justify;\"><strong>Output<\/strong><\/h3>\n<p style=\"text-align: justify;\"><img decoding=\"async\" class=\"alignnone size-full wp-image-4713\" src=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/numeric-literals.png\" alt=\"\" width=\"1442\" height=\"299\" srcset=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/numeric-literals.png 1442w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/numeric-literals-300x62.png 300w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/numeric-literals-1024x212.png 1024w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/numeric-literals-768x159.png 768w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/numeric-literals-390x81.png 390w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/numeric-literals-820x170.png 820w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/numeric-literals-1180x245.png 1180w\" sizes=\"(max-width: 1442px) 100vw, 1442px\" \/><\/p>\n<h2 id=\"boolean-literals\" style=\"text-align: justify;\"><strong>Boolean Literals<\/strong><\/h2>\n<ul style=\"text-align: justify;\">\n<li>In python there are only two Boolean literals they are true and false.<\/li>\n<\/ul>\n<h3 id=\"sample-code-3\" style=\"text-align: justify;\"><strong>Sample Code<\/strong><\/h3>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <\/div> <pre class=\"language-python code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-python code-embed-code\">x = (1 == True)<br\/><br\/>y = (2 == False)<br\/><br\/>z = (3 == True)<br\/><br\/>r = (1 == True)<br\/><br\/>a = True + 10<br\/><br\/>b = False + 10<br\/><br\/><br\/><br\/><br\/>print(&quot;x is&quot;, x)<br\/><br\/>print(&quot;y is&quot;, y)<br\/><br\/>print(&quot;z is&quot;, r)<br\/><br\/>print(&quot;a:&quot;, a)<br\/><br\/>print(&quot;b:&quot;, b)<\/code><\/pre> <\/div>\n<h3 id=\"output-3\" style=\"text-align: justify;\"><strong>Output<\/strong><\/h3>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4714\" src=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/boolean-literals.png\" alt=\"\" width=\"1391\" height=\"314\" srcset=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/boolean-literals.png 1391w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/boolean-literals-300x68.png 300w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/boolean-literals-1024x231.png 1024w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/boolean-literals-768x173.png 768w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/boolean-literals-390x88.png 390w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/boolean-literals-820x185.png 820w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/boolean-literals-1180x266.png 1180w\" sizes=\"(max-width: 1391px) 100vw, 1391px\" \/><\/p>\n<h2 id=\"literal-collections\" style=\"text-align: justify;\"><strong>Literal Collections<\/strong><\/h2>\n<ul style=\"text-align: justify;\">\n<li>In this there are four different types of literal collections, they are Lis literals, Tuple literals, Dict literals, Set literals.<\/li>\n<li>In list literals the values are stored separated by comma (,) and enclosed within square brackets ([ ]).<\/li>\n<li>Tuple literals are enclosed by the parentheses \u2018<strong>()<\/strong>\u2018 and each element is separated by the comma(,) and it is immutable.<\/li>\n<li>Dictionary literals is enclosed by curly-braces \u2018<strong>{}<\/strong>\u2018 and each pair is separated by the commas(,).<\/li>\n<li>Set literals is the collection of the unordered data set and enclosed by the {} and each element is separated by the comma (,).<\/li>\n<\/ul>\n<h3 id=\"sample-code-4\" style=\"text-align: justify;\"><strong>Sample Code<\/strong><\/h3>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <\/div> <pre class=\"language-python code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-python code-embed-code\"># Tuple literals<br\/><br\/>even_number = (2, 4, 6, 8)<br\/><br\/>odd_number = (1, 3, 5, 7)<br\/><br\/><br\/><br\/><br\/>print(even_number)<br\/><br\/>print(odd_number)<\/code><\/pre> <\/div>\n<h3 id=\"output-4\" style=\"text-align: justify;\"><strong>Output<\/strong><\/h3>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4715\" src=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/literal-collections.png\" alt=\"\" width=\"1405\" height=\"322\" srcset=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/literal-collections.png 1405w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/literal-collections-300x69.png 300w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/literal-collections-1024x235.png 1024w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/literal-collections-768x176.png 768w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/literal-collections-390x89.png 390w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/literal-collections-820x188.png 820w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/literal-collections-1180x270.png 1180w\" sizes=\"(max-width: 1405px) 100vw, 1405px\" \/><\/p>\n<h2 id=\"special-literals\" style=\"text-align: justify;\"><strong>Special Literals<\/strong><\/h2>\n<ul style=\"text-align: justify;\">\n<li>Python contains one special literal where \u2018None\u2019 is used to define a null variable.<\/li>\n<li>If\u00a0<strong>\u2018None\u2019\u00a0<\/strong>is compared with anything else other than a\u00a0<strong>\u2018None\u2019<\/strong>, it will return\u00a0<strong>false<\/strong>.<\/li>\n<\/ul>\n<h3 id=\"sample-code-5\" style=\"text-align: justify;\"><strong>Sample Code<\/strong><\/h3>\n<div class=\"code-embed-wrapper\"> <div class=\"code-embed-infos\"> <\/div> <pre class=\"language-python code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-python code-embed-code\"># Special literals<br\/><br\/>water_remain = None<br\/><br\/>print(water_remain)<\/code><\/pre> <\/div>\n<h3 id=\"output-5\" style=\"text-align: justify;\"><strong>Output<\/strong><\/h3>\n<p style=\"text-align: justify;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4716\" src=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/special-literals.png\" alt=\"\" width=\"1398\" height=\"191\" srcset=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/special-literals.png 1398w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/special-literals-300x41.png 300w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/special-literals-1024x140.png 1024w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/special-literals-768x105.png 768w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/special-literals-390x53.png 390w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/special-literals-820x112.png 820w, https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/special-literals-1180x161.png 1180w\" sizes=\"(max-width: 1398px) 100vw, 1398px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Literals are a notation for representing a fixed value in source code and it can be defined as raw value or data given in variables or constants. String Literals A string literal can be created by writing a text with a group of characters surrounded by the single (\u2018), double (\u201c) or triple quotes. We [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5608],"tags":[18226,18222,18219,18231,18223,18224,18220,18225,18221,18230,18229,18227,18228],"class_list":["post-4710","post","type-post","status-publish","format-standard","hentry","category-python","tag-boolean-literals-in-python","tag-difference-between-literals-and-data-types-in-python","tag-literals-in-python","tag-literals-in-python-meaning","tag-special-literals-in-python","tag-string-literals-in-python","tag-types-of-literals-in-python-with-example","tag-types-of-numeric-literals-in-python","tag-what-are-literals","tag-what-are-literals-in-python-how-many-types-of-literals-in-python","tag-what-are-the-literals-in-python","tag-what-do-you-mean-by-python-literals","tag-what-is-literals-in-python-with-example"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>What do you mean by Python literals ? - Literals in Python - Wikitechy<\/title>\n<meta name=\"description\" content=\"What do you mean by Python literals ? - Literals are a notation for representing a fixed value in source code and it can be defined as raw value or data given in variables or constants.\" \/>\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.wikitechy.com\/interview-questions\/python\/what-do-you-mean-by-python-literals\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What do you mean by Python literals ? - Literals in Python - Wikitechy\" \/>\n<meta property=\"og:description\" content=\"What do you mean by Python literals ? - Literals are a notation for representing a fixed value in source code and it can be defined as raw value or data given in variables or constants.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wikitechy.com\/interview-questions\/python\/what-do-you-mean-by-python-literals\/\" \/>\n<meta property=\"og:site_name\" content=\"Wikitechy\" \/>\n<meta property=\"article:published_time\" content=\"2022-08-16T11:29:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-08-16T11:29:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/literals-in-python.png\" \/>\n<meta name=\"author\" content=\"webmaster\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"webmaster\" \/>\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.wikitechy.com\\\/interview-questions\\\/python\\\/what-do-you-mean-by-python-literals\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/python\\\/what-do-you-mean-by-python-literals\\\/\"},\"author\":{\"name\":\"webmaster\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/f785ba3ecc599133e65ab6138042a3e4\"},\"headline\":\"What do you mean by Python literals ?\",\"datePublished\":\"2022-08-16T11:29:10+00:00\",\"dateModified\":\"2022-08-16T11:29:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/python\\\/what-do-you-mean-by-python-literals\\\/\"},\"wordCount\":599,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/python\\\/what-do-you-mean-by-python-literals\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/literals-in-python.png\",\"keywords\":[\"boolean literals in python\",\"difference between literals and data types in python\",\"literals in python\",\"literals in python meaning\",\"special literals in python\",\"string literals in python\",\"types of literals in python with example\",\"types of numeric literals in python\",\"what are literals\",\"what are literals in python how many types of literals in python\",\"what are the literals in python\",\"what do you mean by python literals\",\"what is literals in python with example\"],\"articleSection\":[\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/python\\\/what-do-you-mean-by-python-literals\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/python\\\/what-do-you-mean-by-python-literals\\\/\",\"url\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/python\\\/what-do-you-mean-by-python-literals\\\/\",\"name\":\"What do you mean by Python literals ? - Literals in Python - Wikitechy\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/python\\\/what-do-you-mean-by-python-literals\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/python\\\/what-do-you-mean-by-python-literals\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/literals-in-python.png\",\"datePublished\":\"2022-08-16T11:29:10+00:00\",\"dateModified\":\"2022-08-16T11:29:35+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/f785ba3ecc599133e65ab6138042a3e4\"},\"description\":\"What do you mean by Python literals ? - Literals are a notation for representing a fixed value in source code and it can be defined as raw value or data given in variables or constants.\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/python\\\/what-do-you-mean-by-python-literals\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/python\\\/what-do-you-mean-by-python-literals\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/literals-in-python.png\",\"contentUrl\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/literals-in-python.png\",\"width\":1213,\"height\":826},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#website\",\"url\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/\",\"name\":\"Wikitechy\",\"description\":\"Interview Questions\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/#\\\/schema\\\/person\\\/f785ba3ecc599133e65ab6138042a3e4\",\"name\":\"webmaster\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/155b77fd8cdda3d0913fcb7e7ee63543b0c345d2d8f6dcebda5b0583ab61f967?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/155b77fd8cdda3d0913fcb7e7ee63543b0c345d2d8f6dcebda5b0583ab61f967?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/155b77fd8cdda3d0913fcb7e7ee63543b0c345d2d8f6dcebda5b0583ab61f967?s=96&d=mm&r=g\",\"caption\":\"webmaster\"},\"sameAs\":[\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\"],\"url\":\"https:\\\/\\\/www.wikitechy.com\\\/interview-questions\\\/author\\\/webmaster\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What do you mean by Python literals ? - Literals in Python - Wikitechy","description":"What do you mean by Python literals ? - Literals are a notation for representing a fixed value in source code and it can be defined as raw value or data given in variables or constants.","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.wikitechy.com\/interview-questions\/python\/what-do-you-mean-by-python-literals\/","og_locale":"en_US","og_type":"article","og_title":"What do you mean by Python literals ? - Literals in Python - Wikitechy","og_description":"What do you mean by Python literals ? - Literals are a notation for representing a fixed value in source code and it can be defined as raw value or data given in variables or constants.","og_url":"https:\/\/www.wikitechy.com\/interview-questions\/python\/what-do-you-mean-by-python-literals\/","og_site_name":"Wikitechy","article_published_time":"2022-08-16T11:29:10+00:00","article_modified_time":"2022-08-16T11:29:35+00:00","og_image":[{"url":"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/literals-in-python.png","type":"","width":"","height":""}],"author":"webmaster","twitter_card":"summary_large_image","twitter_misc":{"Written by":"webmaster","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.wikitechy.com\/interview-questions\/python\/what-do-you-mean-by-python-literals\/#article","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/python\/what-do-you-mean-by-python-literals\/"},"author":{"name":"webmaster","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/f785ba3ecc599133e65ab6138042a3e4"},"headline":"What do you mean by Python literals ?","datePublished":"2022-08-16T11:29:10+00:00","dateModified":"2022-08-16T11:29:35+00:00","mainEntityOfPage":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/python\/what-do-you-mean-by-python-literals\/"},"wordCount":599,"commentCount":0,"image":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/python\/what-do-you-mean-by-python-literals\/#primaryimage"},"thumbnailUrl":"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/literals-in-python.png","keywords":["boolean literals in python","difference between literals and data types in python","literals in python","literals in python meaning","special literals in python","string literals in python","types of literals in python with example","types of numeric literals in python","what are literals","what are literals in python how many types of literals in python","what are the literals in python","what do you mean by python literals","what is literals in python with example"],"articleSection":["Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.wikitechy.com\/interview-questions\/python\/what-do-you-mean-by-python-literals\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.wikitechy.com\/interview-questions\/python\/what-do-you-mean-by-python-literals\/","url":"https:\/\/www.wikitechy.com\/interview-questions\/python\/what-do-you-mean-by-python-literals\/","name":"What do you mean by Python literals ? - Literals in Python - Wikitechy","isPartOf":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/python\/what-do-you-mean-by-python-literals\/#primaryimage"},"image":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/python\/what-do-you-mean-by-python-literals\/#primaryimage"},"thumbnailUrl":"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/literals-in-python.png","datePublished":"2022-08-16T11:29:10+00:00","dateModified":"2022-08-16T11:29:35+00:00","author":{"@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/f785ba3ecc599133e65ab6138042a3e4"},"description":"What do you mean by Python literals ? - Literals are a notation for representing a fixed value in source code and it can be defined as raw value or data given in variables or constants.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wikitechy.com\/interview-questions\/python\/what-do-you-mean-by-python-literals\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.wikitechy.com\/interview-questions\/python\/what-do-you-mean-by-python-literals\/#primaryimage","url":"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/literals-in-python.png","contentUrl":"https:\/\/www.wikitechy.com\/interview-questions\/wp-content\/uploads\/2022\/08\/literals-in-python.png","width":1213,"height":826},{"@type":"WebSite","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#website","url":"https:\/\/www.wikitechy.com\/interview-questions\/","name":"Wikitechy","description":"Interview Questions","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wikitechy.com\/interview-questions\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.wikitechy.com\/interview-questions\/#\/schema\/person\/f785ba3ecc599133e65ab6138042a3e4","name":"webmaster","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/155b77fd8cdda3d0913fcb7e7ee63543b0c345d2d8f6dcebda5b0583ab61f967?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/155b77fd8cdda3d0913fcb7e7ee63543b0c345d2d8f6dcebda5b0583ab61f967?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/155b77fd8cdda3d0913fcb7e7ee63543b0c345d2d8f6dcebda5b0583ab61f967?s=96&d=mm&r=g","caption":"webmaster"},"sameAs":["https:\/\/www.wikitechy.com\/interview-questions"],"url":"https:\/\/www.wikitechy.com\/interview-questions\/author\/webmaster\/"}]}},"_links":{"self":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/4710","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/comments?post=4710"}],"version-history":[{"count":2,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/4710\/revisions"}],"predecessor-version":[{"id":4718,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/posts\/4710\/revisions\/4718"}],"wp:attachment":[{"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/media?parent=4710"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/categories?post=4710"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wikitechy.com\/interview-questions\/wp-json\/wp\/v2\/tags?post=4710"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}