{"id":9,"date":"2022-08-23T07:26:08","date_gmt":"2022-08-23T07:26:08","guid":{"rendered":"https:\/\/python.freelinuxtutorials.com\/?p=9"},"modified":"2022-08-23T07:26:08","modified_gmt":"2022-08-23T07:26:08","slug":"basic-data-types-in-python","status":"publish","type":"post","link":"https:\/\/python.freelinuxtutorials.com\/index.php\/2022\/08\/23\/basic-data-types-in-python\/","title":{"rendered":"Basic Data Types in Python"},"content":{"rendered":"<p>There are few data types in Python namely:<\/p>\n<ul>\n<li><strong>integers<\/strong> (int) \u2013 numeric type, whole numbers (can be positive or negative), e.g. 1,2,3<\/li>\n<li><strong>floating<\/strong> (float) \u2013 numeric type,numbers with decimal point, e.g. 1.1, 2.20, 3.450<\/li>\n<li><strong>complex<\/strong> (complex) \u2013 numeric type, real + imaginary,e.g. 5+6q<\/li>\n<li><strong>strings<\/strong> (str) \u2013 text type, sequences of characters,e.g. \u201cEuan\u201d, \u201c1234\u201d<\/li>\n<li><strong>dictionaries<\/strong> (dict) \u2013 is a mapping type, unordered key:valued pairs<\/li>\n<li><strong>lists<\/strong> (list) -sequence type,ordered sequence of objects,e.g.[123,\u201dEuan\u201d,100.0]<\/li>\n<li><strong>sets<\/strong> (set) -set type, unordered collection of objects {\u201cx\u201d,\u201dy\u201d}<\/li>\n<li><strong>booleans<\/strong> (bool)- logical value, either True or False<\/li>\n<li><strong>tuples<\/strong> (tup), ordered,unchangeable or immutable sequence of objects<\/li>\n<\/ul>\n<div><\/div>\n<div>There are few more data types which I won\u2019t cover for now. See you next post.<\/div>\n","protected":false},"excerpt":{"rendered":"<p>There are few data types in Python namely: integers (int) \u2013 numeric type, whole numbers (can be positive or negative), e.g. 1,2,3 floating (float) \u2013 numeric type,numbers with decimal point, e.g. 1.1, 2.20, 3.450 complex (complex) \u2013 numeric type, real + imaginary,e.g. 5+6q strings (str) \u2013 text type, sequences of characters,e.g. \u201cEuan\u201d, \u201c1234\u201d dictionaries (dict)&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-9","post","type-post","status-publish","format-standard","hentry","category-blog"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/python.freelinuxtutorials.com\/index.php\/wp-json\/wp\/v2\/posts\/9","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/python.freelinuxtutorials.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/python.freelinuxtutorials.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/python.freelinuxtutorials.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/python.freelinuxtutorials.com\/index.php\/wp-json\/wp\/v2\/comments?post=9"}],"version-history":[{"count":2,"href":"https:\/\/python.freelinuxtutorials.com\/index.php\/wp-json\/wp\/v2\/posts\/9\/revisions"}],"predecessor-version":[{"id":11,"href":"https:\/\/python.freelinuxtutorials.com\/index.php\/wp-json\/wp\/v2\/posts\/9\/revisions\/11"}],"wp:attachment":[{"href":"https:\/\/python.freelinuxtutorials.com\/index.php\/wp-json\/wp\/v2\/media?parent=9"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/python.freelinuxtutorials.com\/index.php\/wp-json\/wp\/v2\/categories?post=9"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/python.freelinuxtutorials.com\/index.php\/wp-json\/wp\/v2\/tags?post=9"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}