{"id":905,"date":"2017-10-08T20:23:07","date_gmt":"2017-10-08T20:23:07","guid":{"rendered":"http:\/\/learnlearn.uk\/python\/?page_id=905"},"modified":"2025-01-12T11:30:23","modified_gmt":"2025-01-12T11:30:23","slug":"simple-data-types","status":"publish","type":"page","link":"https:\/\/learnlearn.uk\/python\/simple-data-types\/","title":{"rendered":"Simple Data Types"},"content":{"rendered":"<div class=\"responsive-tabs\">\n<h2 class=\"tabtitle\">Data Types<\/h2>\n<div class=\"tabcontent\">\n\n<h2>Python Simple Data Types<\/h2>\n<p>Python stores different types of information in different data types.<\/p>\n<h3>Strings<\/h3>\n<p>These are used to store mixed text, passwords, sentences.<\/p>\n<p>Examples:<\/p>\n<ul>\n<li>dog<\/li>\n<li>passw54\u00a3$%^123<\/li>\n<li>The cat sat on the mat<\/li>\n<\/ul>\n<h3><strong>Integers<\/strong><\/h3>\n<p>These are used to store <strong>whole<\/strong> numbers.<\/p>\n<p>example:<\/p>\n<ul>\n<li>435<\/li>\n<li>-323442<\/li>\n<\/ul>\n<h3>Floats<\/h3>\n<p>These are used to store numbers with a decimal place values.<\/p>\n<ul>\n<li>4.13234<\/li>\n<li>0.00000000023<\/li>\n<\/ul>\n<h2>Boolean<\/h2>\n<p>These are used to store True or False values<\/p>\n<p>Examples:<\/p>\n<ul>\n<li>True<\/li>\n<li>False<\/li>\n<\/ul>\n<p>\n<\/div><h2 class=\"tabtitle\">Video 1<\/h2>\n<div class=\"tabcontent\">\n<br \/>\nClick in the top right of the video to view full screen<\/p>\n<p><iframe loading=\"lazy\" title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/U2zY7tIaqtw\" width=\"800\" height=\"600\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p><a href=\"https:\/\/drive.google.com\/file\/d\/0B4M7J3ubGpimanQ1OGw3MnRLMDA\/preview\">Youtube blocked? Try the Google Drive version<\/a><\/p>\n\n<\/div><h2 class=\"tabtitle\">Basic Example<\/h2>\n<div class=\"tabcontent\">\n\n<p><iframe loading=\"lazy\" src=\"https:\/\/trinket.io\/embed\/python\/18e80a7476\" width=\"100%\" height=\"600\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>code:<\/p>\n<pre>size = input(\"What shoe size are you?\")\r\n\r\nsize = int(size) # Convert to a whole number\r\n#If you want to use decimal numbers like 4.5 then use size=float(size) instead\r\n\r\nif size &gt; 10:\r\nprint(\"You have big feet.\")\r\n\r\nelif size &lt; 3:\r\nprint(\"You have tiny feet\")\r\n\r\nelse:\r\nprint(\"You have normal sized feet\")<\/pre>\n\n<\/div><h2 class=\"tabtitle\">Video 2(Advanced)<\/h2>\n<div class=\"tabcontent\">\n\n<h3>Video 2(Advanced) &#8211; math.round, time , random numbers generator<\/h3>\n<div class=\"nv-iframe-embed\">\n<div class=\"container-lazyload preview-lazyload container-youtube js-lazyload--not-loaded\"><a href=\"https:\/\/www.youtube.com\/watch?v=v2Xm5uEpIqk\" class=\"lazy-load-youtube preview-lazyload preview-youtube\" data-video-title=\"Python Beginner&#039;s Course Lesson 3 - Part 2\" title=\"Play video &quot;Python Beginner&#039;s Course Lesson 3 - Part 2&quot;\">https:\/\/www.youtube.com\/watch?v=v2Xm5uEpIqk<\/a><noscript>Video can&#8217;t be loaded because JavaScript is disabled: <a href=\"https:\/\/www.youtube.com\/watch?v=v2Xm5uEpIqk\" title=\"Python Beginner&#039;s Course Lesson 3 - Part 2\">Python Beginner&#039;s Course Lesson 3 &#8211; Part 2 (https:\/\/www.youtube.com\/watch?v=v2Xm5uEpIqk)<\/a><\/noscript><\/div>\n<\/div>\n<p><a href=\"https:\/\/drive.google.com\/file\/d\/0B4M7J3ubGpimNk9hdTRzbkpKV0E\/preview\">YouTube blocked at school? Try the Google Drive Version.<\/a><\/p>\n\n<\/div><h2 class=\"tabtitle\">Challenge 9<\/h2>\n<div class=\"tabcontent\">\n\n<p><strong>Challenge 9 &#8211; How&#8217;s the temperature?<\/strong><\/p>\n<p><iframe loading=\"lazy\" title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/kxhFDQnDsxA\" width=\"800\" height=\"600\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><br \/>\n<a href=\"https:\/\/drive.google.com\/file\/d\/0B4M7J3ubGpimQzhoZm1NSWFSNjg\/preview\">YouTube blocked at school? Try the Google Drive version\u00a0<\/a><\/p>\n<p><strong><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-886\" src=\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/bronze-star25.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u00a0Bronze<\/strong><\/p>\n<ul>\n<li>Ask the user the temperature and convert the temperature to an integer.<\/li>\n<li>If the temperature is above 30 degrees, tell the user it is hot today<\/li>\n<\/ul>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-887\" src=\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/silver-star25.png\" alt=\"\" width=\"25\" height=\"25\" \/><strong>Silver<\/strong><\/p>\n<ul>\n<li>If the temperature is below 5 degrees, tell the user the it is cold.<\/li>\n<li>Use the os.system(&#8216;clear&#8217;) function to add system clears to your program.<\/li>\n<\/ul>\n<p><strong><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-888\" src=\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/gold-star-25.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u00a0Gold<\/strong><\/p>\n<ul>\n<li>If the user enters any amount outside of the valid range ( &#8211; 50c .\/ + 50c) , they should be told that they have entered an invalid value.<\/li>\n<\/ul>\n\n<\/div><h2 class=\"tabtitle\">10<\/h2>\n<div class=\"tabcontent\">\n\n<p><strong>Challenge 10 &#8211; Calculate the area of a rectangle.<\/strong><br \/>\n<iframe loading=\"lazy\" title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/WX-lc9udhBE\" width=\"800\" height=\"600\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><br \/>\n<a href=\"https:\/\/drive.google.com\/file\/d\/0B4M7J3ubGpimaE0xYTRrakpaMjg\/preview\">YouTube blocked at school? Try the Google Drive version instead<\/a><\/p>\n<p><strong><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-886\" src=\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/bronze-star25.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u00a0Bronze<\/strong><\/p>\n<ul>\n<li>Ask the user to enter the length and width of a rectangle.<\/li>\n<li>Convert the inputs to integers.<\/li>\n<li>Output the area of the rectangle.<\/li>\n<\/ul>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-887\" src=\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/silver-star25.png\" alt=\"\" width=\"25\" height=\"25\" \/><strong>Silver<\/strong><\/p>\n<ul>\n<li>Use the .strip() method to remove spaces before and after the user&#8217;s input.<\/li>\n<li>Also calculate the perimeter of the rectangle and output the perimeter as well.<\/li>\n<\/ul>\n<p><strong><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-888\" src=\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/gold-star-25.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u00a0Gold<\/strong><\/p>\n<ul>\n<li>Ask the user to enter the lengths and widths of 2 rectangles.<\/li>\n<li>Calculate the area of both and output which rectangle is higher.<\/li>\n<\/ul>\n\n<\/div><h2 class=\"tabtitle\">11<\/h2>\n<div class=\"tabcontent\">\n\n<p><strong>Challenge 11 &#8211; Calculate the missing triangle angle<\/strong><\/p>\n<p>The angles of a triangle always add up to 180 degrees.<br \/>\n<iframe loading=\"lazy\" title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/xj3mILNzGgE\" width=\"800\" height=\"600\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><br \/>\n<a href=\"https:\/\/drive.google.com\/file\/d\/0B4M7J3ubGpimbm1KVG5EODBCTGc\/preview\">YouTube blocked at school? Try the Google Drive version<\/a><\/p>\n<p><strong><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-886\" src=\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/bronze-star25.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u00a0Bronze<\/strong><\/p>\n<ul>\n<li>Ask the user to enter 2 angles of a triangle and convert the values to <strong>integers<\/strong><\/li>\n<li>Work out the third angle and output it to the user.<\/li>\n<\/ul>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-887\" src=\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/silver-star25.png\" alt=\"\" width=\"25\" height=\"25\" \/><strong>Silver<\/strong><\/p>\n<p>Check each of the values entered to ensure that they are valid ( less than 180 degrees in total) and print out an appropriate response if they don&#8217;t enter a valid amount.<\/p>\n<p><strong><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-888\" src=\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/gold-star-25.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u00a0Gold<\/strong><\/p>\n<ul>\n<li>Check the values entered and calculated to work out of the triangle if the triangle is either:\n<ul>\n<li>Equilateral\u00a0 &#8211; All angles equal size.<\/li>\n<li>Isosceles &#8211; Two angles equal size.<\/li>\n<li>Scalene &#8211; All angles of different size.<\/li>\n<\/ul>\n<\/li>\n<li>Print out an appropriate amount.<\/li>\n<\/ul>\n\n<\/div><h2 class=\"tabtitle\">12<\/h2>\n<div class=\"tabcontent\">\n\n<p><strong>Challenge 12 &#8211; Reaction Timer Game<\/strong><\/p>\n<p>Create a program that tests the user&#8217;s reaction time.<\/p>\n<p><span style=\"color: #0000ff;\">*** To complete this challenge you need to watch the advanced tutorial ***<\/span><br \/>\n<iframe loading=\"lazy\" title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/cP5c07caLmU\" width=\"800\" height=\"600\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><br \/>\n<a href=\"https:\/\/drive.google.com\/file\/d\/0B4M7J3ubGpimeUs1UTdkNmt3OFk\/preview\">YouTube blocked at school? Try the Google Drive version<\/a><\/p>\n<p>&nbsp;<\/p>\n<p><strong><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-886\" src=\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/bronze-star25.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u00a0Bronze<\/strong><\/p>\n<ul>\n<li>Get the program to wait a random amount of seconds \u00a0and then ask the user to press enter.<\/li>\n<\/ul>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-887\" src=\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/silver-star25.png\" alt=\"\" width=\"25\" height=\"25\" \/><strong>Silver<\/strong><\/p>\n<ul>\n<li>Record the time the message was displayed and the time the user pressed enter. Work out the response time and print it out to the user.<\/li>\n<li>use the round() function to convert the user&#8217;s float to 2 decimal places.<\/li>\n<\/ul>\n<p><strong><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-888\" src=\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/gold-star-25.png\" alt=\"\" width=\"25\" height=\"25\" \/>\u00a0Gold<\/strong><\/p>\n<ul>\n<li>If the user took less the 0.1 seconds, tell them well done.<\/li>\n<li>If the user took longer than 0.5 seconds, tell them their reaction time is too slow.<\/li>\n<\/ul>\n\n<\/div><h2 class=\"tabtitle\">Plenary<\/h2>\n<div class=\"tabcontent\">\n\n<p><a href=\"https:\/\/play.kahoot.it\/#\/?quizId=e812963e-b93f-4ce1-8884-f43a400a38ab\">Plenary Kahoot<\/a><\/p>\n<\/div><\/div>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Python Simple Data Types Python stores different types of information in different data types. Strings These are used to store mixed text, passwords, sentences. Examples: dog passw54\u00a3$%^123 The cat sat on the mat Integers These are used to store whole numbers. example: 435 -323442 Floats These are used to store numbers with a decimal place&hellip;&nbsp;<a href=\"https:\/\/learnlearn.uk\/python\/simple-data-types\/\" class=\"\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">Simple Data Types<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"on","neve_meta_content_width":84,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Simple Data Types - Python<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/learnlearn.uk\/python\/simple-data-types\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Simple Data Types - Python\" \/>\n<meta property=\"og:description\" content=\"Python Simple Data Types Python stores different types of information in different data types. Strings These are used to store mixed text, passwords, sentences. Examples: dog passw54\u00a3$%^123 The cat sat on the mat Integers These are used to store whole numbers. example: 435 -323442 Floats These are used to store numbers with a decimal place&hellip;&nbsp;Read More &raquo;Simple Data Types\" \/>\n<meta property=\"og:url\" content=\"https:\/\/learnlearn.uk\/python\/simple-data-types\/\" \/>\n<meta property=\"og:site_name\" content=\"Python\" \/>\n<meta property=\"article:modified_time\" content=\"2025-01-12T11:30:23+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/bronze-star25.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/learnlearn.uk\/python\/simple-data-types\/\",\"url\":\"https:\/\/learnlearn.uk\/python\/simple-data-types\/\",\"name\":\"Simple Data Types - Python\",\"isPartOf\":{\"@id\":\"https:\/\/learnlearn.uk\/python\/#website\"},\"datePublished\":\"2017-10-08T20:23:07+00:00\",\"dateModified\":\"2025-01-12T11:30:23+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/learnlearn.uk\/python\/simple-data-types\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/learnlearn.uk\/python\/simple-data-types\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/learnlearn.uk\/python\/simple-data-types\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Python Unit Home\",\"item\":\"https:\/\/learnlearn.uk\/python\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Simple Data Types\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/learnlearn.uk\/python\/#website\",\"url\":\"https:\/\/learnlearn.uk\/python\/\",\"name\":\"Python\",\"description\":\"Programming\",\"publisher\":{\"@id\":\"https:\/\/learnlearn.uk\/python\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/learnlearn.uk\/python\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/learnlearn.uk\/python\/#organization\",\"name\":\"Python\",\"url\":\"https:\/\/learnlearn.uk\/python\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/learnlearn.uk\/python\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2019\/03\/LearnLearnLogowhite.png\",\"contentUrl\":\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2019\/03\/LearnLearnLogowhite.png\",\"width\":710,\"height\":98,\"caption\":\"Python\"},\"image\":{\"@id\":\"https:\/\/learnlearn.uk\/python\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Simple Data Types - Python","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:\/\/learnlearn.uk\/python\/simple-data-types\/","og_locale":"en_GB","og_type":"article","og_title":"Simple Data Types - Python","og_description":"Python Simple Data Types Python stores different types of information in different data types. Strings These are used to store mixed text, passwords, sentences. Examples: dog passw54\u00a3$%^123 The cat sat on the mat Integers These are used to store whole numbers. example: 435 -323442 Floats These are used to store numbers with a decimal place&hellip;&nbsp;Read More &raquo;Simple Data Types","og_url":"https:\/\/learnlearn.uk\/python\/simple-data-types\/","og_site_name":"Python","article_modified_time":"2025-01-12T11:30:23+00:00","og_image":[{"url":"http:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/bronze-star25.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Estimated reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/learnlearn.uk\/python\/simple-data-types\/","url":"https:\/\/learnlearn.uk\/python\/simple-data-types\/","name":"Simple Data Types - Python","isPartOf":{"@id":"https:\/\/learnlearn.uk\/python\/#website"},"datePublished":"2017-10-08T20:23:07+00:00","dateModified":"2025-01-12T11:30:23+00:00","breadcrumb":{"@id":"https:\/\/learnlearn.uk\/python\/simple-data-types\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/learnlearn.uk\/python\/simple-data-types\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/learnlearn.uk\/python\/simple-data-types\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Python Unit Home","item":"https:\/\/learnlearn.uk\/python\/"},{"@type":"ListItem","position":2,"name":"Simple Data Types"}]},{"@type":"WebSite","@id":"https:\/\/learnlearn.uk\/python\/#website","url":"https:\/\/learnlearn.uk\/python\/","name":"Python","description":"Programming","publisher":{"@id":"https:\/\/learnlearn.uk\/python\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/learnlearn.uk\/python\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/learnlearn.uk\/python\/#organization","name":"Python","url":"https:\/\/learnlearn.uk\/python\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/learnlearn.uk\/python\/#\/schema\/logo\/image\/","url":"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2019\/03\/LearnLearnLogowhite.png","contentUrl":"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2019\/03\/LearnLearnLogowhite.png","width":710,"height":98,"caption":"Python"},"image":{"@id":"https:\/\/learnlearn.uk\/python\/#\/schema\/logo\/image\/"}}]}},"rttpg_featured_image_url":null,"rttpg_author":{"display_name":"learnlearnadmin","author_link":"https:\/\/learnlearn.uk\/python\/author\/learnlearnadmin\/"},"rttpg_comment":0,"rttpg_category":null,"rttpg_excerpt":"Python Simple Data Types Python stores different types of information in different data types. Strings These are used to store mixed text, passwords, sentences. Examples: dog passw54\u00a3$%^123 The cat sat on the mat Integers These are used to store whole numbers. example: 435 -323442 Floats These are used to store numbers with a decimal place&hellip;&nbsp;Read&hellip;","_links":{"self":[{"href":"https:\/\/learnlearn.uk\/python\/wp-json\/wp\/v2\/pages\/905"}],"collection":[{"href":"https:\/\/learnlearn.uk\/python\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/learnlearn.uk\/python\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/learnlearn.uk\/python\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/learnlearn.uk\/python\/wp-json\/wp\/v2\/comments?post=905"}],"version-history":[{"count":24,"href":"https:\/\/learnlearn.uk\/python\/wp-json\/wp\/v2\/pages\/905\/revisions"}],"predecessor-version":[{"id":1495,"href":"https:\/\/learnlearn.uk\/python\/wp-json\/wp\/v2\/pages\/905\/revisions\/1495"}],"wp:attachment":[{"href":"https:\/\/learnlearn.uk\/python\/wp-json\/wp\/v2\/media?parent=905"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}