{"id":113417,"date":"2025-11-24T15:00:17","date_gmt":"2025-11-24T09:30:17","guid":{"rendered":"https:\/\/www.mygreatlearning.com\/blog\/?page_id=113417"},"modified":"2025-11-24T14:24:48","modified_gmt":"2025-11-24T08:54:48","slug":"python-data-types","status":"publish","type":"page","link":"https:\/\/www.mygreatlearning.com\/blog\/python\/python-data-types\/","title":{"rendered":"Python Data Types with Examples"},"content":{"rendered":"\n<h1 id=\"python-data-types-with-examples\">Python Data Types with Examples<\/h1>\n\n<p>\n    Any value you write in Python-number, text, list, anything-has a type.\n<\/p>\n<p>\n    Data types basically tell Python: \"What is this thing?\"\n<\/p>\n<ul>\n    <li>Is it a number?<\/li>\n    <li>Is it text?<\/li>\n    <li>Is it a list of items?<\/li>\n<\/ul>\n<p>\n    If you understand data types, you'll make far fewer mistakes when writing code.\n<\/p>\n\n<h2 id=\"what-is-a-data-type\">What is a Data Type?<\/h2>\n<p>\n    A data type classifies the kind of value a variable can hold. It tells the Python interpreter how to store and manage the data. This means you can perform mathematical operations on numbers but not on text, which prevents unexpected errors. For example, Python recognizes <code>42<\/code> as a number and <code>\"Python\"<\/code> as text.\n<\/p>\n\n\n<h2 id=\"pythons-built-in-data-types\">Python's Built-in Data Types<\/h2>\n<p>\n    Python provides several standard data types ready for you to use. These types fall into several categories:\n<\/p>\n\n<h3 id=\"1-text-type-str\">1. Text Type: <code>str<\/code><\/h3>\n<p>\n    The string (<code>str<\/code>) data type stores sequences of characters as text. You create a string by enclosing characters in single (<code>'<\/code>) or double (<code>\"<\/code>) quotes.\n<\/p>\n\n<h4 id=\"example-defining-a-string\">Example: Defining a String<\/h4>\n<p>\n    Define a variable <code>my_language<\/code> as a string and print it.\n<\/p>\n<div class=\"code-editor-container\">\n    <div id=\"editor-str\" class=\"python-code-editor\">\nmy_language = \"Python\"\nmy_text_number = \"10\"\nprint(my_language)\nprint(my_text_number)\n    <\/div>\n    <div class=\"button-container\">\n        <button class=\"button button-run\" onclick=\"runPythonCode('editor-str', 'output-str')\">Run Code<\/button>\n        <button class=\"button button-toggle\" onclick=\"toggleSolution('solution-str', this)\">Show Example<\/button>\n    <\/div>\n\n    <div id=\"solution-str\" class=\"code-solution\">\n        <pre><code>my_language = \"Python\"\nprint(my_language)<\/code><\/pre>\n    <\/div>\n\n    <label for=\"output-str\" class=\"output-label\">Output:<\/label>\n    <pre id=\"output-str\" class=\"code-output\">Your output will appear here...<\/pre>\n<\/div>\n\n\n<h3 id=\"2-numeric-types-int-float-complex\">2. Numeric Types: <code>int<\/code>, <code>float<\/code>, <code>complex<\/code><\/h3>\n<p>\n    Numeric types represent different kinds of numbers. Python supports three distinct types for various mathematical needs.\n<\/p>\n<ul>\n    <li>Integer (<code>int<\/code>): Whole numbers without decimals.<\/li>\n    <li>Float (<code>float<\/code>): Numbers that contain one or more decimals.<\/li>\n    <li>Complex (<code>complex<\/code>): Numbers with an imaginary part, written with a \"j\".<\/li>\n<\/ul>\n\n<h4 id=\"example-define-examples-of-each-numeric-type\">Example: Define examples of each numeric type.<\/h4>\n<div class=\"code-editor-container\">\n    <div id=\"editor-num\" class=\"python-code-editor\">\nmy_integer = 100\nmy_float = 20.5\nmy_complex = 1j\n\nprint(my_integer + my_float)\n    <\/div>\n    <div class=\"button-container\">\n        <button class=\"button button-run\" onclick=\"runPythonCode('editor-num', 'output-num')\">Run Code<\/button>\n        <button class=\"button button-toggle\" onclick=\"toggleSolution('solution-num', this)\">Show Example<\/button>\n    <\/div>\n\n    <div id=\"solution-num\" class=\"code-solution\">\n        <pre><code>my_integer = 100\nmy_float = 20.5\nmy_complex = 1j\n\nprint(my_integer + my_float)<\/code><\/pre>\n    <\/div>\n\n    <label for=\"output-num\" class=\"output-label\">Output:<\/label>\n    <pre id=\"output-num\" class=\"code-output\">Your output will appear here...<\/pre>\n<\/div>\n\n\n<h3 id=\"3-sequence-types-list-tuple-range\">3. Sequence Types: <code>list<\/code>, <code>tuple<\/code>, <code>range<\/code><\/h3>\n<p>\n    Sequence types store ordered collections of items. You can access any item by its position (index) in the sequence.\n<\/p>\n<ul>\n    <li>List (<code>list<\/code>): An ordered and changeable collection.<\/li>\n    <li>Tuple (<code>tuple<\/code>): An ordered and unchangeable collection.<\/li>\n    <li>Range (<code>range<\/code>): An immutable sequence of numbers, often used in loops.<\/li>\n<\/ul>\n\n<h4 id=\"example-sequence-types\">Example: Sequence Types<\/h4>\n<p>\n    Define a list and access its first element.\n<\/p>\n<div class=\"code-editor-container\">\n    <div id=\"editor-seq\" class=\"python-code-editor\">\nmy_list = [\"apple\", \"banana\", \"cherry\"]\nmy_tuple = (\"apple\", \"banana\", \"cherry\")\nmy_range = range(3)\n\nprint(my_list[0])\n    <\/div>\n    <div class=\"button-container\">\n        <button class=\"button button-run\" onclick=\"runPythonCode('editor-seq', 'output-seq')\">Run Code<\/button>\n        <button class=\"button button-toggle\" onclick=\"toggleSolution('solution-seq', this)\">Show Example<\/button>\n    <\/div>\n\n    <div id=\"solution-seq\" class=\"code-solution\">\n        <pre><code>my_list = [\"apple\", \"banana\", \"cherry\"]\nmy_tuple = (\"apple\", \"banana\", \"cherry\")\nmy_range = range(3)\n\nprint(my_list[0])<\/code><\/pre>\n    <\/div>\n\n    <label for=\"output-seq\" class=\"output-label\">Output:<\/label>\n    <pre id=\"output-seq\" class=\"code-output\">Your output will appear here...<\/pre>\n<\/div>\n\n\n<h3 id=\"4-mapping-type-dict\">4. Mapping Type: <code>dict<\/code><\/h3>\n<p>\n    A dictionary (<code>dict<\/code>) stores data in key-value pairs. Dictionaries are ordered (since Python 3.7), changeable, and do not allow duplicate keys.\n<\/p>\n\n<h4 id=\"example-defining-a-dictionary\">Example: Defining a Dictionary<\/h4>\n<p>\n    Access a dictionary's value using its key.\n<\/p>\n<div class=\"code-editor-container\">\n    <div id=\"editor-dict\" class=\"python-code-editor\">\nmy_car = {\n    \"brand\": \"Ford\",\n    \"model\": \"Mustang\",\n    \"year\": 1964\n}\n\nprint(my_car[\"model\"])\n    <\/div>\n    <div class=\"button-container\">\n        <button class=\"button button-run\" onclick=\"runPythonCode('editor-dict', 'output-dict')\">Run Code<\/button>\n        <button class=\"button button-toggle\" onclick=\"toggleSolution('solution-dict', this)\">Show Example<\/button>\n    <\/div>\n\n    <div id=\"solution-dict\" class=\"code-solution\">\n        <pre><code>my_car = {\n    \"brand\": \"Ford\",\n    \"model\": \"Mustang\",\n    \"year\": 1964\n}\n\nprint(my_car[\"model\"])<\/code><\/pre>\n    <\/div>\n\n    <label for=\"output-dict\" class=\"output-label\">Output:<\/label>\n    <pre id=\"output-dict\" class=\"code-output\">Your output will appear here...<\/pre>\n<\/div>\n\n\n<h3 id=\"5-set-types-set-frozenset\">5. Set Types: <code>set<\/code>, <code>frozenset<\/code><\/h3>\n<p>\n    A set is a collection of unique items. Sets ensure each item appears only once in the collection.\n<\/p>\n<ul>\n    <li>Set (<code>set<\/code>): A mutable and unordered collection of unique items.<\/li>\n    <li>Frozenset (<code>frozenset<\/code>): An immutable and unordered collection of unique items.<\/li>\n<\/ul>\n\n<h4 id=\"example-working-with-sets-and-frozensets\">Example: Working with Sets and Frozensets<\/h4>\n<p>\n    Define a set with a duplicate item, and define a frozenset.\n<\/p>\n<div class=\"code-editor-container\">\n    <div id=\"editor-set\" class=\"python-code-editor\">\n# A standard set (mutable)\nmy_set = {\"apple\", \"banana\", \"cherry\", \"apple\"}\n\n# A frozen set (immutable)\nmy_frozenset = frozenset([\"apple\", \"banana\", \"cherry\"])\n\nprint(my_set)\nprint(my_frozenset)\n    <\/div>\n    <div class=\"button-container\">\n        <button class=\"button button-run\" onclick=\"runPythonCode('editor-set', 'output-set')\">Run Code<\/button>\n        <button class=\"button button-toggle\" onclick=\"toggleSolution('solution-set', this)\">Show Example<\/button>\n    <\/div>\n\n    <div id=\"solution-set\" class=\"code-solution\">\n        <pre><code># A standard set (mutable)\nmy_set = {\"apple\", \"banana\", \"cherry\", \"apple\"}\n\n# A frozen set (immutable)\nmy_frozenset = frozenset([\"apple\", \"banana\", \"cherry\"])\n\nprint(my_set)\nprint(my_frozenset)<\/code><\/pre>\n    <\/div>\n\n    <label for=\"output-set\" class=\"output-label\">Output:<\/label>\n    <pre id=\"output-set\" class=\"code-output\">Your output will appear here...<\/pre>\n    \n    <div class=\"insight-box\"> <strong>Analysis:<\/strong> Look at your output for <code>my_set<\/code>. Notice that \"apple\" only appears once? Sets automatically detect and remove duplicates for you. Also, the order of items might change every time you run the code because sets are unordered.<\/div>\n<\/div>\n\n\n<h3 id=\"6-boolean-type-bool\">6. Boolean Type: <code>bool<\/code><\/h3>\n<p>\n    The boolean (<code>bool<\/code>) type represents one of two values: <code>True<\/code> or <code>False<\/code>. It often results from comparisons and helps control your program's flow.\n<\/p>\n\n<h4 id=\"example-boolean-values\">Example: Boolean Values<\/h4>\n<p>\n    Use a comparison operator to produce a boolean value.\n<\/p>\n<div class=\"code-editor-container\">\n    <div id=\"editor-bool\" class=\"python-code-editor\">\nx = 10\ny = 5\nis_greater = x > y\nprint(is_greater)\n    <\/div>\n    <div class=\"button-container\">\n        <button class=\"button button-run\" onclick=\"runPythonCode('editor-bool', 'output-bool')\">Run Code<\/button>\n        <button class=\"button button-toggle\" onclick=\"toggleSolution('solution-bool', this)\">Show Example<\/button>\n    <\/div>\n\n    <div id=\"solution-bool\" class=\"code-solution\">\n        <pre><code>x = 10\ny = 5\n\nis_greater = x > y\nprint(is_greater)<\/code><\/pre>\n    <\/div>\n\n    <label for=\"output-bool\" class=\"output-label\">Output:<\/label>\n    <pre id=\"output-bool\" class=\"code-output\">Your output will appear here...<\/pre>\n<\/div>\n\n\n<h3 id=\"7-none-type-nonetype\">7. None Type: <code>NoneType<\/code><\/h3>\n<p>\n    The <code>NoneType<\/code> has only one value: <code>None<\/code>. It represents the absence of a value, such as when a function does not explicitly return anything.\n<\/p>\n\n<h4 id=\"example-none-value\">Example: None Value<\/h4>\n<p>\n    Assign <code>None<\/code> to a variable.\n<\/p>\n<div class=\"code-editor-container\">\n    <div id=\"editor-none\" class=\"python-code-editor\">\nmy_variable = None\nprint(my_variable)\n    <\/div>\n    <div class=\"button-container\">\n        <button class=\"button button-run\" onclick=\"runPythonCode('editor-none', 'output-none')\">Run Code<\/button>\n        <button class=\"button button-toggle\" onclick=\"toggleSolution('solution-none', this)\">Show Example<\/button>\n    <\/div>\n\n    <div id=\"solution-none\" class=\"code-solution\">\n        <pre><code>my_variable = None\n\nprint(my_variable)<\/code><\/pre>\n    <\/div>\n\n    <label for=\"output-none\" class=\"output-label\">Output:<\/label>\n    <pre id=\"output-none\" class=\"code-output\">Your output will appear here...<\/pre>\n<\/div>\n\n<h2 id=\"how-to-check-a-variables-data-type\">How to Check a Variable's Data Type<\/h2>\n<p>\n    You can find the data type of any object with the built-in <strong><code>type()<\/code><\/strong> function. This function is essential for debugging and understanding how Python manages your data.\n<\/p>\n<ol>\n    <li>Define a variable with a value.<\/li>\n    <li>Pass the variable to the <code>type()<\/code> function.<\/li>\n    <li>Use <code>print()<\/code> to display the result.<\/li>\n<\/ol>\n\n<h4 id=\"exercise-using-the-type-function\">Exercise: Using the <code>type()<\/code> function<\/h4>\n<p>\n    In the code editor below, use the <code>type()<\/code> function to determine the data type of the variable <code>price<\/code> and print the result.\n<\/p>\n\n<div class=\"code-editor-container\">\n    <div id=\"editor-1\" class=\"python-code-editor\">\nprice = 19.99\n\n# TODO: Print the data type of the 'price' variable\n# print( ... )\n    <\/div>\n    <div class=\"button-container\">\n        <button class=\"button button-run\" onclick=\"runPythonCode('editor-1', 'output-1')\">Run Code<\/button>\n        <button class=\"button button-toggle\" onclick=\"toggleSolution('solution-1', this)\">Show Example<\/button>\n    <\/div>\n\n    <div id=\"solution-1\" class=\"code-solution\">\n        <pre><code>price = 19.99\n\nprint(type(price))<\/code><\/pre>\n    <\/div>\n\n    <label for=\"output-1\" class=\"output-label\">Output:<\/label>\n    <pre id=\"output-1\" class=\"code-output\">Your output will appear here...<\/pre>\n<\/div>\n\n\n<h2 id=\"python-uses-dynamic-typing\">Python Uses Dynamic Typing<\/h2>\n<p>\n    Python is a dynamically typed language. This means you don't have to declare a variable's data type when you create it. The interpreter determines the type automatically at runtime based on the assigned value. This gives you flexibility, as you can reassign a variable to a different data type without causing an error.\n<\/p>\n\n<h4 id=\"example-dynamic-reassignment\">Example: Dynamic Reassignment<\/h4>\n<p>\n    Observe how the same variable <code>my_var<\/code> changes its type from an integer to a string when a new value is assigned.\n<\/p>\n<div class=\"code-editor-container\">\n    <div id=\"editor-dynamic\" class=\"python-code-editor\">\nmy_var = 10      # Integer\nprint(\"First Type:\", type(my_var))\n\nmy_var = \"Text\"  # String\nprint(\"Second Type:\", type(my_var))\n    <\/div>\n    <div class=\"button-container\">\n        <button class=\"button button-run\" onclick=\"runPythonCode('editor-dynamic', 'output-dynamic')\">Run Code<\/button>\n        <button class=\"button button-toggle\" onclick=\"toggleSolution('solution-dynamic', this)\">Show Example<\/button>\n    <\/div>\n\n    <div id=\"solution-dynamic\" class=\"code-solution\">\n        <pre><code>my_var = 10\nprint(\"First Type:\", type(my_var))\n\nmy_var = \"Text\"\nprint(\"Second Type:\", type(my_var))<\/code><\/pre>\n    <\/div>\n\n    <label for=\"output-dynamic\" class=\"output-label\">Output:<\/label>\n    <pre id=\"output-dynamic\" class=\"code-output\">Your output will appear here...<\/pre>\n    \n    <div class=\"insight-box\"> <strong>Analysis:<\/strong> As you can see, the data type of <code>my_var<\/code> changed instantly when we assigned a new value. In many other languages (like Java or C++), this would cause a crash, but Python handles it automatically.<\/div>\n<\/div>\n\n<h3 id=\"setting-a-specific-data-type\">Setting a Specific Data Type<\/h3>\n<p>\n    If you need to set a specific data type for a variable, you can use constructor functions.\n<\/p>\n\n<div style=\"overflow-x: auto; margin-bottom: 20px;\">\n    <table style=\"width: 100%; border-collapse: collapse; min-width: 600px;\">\n        <tr style=\"background-color: #f4f4f4;\">\n            <th style=\"border: 1px solid #ddd; padding: 12px; text-align: left;\">Data Type<\/th>\n            <th style=\"border: 1px solid #ddd; padding: 12px; text-align: left;\">Constructor Function<\/th>\n            <th style=\"border: 1px solid #ddd; padding: 12px; text-align: left;\">Example<\/th>\n        <\/tr>\n        <tr>\n            <td style=\"border: 1px solid #ddd; padding: 12px;\">str<\/td>\n            <td style=\"border: 1px solid #ddd; padding: 12px;\"><code>str()<\/code><\/td>\n            <td style=\"border: 1px solid #ddd; padding: 12px;\"><code>x = str(\"Hello World\")<\/code><\/td>\n        <\/tr>\n        <tr>\n            <td style=\"border: 1px solid #ddd; padding: 12px;\">int<\/td>\n            <td style=\"border: 1px solid #ddd; padding: 12px;\"><code>int()<\/code><\/td>\n            <td style=\"border: 1px solid #ddd; padding: 12px;\"><code>x = int(20)<\/code><\/td>\n        <\/tr>\n        <tr>\n            <td style=\"border: 1px solid #ddd; padding: 12px;\">float<\/td>\n            <td style=\"border: 1px solid #ddd; padding: 12px;\"><code>float()<\/code><\/td>\n            <td style=\"border: 1px solid #ddd; padding: 12px;\"><code>x = float(20.5)<\/code><\/td>\n        <\/tr>\n        <tr>\n            <td style=\"border: 1px solid #ddd; padding: 12px;\">complex<\/td>\n            <td style=\"border: 1px solid #ddd; padding: 12px;\"><code>complex()<\/code><\/td>\n            <td style=\"border: 1px solid #ddd; padding: 12px;\"><code>x = complex(1j)<\/code><\/td>\n        <\/tr>\n        <tr>\n            <td style=\"border: 1px solid #ddd; padding: 12px;\">list<\/td>\n            <td style=\"border: 1px solid #ddd; padding: 12px;\"><code>list()<\/code><\/td>\n            <td style=\"border: 1px solid #ddd; padding: 12px;\"><code>x = list((\"apple\", \"banana\", \"cherry\"))<\/code><\/td>\n        <\/tr>\n        <tr>\n            <td style=\"border: 1px solid #ddd; padding: 12px;\">tuple<\/td>\n            <td style=\"border: 1px solid #ddd; padding: 12px;\"><code>tuple()<\/code><\/td>\n            <td style=\"border: 1px solid #ddd; padding: 12px;\"><code>x = tuple((\"apple\", \"banana\", \"cherry\"))<\/code><\/td>\n        <\/tr>\n        <tr>\n            <td style=\"border: 1px solid #ddd; padding: 12px;\">range<\/td>\n            <td style=\"border: 1px solid #ddd; padding: 12px;\"><code>range()<\/code><\/td>\n            <td style=\"border: 1px solid #ddd; padding: 12px;\"><code>x = range(6)<\/code><\/td>\n        <\/tr>\n        <tr>\n            <td style=\"border: 1px solid #ddd; padding: 12px;\">dict<\/td>\n            <td style=\"border: 1px solid #ddd; padding: 12px;\"><code>dict()<\/code><\/td>\n            <td style=\"border: 1px solid #ddd; padding: 12px;\"><code>x = dict(name=\"John\", age=36)<\/code><\/td>\n        <\/tr>\n        <tr>\n            <td style=\"border: 1px solid #ddd; padding: 12px;\">set<\/td>\n            <td style=\"border: 1px solid #ddd; padding: 12px;\"><code>set()<\/code><\/td>\n            <td style=\"border: 1px solid #ddd; padding: 12px;\"><code>x = set((\"apple\", \"banana\", \"cherry\"))<\/code><\/td>\n        <\/tr>\n        <tr>\n            <td style=\"border: 1px solid #ddd; padding: 12px;\">frozenset<\/td>\n            <td style=\"border: 1px solid #ddd; padding: 12px;\"><code>frozenset()<\/code><\/td>\n            <td style=\"border: 1px solid #ddd; padding: 12px;\"><code>x = frozenset((\"apple\", \"banana\", \"cherry\"))<\/code><\/td>\n        <\/tr>\n        <tr>\n            <td style=\"border: 1px solid #ddd; padding: 12px;\">bool<\/td>\n            <td style=\"border: 1px solid #ddd; padding: 12px;\"><code>bool()<\/code><\/td>\n            <td style=\"border: 1px solid #ddd; padding: 12px;\"><code>x = bool(5)<\/code><\/td>\n        <\/tr>\n        <tr>\n            <td style=\"border: 1px solid #ddd; padding: 12px;\">bytes<\/td>\n            <td style=\"border: 1px solid #ddd; padding: 12px;\"><code>bytes()<\/code><\/td>\n            <td style=\"border: 1px solid #ddd; padding: 12px;\"><code>x = bytes(5)<\/code><\/td>\n        <\/tr>\n        <tr>\n            <td style=\"border: 1px solid #ddd; padding: 12px;\">bytearray<\/td>\n            <td style=\"border: 1px solid #ddd; padding: 12px;\"><code>bytearray()<\/code><\/td>\n            <td style=\"border: 1px solid #ddd; padding: 12px;\"><code>x = bytearray(5)<\/code><\/td>\n        <\/tr>\n        <tr>\n            <td style=\"border: 1px solid #ddd; padding: 12px;\">memoryview<\/td>\n            <td style=\"border: 1px solid #ddd; padding: 12px;\"><code>memoryview()<\/code><\/td>\n            <td style=\"border: 1px solid #ddd; padding: 12px;\"><code>x = memoryview(bytes(5))<\/code><\/td>\n        <\/tr>\n    <\/table>\n<\/div>\n\n<h2 id=\"final-challenge-mixed-data-type-identification\">Final Challenge: Mixed Data Type Identification<\/h2>\n<p>\n    Identify the correct data type for each variable below, covering the main categories (Numeric, Sequence, Mapping, Boolean, Text).\n<\/p>\n<p>Your Task:<\/p>\n<ol>\n    <li>Use the <code>type()<\/code> function to determine the type of <code>a<\/code>, <code>b<\/code>, <code>c<\/code>, <code>d<\/code>, and <code>e<\/code>.<\/li>\n    <li>Print the type for each variable.<\/li>\n<\/ol>\n\n<div class=\"code-editor-container\">\n    <div id=\"editor-5\" class=\"python-code-editor\">\na = 42\nb = [1, 2, 3]\nc = \"Data\"\nd = {\"key\": 1}\ne = 10.5\n\n# TODO: Find and print the type of a (int)\n# TODO: Find and print the type of b (list)\n# TODO: Find and print the type of c (str)\n# TODO: Find and print the type of d (dict)\n# TODO: Find and print the type of e (float)\n    <\/div>\n    <div class=\"button-container\">\n        <button class=\"button button-run\" onclick=\"runPythonCode('editor-5', 'output-5')\">Run Code<\/button>\n        <button class=\"button button-toggle\" onclick=\"toggleSolution('solution-5', this)\">Show Solution<\/button>\n    <\/div>\n\n    <div id=\"solution-5\" class=\"code-solution\">\n        <pre><code>a = 42\nb = [1, 2, 3]\nc = \"Data\"\nd = {\"key\": 1}\ne = 10.5\n\nprint(type(a))\nprint(type(b))\nprint(type(c))\nprint(type(d))\nprint(type(e))<\/code><\/pre>\n    <\/div>\n\n    <label for=\"output-5\" class=\"output-label\">Output:<\/label>\n    <pre id=\"output-5\" class=\"code-output\">Your output will appear here...<\/pre>\n<\/div>\n\n\n\n<div class=\"cta-final\">\n    <div class=\"cta-final-header\">\n        <span class=\"cta-final-trophy\">\ud83c\udfc6<\/span>\n        <h2 id=\"lesson-completed\">Lesson Completed<\/h2>\n    <\/div>\n\n    <p class=\"cta-final-intro\">\n        You have successfully learned about Python's built-in data types, how to check them, and how dynamic typing works.\n    <\/p>\n\n    <div class=\"cta-final-grid\">\n        <div class=\"cta-final-option\">\n            <div class=\"cta-final-option-header\">\n                <span>\ud83d\udcd8<\/span>\n                <h4 id=\"full-python-course\">Full Python Course<\/h4>\n            <\/div>\n            <p>Master Python with 11+ hours of content, 50+ exercises, and real-world projects.<\/p>\n            <a href=\"https:\/\/www.mygreatlearning.com\/academy\/premium\/master-python-programming?utm_source=blog\" class=\"cta-final-button-primary\">Enroll Now<\/a>\n        <\/div>\n\n        <div class=\"cta-final-option\" id=\"pt-next-lesson-container\">\n            <div class=\"cta-final-option-header\">\n                <span>\ud83d\udcdd<\/span>\n                <h4 id=\"next-lesson\">Next Lesson<\/h4>\n            <\/div>\n            <p id=\"pt-next-lesson-text\">Continue with the next lesson on Python Operators.<\/p>\n            <a href=\"#\" id=\"pt-next-lesson-button\" class=\"cta-final-button-secondary\">Next Lesson -><\/a>\n        <\/div>\n    <\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Learn Python data types with simple examples. Understand numbers, text, lists, dictionaries, and more to write clean, error-free Python code.<\/p>\n","protected":false},"author":41,"featured_media":113434,"parent":113156,"menu_order":9,"comment_status":"closed","ping_status":"closed","template":"templates\/python-tutorial.php","meta":{"_acf_changed":false,"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[25860],"tags":[36796,36893],"class_list":["post-113417","page","type-page","status-publish","has-post-thumbnail","hentry","category-software","tag-python","tag-python-tutorial"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.3 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Python Data Types with Examples<\/title>\n<meta name=\"description\" content=\"Learn Python data types with simple examples. Understand numbers, text, lists, dictionaries, and more to write clean, error-free Python code.\" \/>\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.mygreatlearning.com\/blog\/python\/python-data-types\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python Data Types with Examples\" \/>\n<meta property=\"og:description\" content=\"Learn Python data types with simple examples. Understand numbers, text, lists, dictionaries, and more to write clean, error-free Python code.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.mygreatlearning.com\/blog\/python\/python-data-types\/\" \/>\n<meta property=\"og:site_name\" content=\"Great Learning Blog: Free Resources what Matters to shape your Career!\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/GreatLearningOfficial\/\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/11\/python-data-types.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1408\" \/>\n\t<meta property=\"og:image:height\" content=\"768\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@Great_Learning\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/python\\\/python-data-types\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/python\\\/python-data-types\\\/\"},\"author\":{\"name\":\"Great Learning Editorial Team\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#\\\/schema\\\/person\\\/6f993d1be4c584a335951e836f2656ad\"},\"headline\":\"Python Data Types with Examples\",\"datePublished\":\"2025-11-24T09:30:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/python\\\/python-data-types\\\/\"},\"wordCount\":1013,\"publisher\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/python\\\/python-data-types\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/11\\\/python-data-types.webp\",\"keywords\":[\"python\",\"python-tutorial\"],\"articleSection\":[\"IT\\\/Software Development\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/python\\\/python-data-types\\\/\",\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/python\\\/python-data-types\\\/\",\"name\":\"Python Data Types with Examples\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/python\\\/python-data-types\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/python\\\/python-data-types\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/11\\\/python-data-types.webp\",\"datePublished\":\"2025-11-24T09:30:17+00:00\",\"description\":\"Learn Python data types with simple examples. Understand numbers, text, lists, dictionaries, and more to write clean, error-free Python code.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/python\\\/python-data-types\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/python\\\/python-data-types\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/python\\\/python-data-types\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/11\\\/python-data-types.webp\",\"contentUrl\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/11\\\/python-data-types.webp\",\"width\":1408,\"height\":768,\"caption\":\"Python Data Types\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/python\\\/python-data-types\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python Tutorial\",\"item\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/python\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Python Data Types with Examples\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/\",\"name\":\"Great Learning Blog\",\"description\":\"Learn, Upskill &amp; Career Development Guide and Resources\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#organization\"},\"alternateName\":\"Great Learning\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#organization\",\"name\":\"Great Learning\",\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/GL-Logo.jpg\",\"contentUrl\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/GL-Logo.jpg\",\"width\":900,\"height\":900,\"caption\":\"Great Learning\"},\"image\":{\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/GreatLearningOfficial\\\/\",\"https:\\\/\\\/x.com\\\/Great_Learning\",\"https:\\\/\\\/www.instagram.com\\\/greatlearningofficial\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/school\\\/great-learning\\\/\",\"https:\\\/\\\/in.pinterest.com\\\/greatlearning12\\\/\",\"https:\\\/\\\/www.youtube.com\\\/user\\\/beaconelearning\\\/\"],\"description\":\"Great Learning is a leading global ed-tech company for professional training and higher education. It offers comprehensive, industry-relevant, hands-on learning programs across various business, technology, and interdisciplinary domains driving the digital economy. These programs are developed and offered in collaboration with the world's foremost academic institutions.\",\"email\":\"info@mygreatlearning.com\",\"legalName\":\"Great Learning Education Services Pvt. Ltd\",\"foundingDate\":\"2013-11-29\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"1001\",\"maxValue\":\"5000\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/#\\\/schema\\\/person\\\/6f993d1be4c584a335951e836f2656ad\",\"name\":\"Great Learning Editorial Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/unnamed.webp\",\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/unnamed.webp\",\"contentUrl\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/02\\\/unnamed.webp\",\"caption\":\"Great Learning Editorial Team\"},\"description\":\"The Great Learning Editorial Staff includes a dynamic team of subject matter experts, instructors, and education professionals who combine their deep industry knowledge with innovative teaching methods. Their mission is to provide learners with the skills and insights needed to excel in their careers, whether through upskilling, reskilling, or transitioning into new fields.\",\"sameAs\":[\"https:\\\/\\\/www.mygreatlearning.com\\\/\",\"https:\\\/\\\/in.linkedin.com\\\/school\\\/great-learning\\\/\",\"https:\\\/\\\/x.com\\\/https:\\\/\\\/twitter.com\\\/Great_Learning\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCObs0kLIrDjX2LLSybqNaEA\"],\"award\":[\"Best EdTech Company of the Year 2024\",\"Education Economictimes Outstanding Education\\\/Edtech Solution Provider of the Year 2024\",\"Leading E-learning Platform 2024\"],\"url\":\"https:\\\/\\\/www.mygreatlearning.com\\\/blog\\\/author\\\/greatlearning\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Python Data Types with Examples","description":"Learn Python data types with simple examples. Understand numbers, text, lists, dictionaries, and more to write clean, error-free Python code.","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.mygreatlearning.com\/blog\/python\/python-data-types\/","og_locale":"en_US","og_type":"article","og_title":"Python Data Types with Examples","og_description":"Learn Python data types with simple examples. Understand numbers, text, lists, dictionaries, and more to write clean, error-free Python code.","og_url":"https:\/\/www.mygreatlearning.com\/blog\/python\/python-data-types\/","og_site_name":"Great Learning Blog: Free Resources what Matters to shape your Career!","article_publisher":"https:\/\/www.facebook.com\/GreatLearningOfficial\/","og_image":[{"width":1408,"height":768,"url":"http:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/11\/python-data-types.webp","type":"image\/webp"}],"twitter_card":"summary_large_image","twitter_site":"@Great_Learning","twitter_misc":{"Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.mygreatlearning.com\/blog\/python\/python-data-types\/#article","isPartOf":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/python\/python-data-types\/"},"author":{"name":"Great Learning Editorial Team","@id":"https:\/\/www.mygreatlearning.com\/blog\/#\/schema\/person\/6f993d1be4c584a335951e836f2656ad"},"headline":"Python Data Types with Examples","datePublished":"2025-11-24T09:30:17+00:00","mainEntityOfPage":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/python\/python-data-types\/"},"wordCount":1013,"publisher":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/python\/python-data-types\/#primaryimage"},"thumbnailUrl":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/11\/python-data-types.webp","keywords":["python","python-tutorial"],"articleSection":["IT\/Software Development"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.mygreatlearning.com\/blog\/python\/python-data-types\/","url":"https:\/\/www.mygreatlearning.com\/blog\/python\/python-data-types\/","name":"Python Data Types with Examples","isPartOf":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/python\/python-data-types\/#primaryimage"},"image":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/python\/python-data-types\/#primaryimage"},"thumbnailUrl":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/11\/python-data-types.webp","datePublished":"2025-11-24T09:30:17+00:00","description":"Learn Python data types with simple examples. Understand numbers, text, lists, dictionaries, and more to write clean, error-free Python code.","breadcrumb":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/python\/python-data-types\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.mygreatlearning.com\/blog\/python\/python-data-types\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.mygreatlearning.com\/blog\/python\/python-data-types\/#primaryimage","url":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/11\/python-data-types.webp","contentUrl":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/11\/python-data-types.webp","width":1408,"height":768,"caption":"Python Data Types"},{"@type":"BreadcrumbList","@id":"https:\/\/www.mygreatlearning.com\/blog\/python\/python-data-types\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/www.mygreatlearning.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Python Tutorial","item":"https:\/\/www.mygreatlearning.com\/blog\/python\/"},{"@type":"ListItem","position":3,"name":"Python Data Types with Examples"}]},{"@type":"WebSite","@id":"https:\/\/www.mygreatlearning.com\/blog\/#website","url":"https:\/\/www.mygreatlearning.com\/blog\/","name":"Great Learning Blog","description":"Learn, Upskill &amp; Career Development Guide and Resources","publisher":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/#organization"},"alternateName":"Great Learning","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.mygreatlearning.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.mygreatlearning.com\/blog\/#organization","name":"Great Learning","url":"https:\/\/www.mygreatlearning.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.mygreatlearning.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/06\/GL-Logo.jpg","contentUrl":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/06\/GL-Logo.jpg","width":900,"height":900,"caption":"Great Learning"},"image":{"@id":"https:\/\/www.mygreatlearning.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/GreatLearningOfficial\/","https:\/\/x.com\/Great_Learning","https:\/\/www.instagram.com\/greatlearningofficial\/","https:\/\/www.linkedin.com\/school\/great-learning\/","https:\/\/in.pinterest.com\/greatlearning12\/","https:\/\/www.youtube.com\/user\/beaconelearning\/"],"description":"Great Learning is a leading global ed-tech company for professional training and higher education. It offers comprehensive, industry-relevant, hands-on learning programs across various business, technology, and interdisciplinary domains driving the digital economy. These programs are developed and offered in collaboration with the world's foremost academic institutions.","email":"info@mygreatlearning.com","legalName":"Great Learning Education Services Pvt. Ltd","foundingDate":"2013-11-29","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"1001","maxValue":"5000"}},{"@type":"Person","@id":"https:\/\/www.mygreatlearning.com\/blog\/#\/schema\/person\/6f993d1be4c584a335951e836f2656ad","name":"Great Learning Editorial Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/02\/unnamed.webp","url":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/02\/unnamed.webp","contentUrl":"https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2022\/02\/unnamed.webp","caption":"Great Learning Editorial Team"},"description":"The Great Learning Editorial Staff includes a dynamic team of subject matter experts, instructors, and education professionals who combine their deep industry knowledge with innovative teaching methods. Their mission is to provide learners with the skills and insights needed to excel in their careers, whether through upskilling, reskilling, or transitioning into new fields.","sameAs":["https:\/\/www.mygreatlearning.com\/","https:\/\/in.linkedin.com\/school\/great-learning\/","https:\/\/x.com\/https:\/\/twitter.com\/Great_Learning","https:\/\/www.youtube.com\/channel\/UCObs0kLIrDjX2LLSybqNaEA"],"award":["Best EdTech Company of the Year 2024","Education Economictimes Outstanding Education\/Edtech Solution Provider of the Year 2024","Leading E-learning Platform 2024"],"url":"https:\/\/www.mygreatlearning.com\/blog\/author\/greatlearning\/"}]}},"uagb_featured_image_src":{"full":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/11\/python-data-types.webp",1408,768,false],"thumbnail":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/11\/python-data-types-150x150.webp",150,150,true],"medium":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/11\/python-data-types-300x164.webp",300,164,true],"medium_large":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/11\/python-data-types-768x419.webp",768,419,true],"large":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/11\/python-data-types-1024x559.webp",1024,559,true],"1536x1536":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/11\/python-data-types.webp",1408,768,false],"2048x2048":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/11\/python-data-types.webp",1408,768,false],"web-stories-poster-portrait":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/11\/python-data-types-640x768.webp",640,768,true],"web-stories-publisher-logo":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/11\/python-data-types-96x96.webp",96,96,true],"web-stories-thumbnail":["https:\/\/www.mygreatlearning.com\/blog\/wp-content\/uploads\/2025\/11\/python-data-types-150x82.webp",150,82,true]},"uagb_author_info":{"display_name":"Great Learning Editorial Team","author_link":"https:\/\/www.mygreatlearning.com\/blog\/author\/greatlearning\/"},"uagb_comment_info":0,"uagb_excerpt":"Learn Python data types with simple examples. Understand numbers, text, lists, dictionaries, and more to write clean, error-free Python code.","_links":{"self":[{"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/pages\/113417","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/users\/41"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/comments?post=113417"}],"version-history":[{"count":21,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/pages\/113417\/revisions"}],"predecessor-version":[{"id":113422,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/pages\/113417\/revisions\/113422"}],"up":[{"embeddable":true,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/pages\/113156"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/media\/113434"}],"wp:attachment":[{"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/media?parent=113417"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/categories?post=113417"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mygreatlearning.com\/blog\/wp-json\/wp\/v2\/tags?post=113417"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}