{"id":12275,"date":"2020-05-20T21:10:20","date_gmt":"2020-05-21T04:10:20","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=12275"},"modified":"2023-12-01T02:47:54","modified_gmt":"2023-12-01T10:47:54","slug":"python-data-types","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/python-data-types\/","title":{"rendered":"A Complete Guide to Python Data Types"},"content":{"rendered":"\n<p><em>Data types in Python are the different formats in which Python stores data. Some Python data types are tuples, floats, strings, and lists. Each data type has it&#8217;s own rules and uses and can store different data. <\/em><\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<p>Data types are used to store a particular type of data in programming and include numbers, strings, and lists. Using the right data type is important because each type of data has its own rules and operations. So, if you use the wrong data type, you may not be able to perform certain functions on a string.<\/p>\n\n\n\n<p>Python includes a number of built-in data types that can be used to store data. In this tutorial, we are going to explore the most commonly used data types in Python.<\/p>\n\n\n\n<p>It\u2019s important to note that this article is not a comprehensive guide to these data types\u2014each one has many different features\u2014but by the end of reading this you should be equipped with the knowledge you need to work with Python data types.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Strings<\/h2>\n\n\n\n<p>Strings are sequences of one or more characters and can include letters, numbers, symbols, and spaces. Strings in Python are declared within single quotes (<code>\u2018\u2019<\/code>) or double quotes (<code>\u201c\u201d<\/code>), and should start and end with the same type of quote.<\/p>\n\n\n\n<p>Here\u2019s an example of a string in Python:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>'This is an example string!'<\/pre><\/div>\n\n\n\n<p>Like any type of data, Python strings can be assigned to a variable. This is useful if we want to store our data for future use in our program. Here\u2019s an example of a Python variable that contains a string: <\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>example_string = 'This is an example string!'<\/pre><\/div>\n\n\n\n<p>Strings are used to store text values in Python. The string data type also features a number of operations that can be used to manipulate our text, such as string concatenation and string splits and joins. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Numbers<\/h2>\n\n\n\n<p>Python includes two data types that can be used to represent numbers: integers and floats. Integers are Python numbers without decimals, whereas floats are complex numbers with decimals.<\/p>\n\n\n\n<p>When you enter a number in Python, it will automatically assign it to the right data type.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Integers<\/h3>\n\n\n\n<p>Integers are whole numbers that can be assigned any positive or negative value. Integers are commonly referred to as <code>int<\/code> in Python, and do not include commas in larger numbers.<\/p>\n\n\n\n<p>Here\u2019s an example of an integer in Python:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>print(5)<\/pre><\/div>\n\n\n\n<p>Our program returns: 5. <\/p>\n\n\n\n<p>In addition, you can perform mathematical functions on integers. Below is an example of a basic addition calculation in Python: <\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>example_addition =  10 + 10\nprint(example_addition)<\/pre><\/div>\n\n\n\n<p>Our program returns: 20. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Floats<\/h3>\n\n\n\n<p>Floats, or floating-point numbers, are real numbers. This means that they can store decimal and fractional values, unlike integers. In simple terms, floats can be used to store numbers that contain decimal points.<\/p>\n\n\n\n<p>Here\u2019s an example of a float in Python:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>print(2.5)<\/pre><\/div>\n\n\n\n<p>Our code returns: 2.5.<\/p>\n\n\n\n<p>Similar to integers, we can run mathematical calculations on our integers as well. So, if we wanted to add two decimal numbers, we could do so using the following code:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>example_decimal_addition = 10.9 + 22.2<\/pre><\/div>\n\n\n\n<p>Our code returns: 33.1. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Boolean<\/h2>\n\n\n\n<p>Booleans can be used to store data that has one of two values. The Boolean data type can either be assigned a True or False value and are used in situations where something can only have one of two states.<\/p>\n\n\n\n<p>Here\u2019s an example of a Boolean in Python:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>example_boolean = True<\/pre><\/div>\n\n\n\n<p>Notice that our Boolean value <code>True<\/code> is capitalized. This is because True and False are special values in Python, and so whenever you use them, you should use capital letters.<\/p>\n\n\n\n<p>Booleans are important because they allow us to evaluate whether or not a condition is met in a program. For example, let\u2019s say you are a teacher who wants to figure out which of two students earned the highest grade. You could use the following statement to perform that action:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>alex = 9\nsophie = 10\nhighest_grade = alex &gt; sophie\nprint(highest_grade)<\/pre><\/div>\n\n\n\n<p>Our code returns: False.<\/p>\n\n\n\n<p>As you can see, our program has compared the grades of Alex and Sophie. Our program evaluated whether Alex\u2019s grade was greater than Sophie\u2019s grade, and because Sophie scored higher in the test, our code returned <code>False<\/code>.<\/p>\n\n\n\n<p>Booleans are often used in statements that compare values. For example, if you want to find out whether a value is less than, greater than, or equal to another value, you may evaluate the values and store the response in a Boolean.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Lists<\/h2>\n\n\n\n<p>Lists are ordered sequences of elements, or <code>items<\/code>. Lists are also mutable, which means they can be changed. In Python, lists are defined by enclosing a set of comma-separated values within square brackets.<\/p>\n\n\n\n<p>Here\u2019s an example of a list of student names in Python:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>students = ['Dale', 'Chloe', 'Alice', 'Jim']<\/pre><\/div>\n\n\n\n<p>Lists can store any data type. So, if we wanted to store a list of booleans or floats, we could do so by enclosing it within square brackets. Here\u2019s an example of a list of integers: <\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>student_grades = [25, 28, 22, 24]<\/pre><\/div>\n\n\n\n<p>Lists are a useful data type because they allow you to store sequences of values in one variable. So, you don\u2019t have to declare multiple variables to store different values. In addition, lists can be changed, which means that if you need to manipulate the values in a list, you are able to do so.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Tuples<\/h2>\n\n\n\n<p>Tuples are ordered sequences of elements. Unlike lists, however, tuples are immutable, so you cannot change the contents of a tuple. Tuples are declared as a list of comma-separated values enclosed within parentheses <code>(())<\/code>.<\/p>\n\n\n\n<p>Here\u2019s an example of a tuple in Python:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>desserts = ('Chocolate Cake', 'Toffee Brownie', Apple Pie')<\/pre><\/div>\n\n\n\n<p>Elements can be added or removed from a tuple, but the exact values stored in a tuple cannot be changed. This data type is useful if you have a list of items you want to store, but that you do not want to change later. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Dictionaries<\/h2>\n\n\n\n<p>Python dictionaries are collections of items that are unordered, indexed and mutable. This means that there is no specific order to the items in a dictionary, and they have their own index values (or <code>keys<\/code>) that can be used to reference individual elements. In addition, the contents of a dictionary are changeable.<\/p>\n\n\n\n<p>Dictionaries are declared as a list of values enclosed within curly braces (<code>{}<\/code>).<\/p>\n\n\n\n<p>Dictionaries are often used to hold data that are related. Let\u2019s say you own a shoe store and want to store the brand name, shoe name, and prices of shoes in your inventory. Here\u2019s an example of a dictionary that would store one of these shoes: <\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>jordan_6s = {\n\t'name': 'Jordan 6 Rings'\n\t'price': 57.50,\n\t'brand_name': 'Jordan'\n}<\/pre><\/div>\n\n\n\n<p>Notice that our dictionary above includes colons. This is because our dictionary contains two parts: keys and values. In the above example, our keys are <code>name<\/code>, <code>price<\/code>, and <code>brand_name<\/code>, and we can use them to get the value of a key. <\/p>\n\n\n\n<p> So, if we wanted to retrieve the price of our Jordan 6 Rings, we could use the following code: <\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>print(jordan_6s['price'])<\/pre><\/div>\n\n\n\n<p>Our code returns: 57.5. The key\/value pair structure in dictionaries has a wide variety of applications in Python, and can be useful when you\u2019re storing related data. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Sets<\/h2>\n\n\n\n<p>Python sets are unordered collections of elements. Every item in a Python set is unique, which means that no duplicates are allowed in a set. In addition, sets are immutable, and so their values cannot be changed after the set is declared.<\/p>\n\n\n\n<p>Sets are defined as a list of values separated by commas and enclosed within curly braces (<code>{}<\/code>).<\/p>\n\n\n\n<p>Sets are commonly used in Python to perform specific mathematical operations such as unions or intersections. Here\u2019s an example of a set in Python:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>colors = {'Red', 'Orange', 'Yellow', 'Green'}<\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>Python contains a number of built-in data types that can be used to store specific types of data. The most commonly used data types in Python are: string, integer, float, list, dictionary, set, and tuple.<\/p>\n\n\n\n<p>In this tutorial, we explored the basics of each of these data types and discussed where they may be used in a Python program. Now you\u2019re ready to start working with Python data types like an expert!<\/p>\n\n\n\n<p><strong><em>Python is an in-demand skill in the technology industry. Download the <\/em><\/strong><a href=\"https:\/\/careerkarma.com\/\"><strong><em>free Career Karma app<\/em><\/strong><\/a><strong><em> today to talk with one of our expert coaches about how learning Python could help you break into a career in tech.<\/em><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"Data types in Python are the different formats in which Python stores data. Some Python data types are tuples, floats, strings, and lists. Each data type has it's own rules and uses and can store different data. Data types are used to store a particular type of data in programming and include numbers, strings, and&hellip;","protected":false},"author":240,"featured_media":12276,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[16578],"tags":[],"class_list":{"0":"post-12275","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-python"},"acf":{"post_sub_title":"","sprint_id":"","query_class":"Python","school_sft":"","parent_sft":"","school_privacy_policy":"","has_review":"","is_sponser_post":"","is_guest_post":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.0 (Yoast SEO v27.0) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>A Complete Guide to Python Data Types | Career Karma<\/title>\n<meta name=\"description\" content=\"Python includes a number of built-in data types that are used to store data. Learn about the main data types in Python, how they work, and how you can use them on Career Karma.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/careerkarma.com\/blog\/python-data-types\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"A Complete Guide to Python Data Types\" \/>\n<meta property=\"og:description\" content=\"Python includes a number of built-in data types that are used to store data. Learn about the main data types in Python, how they work, and how you can use them on Career Karma.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/python-data-types\/\" \/>\n<meta property=\"og:site_name\" content=\"Career Karma\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/facebook.com\/careerkarmaapp\" \/>\n<meta property=\"article:published_time\" content=\"2020-05-21T04:10:20+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T10:47:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/python-data-types.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1000\" \/>\n\t<meta property=\"og:image:height\" content=\"668\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"James Gallagher\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@career_karma\" \/>\n<meta name=\"twitter:site\" content=\"@career_karma\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"James Gallagher\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-data-types\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-data-types\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"A Complete Guide to Python Data Types\",\"datePublished\":\"2020-05-21T04:10:20+00:00\",\"dateModified\":\"2023-12-01T10:47:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-data-types\/\"},\"wordCount\":1324,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-data-types\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/python-data-types.jpg\",\"articleSection\":[\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-data-types\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-data-types\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/python-data-types\/\",\"name\":\"A Complete Guide to Python Data Types | Career Karma\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-data-types\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-data-types\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/python-data-types.jpg\",\"datePublished\":\"2020-05-21T04:10:20+00:00\",\"dateModified\":\"2023-12-01T10:47:54+00:00\",\"author\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"Python includes a number of built-in data types that are used to store data. Learn about the main data types in Python, how they work, and how you can use them on Career Karma.\",\"breadcrumb\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-data-types\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-data-types\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-data-types\/#primaryimage\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/python-data-types.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/python-data-types.jpg\",\"width\":1000,\"height\":668},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-data-types\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\/\/careerkarma.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python\",\"item\":\"https:\/\/careerkarma.com\/blog\/python\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"A Complete Guide to Python Data Types\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\",\"url\":\"https:\/\/careerkarma.com\/blog\/\",\"name\":\"Career Karma\",\"description\":\"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/careerkarma.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\",\"name\":\"James Gallagher\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg\",\"caption\":\"James Gallagher\"},\"description\":\"James Gallagher is a self-taught programmer and the technical content manager at Career Karma. He has experience in range of programming languages and extensive expertise in Python, HTML, CSS, and JavaScript. James has written hundreds of programming tutorials, and he frequently contributes to publications like Codecademy, Treehouse, Repl.it, Afrotech, and others.\",\"url\":\"https:\/\/careerkarma.com\/blog\/author\/jamesgallagher\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"A Complete Guide to Python Data Types | Career Karma","description":"Python includes a number of built-in data types that are used to store data. Learn about the main data types in Python, how they work, and how you can use them on Career Karma.","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:\/\/careerkarma.com\/blog\/python-data-types\/","og_locale":"en_US","og_type":"article","og_title":"A Complete Guide to Python Data Types","og_description":"Python includes a number of built-in data types that are used to store data. Learn about the main data types in Python, how they work, and how you can use them on Career Karma.","og_url":"https:\/\/careerkarma.com\/blog\/python-data-types\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-05-21T04:10:20+00:00","article_modified_time":"2023-12-01T10:47:54+00:00","og_image":[{"width":1000,"height":668,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/python-data-types.jpg","type":"image\/jpeg"}],"author":"James Gallagher","twitter_card":"summary_large_image","twitter_creator":"@career_karma","twitter_site":"@career_karma","twitter_misc":{"Written by":"James Gallagher","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/careerkarma.com\/blog\/python-data-types\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/python-data-types\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"A Complete Guide to Python Data Types","datePublished":"2020-05-21T04:10:20+00:00","dateModified":"2023-12-01T10:47:54+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-data-types\/"},"wordCount":1324,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-data-types\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/python-data-types.jpg","articleSection":["Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/python-data-types\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/python-data-types\/","url":"https:\/\/careerkarma.com\/blog\/python-data-types\/","name":"A Complete Guide to Python Data Types | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-data-types\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-data-types\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/python-data-types.jpg","datePublished":"2020-05-21T04:10:20+00:00","dateModified":"2023-12-01T10:47:54+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"Python includes a number of built-in data types that are used to store data. Learn about the main data types in Python, how they work, and how you can use them on Career Karma.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/python-data-types\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/python-data-types\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/python-data-types\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/python-data-types.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/python-data-types.jpg","width":1000,"height":668},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/python-data-types\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/careerkarma.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Python","item":"https:\/\/careerkarma.com\/blog\/python\/"},{"@type":"ListItem","position":3,"name":"A Complete Guide to Python Data Types"}]},{"@type":"WebSite","@id":"https:\/\/careerkarma.com\/blog\/#website","url":"https:\/\/careerkarma.com\/blog\/","name":"Career Karma","description":"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/careerkarma.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94","name":"James Gallagher","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","caption":"James Gallagher"},"description":"James Gallagher is a self-taught programmer and the technical content manager at Career Karma. He has experience in range of programming languages and extensive expertise in Python, HTML, CSS, and JavaScript. James has written hundreds of programming tutorials, and he frequently contributes to publications like Codecademy, Treehouse, Repl.it, Afrotech, and others.","url":"https:\/\/careerkarma.com\/blog\/author\/jamesgallagher\/"}]}},"_links":{"self":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/12275","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/users\/240"}],"replies":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/comments?post=12275"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/12275\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/12276"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=12275"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=12275"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=12275"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}