{"id":885,"date":"2017-09-23T05:20:42","date_gmt":"2017-09-23T05:20:42","guid":{"rendered":"http:\/\/learnlearn.uk\/python\/?page_id=885"},"modified":"2024-10-08T08:36:26","modified_gmt":"2024-10-08T08:36:26","slug":"python-topic-2-statements","status":"publish","type":"page","link":"https:\/\/learnlearn.uk\/python\/python-topic-2-statements\/","title":{"rendered":"Python Topic 2 &#8211; If Statements"},"content":{"rendered":"<div class=\"responsive-tabs\">\n<h2 class=\"tabtitle\">Video 1 - The Basics<\/h2>\n<div class=\"tabcontent\">\n\n<p><iframe loading=\"lazy\" title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/kgVfQuGYo3g\" width=\"900\" height=\"600\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><br \/>\n<a href=\"https:\/\/drive.google.com\/file\/d\/0B4M7J3ubGpimTHd4NEpXNVo4cDg\/preview\">Can&#8217;t Access Youtube? Try the Google Drive Version.<\/a><\/p>\n<p>\n<\/div><h2 class=\"tabtitle\">Video 2 - Advanced<\/h2>\n<div class=\"tabcontent\">\n<br \/>\n<iframe loading=\"lazy\" title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/u_d4eOM5dIE\" width=\"900\" height=\"600\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><br \/>\n<a href=\"https:\/\/drive.google.com\/file\/d\/0B4M7J3ubGpimcWxoMzlPZGRvM2M\/preview\">YouTube blocked at school? Try the Google Drive version instead.<\/a><\/p>\n\n<\/div><h2 class=\"tabtitle\">Example<\/h2>\n<div class=\"tabcontent\">\n\n<p><!-- HTML generated using hilite.me --><\/p>\n<div style=\"background: #ffffff; overflow: auto; width: auto; border: solid gray; border-width: .1em .1em .1em .8em; padding: .2em .6em;\">\n<pre style=\"margin: 0; line-height: 125%;\"><span style=\"color: #008800; font-weight: bold;\">import<\/span> <span style=\"color: #0e84b5; font-weight: bold;\">time<\/span><span style=\"color: #333333;\">,<\/span> <span style=\"color: #0e84b5; font-weight: bold;\">os<\/span>\r\n\r\nos<span style=\"color: #333333;\">.<\/span>system(<span style=\"background-color: #fff0f0;\">'clear'<\/span>)\r\n<span style=\"color: #008800; font-weight: bold;\">print<\/span>(<span style=\"background-color: #fff0f0;\">\"*** Welcome to the month app ***\"<\/span>)\r\nmonth <span style=\"color: #333333;\">=<\/span> <span style=\"color: #007020;\">input<\/span>(<span style=\"background-color: #fff0f0;\">\"What month is it?\"<\/span>)<span style=\"color: #333333;\">.<\/span>lower()   \r\n<span style=\"color: #888888;\"># .lower() converts the input to lowercase e.g.  January &gt;&gt;&gt;&gt; january<\/span>\r\n\r\n<span style=\"color: #008800; font-weight: bold;\">if<\/span> month <span style=\"color: #333333;\">==<\/span> <span style=\"background-color: #fff0f0;\">\"january\"<\/span>:\r\n  <span style=\"color: #008800; font-weight: bold;\">print<\/span>(<span style=\"background-color: #fff0f0;\">\"Brr!!! It's cold in january\"<\/span>)\r\n<span style=\"color: #008800; font-weight: bold;\">elif<\/span> month <span style=\"color: #000000; font-weight: bold;\">in<\/span> [<span style=\"background-color: #fff0f0;\">\"july\"<\/span>,<span style=\"background-color: #fff0f0;\">\"august\"<\/span>]:\r\n  <span style=\"color: #008800; font-weight: bold;\">print<\/span>(<span style=\"background-color: #fff0f0;\">\"Yay! The holidays\"<\/span>)\r\n<span style=\"color: #008800; font-weight: bold;\">else<\/span>:\r\n  <span style=\"color: #008800; font-weight: bold;\">print<\/span>(<span style=\"background-color: #fff0f0;\">\"Meh, boring month!\"<\/span>)\r\n \r\ntime<span style=\"color: #333333;\">.<\/span>sleep(<span style=\"color: #0000dd; font-weight: bold;\">2<\/span>)\r\nos<span style=\"color: #333333;\">.<\/span>system(<span style=\"background-color: #fff0f0;\">\"clear\"<\/span>)\r\n\r\n<span style=\"color: #008800; font-weight: bold;\">print<\/span>(<span style=\"background-color: #fff0f0;\">\"Goodbye!\"<\/span>)\r\n<\/pre>\n<\/div>\n<p>print(&#8220;Goodbye!&#8221;)<\/p>\n\n<\/div><h2 class=\"tabtitle\">Challenge 5<\/h2>\n<div class=\"tabcontent\">\n\n<h3>Advice generator<\/h3>\n<p><a href=\"https:\/\/drive.google.com\/open?id=1wvSps11hUzNEHdt7dkrBGA2D6zG5QBBL\">Video won&#8217;t load? Click here for the Google Drive Version<\/a><\/p>\n<p><iframe loading=\"lazy\" title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/tczqDH7vjgg\" width=\"900\" height=\"600\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>Get the computer to ask the user is they want some advice. If they do, give them some!<\/p>\n<p><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\" \/><strong>Bronze<\/strong><\/p>\n<ul>\n<li>Ask the user to input and if they respond with yes then give them advice<\/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>\u00a0Silver<\/strong><\/p>\n<ul>\n<li>Use an else statement to give them a response if they don&#8217;t say yes.<\/li>\n<\/ul>\n<p><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\" \/>\u00a0<strong>Gold<\/strong><\/p>\n<ul>\n<li>Use an if \/ elif combo to respond to all yes\/no answers and an else to give a response to all other input.<\/li>\n<li>Use the .lower() method to change all input to lowercase.<\/li>\n<\/ul>\n\n<\/div><h2 class=\"tabtitle\">6<\/h2>\n<div class=\"tabcontent\">\n\n<h3>Days of the week nursery rythme<\/h3>\n<p><a href=\"https:\/\/drive.google.com\/open?id=1vWEn_QI5FWOnY8As1g45DG6J0qDqI3tD\">Can&#8217;t access Youtube? Click here.<\/a><\/p>\n<p><iframe loading=\"lazy\" title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/Rf-Y3FK5Kqg\" width=\"900\" height=\"600\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p><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\" \/>\u00a0<strong>Bronze<\/strong><\/p>\n<ul>\n<li>Ask the user to enter they day of the week they were born. Print out a suitable response, based on the nursery rhyme.<\/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>\u00a0Silver<\/strong><\/p>\n<ul>\n<li>Add an else: statement if they input an invalid response.<\/li>\n<\/ul>\n<p><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\" \/><strong>Gold<\/strong><\/p>\n<ul>\n<li>Use the .lower() method to convert their input to lowercase.<\/li>\n<\/ul>\n<p><strong>The nursery rhyme text in full:<\/strong><\/p>\n<blockquote><p>Mondays child is fair of face,<br \/>\nTuesdays child is full of grace,<br \/>\nWednesdays child is full of woe,<br \/>\nThursdays child has far to go,<br \/>\nFridays child is loving and giving,<br \/>\nSaturdays child works hard for his living,<br \/>\nAnd the child that is born on the Sabbath day<br \/>\nIs bonny and blithe, and good and gay.<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n\n<\/div><h2 class=\"tabtitle\">7<\/h2>\n<div class=\"tabcontent\">\n\n<h3>Password Program<\/h3>\n<p><iframe loading=\"lazy\" title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/hymCnDWkxqQ\" width=\"900\" height=\"600\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p><a href=\"https:\/\/drive.google.com\/file\/d\/0B4M7J3ubGpimblRTNXNranBhNWc\/preview\" target=\"_blank\" rel=\"noopener\">Can&#8217;t access YouTube? Watch the Google Drive version instead<\/a><\/p>\n<p><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\" \/>\u00a0<strong>Bronze<\/strong><\/p>\n<ul>\n<li>Ask the user to enter their password. Check if the password is correct or not and print out a suitable response.<\/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>\u00a0Silver<\/strong><\/p>\n<ul>\n<li>Ask the user to enter both a username <strong>and<\/strong> password and check both, printing out a suitable response as necessary.<\/li>\n<\/ul>\n<p><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\" \/><strong>Gold<\/strong><\/p>\n<ul>\n<li>If the user enters an invalid username, print out &#8216;username not found&#8217;, otherwise print out &#8216;invalid username \/ password combination if anything is incorrect.<\/li>\n<\/ul>\n\n<\/div><h2 class=\"tabtitle\">8<\/h2>\n<div class=\"tabcontent\">\n\n<h3>Mini Quiz Program<\/h3>\n<p>Make a \u00a0general knowledge quiz using your python knowledge from the last 2 weeks!<br \/>\n<iframe loading=\"lazy\" title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/1zz2ez_fk1Q\" width=\"900\" height=\"600\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><br \/>\n<a href=\"https:\/\/drive.google.com\/file\/d\/0B4M7J3ubGpimVTQxSGdUdk83bW8\/preview\">Can&#8217;t access YouTube? Watch the Google Drive version instead<\/a><\/p>\n<p><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\" \/>\u00a0<strong>Bronze<\/strong><\/p>\n<ul>\n<li>Make a 3 question quiz that checks the user&#8217;s input against the correct answer.<\/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>\u00a0Silver<\/strong><\/p>\n<ul>\n<li>Make a 5 question quiz that uses .lower() to allow for capital letters or lowercase<\/li>\n<\/ul>\n<p><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\" \/><strong>Gold<\/strong><\/p>\n<ul>\n<li>Make a 10 question quiz that clears the screen in between each question.<\/li>\n<\/ul>\n\n<\/div><h2 class=\"tabtitle\">Cheat Sheet<\/h2>\n<div class=\"tabcontent\">\n\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Can&#8217;t Access Youtube? Try the Google Drive Version. YouTube blocked at school? Try the Google Drive version instead. import time, os os.system(&#8216;clear&#8217;) print(&#8220;*** Welcome to the month app ***&#8221;) month = input(&#8220;What month is it?&#8221;).lower() # .lower() converts the input to lowercase e.g. January &gt;&gt;&gt;&gt; january if month == &#8220;january&#8221;: print(&#8220;Brr!!! It&#8217;s cold in january&#8221;)&hellip;&nbsp;<a href=\"https:\/\/learnlearn.uk\/python\/python-topic-2-statements\/\" class=\"\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">Python Topic 2 &#8211; If Statements<\/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":82,"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>Python Topic 2 &#8211; If Statements - 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\/python-topic-2-statements\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python Topic 2 &#8211; If Statements - Python\" \/>\n<meta property=\"og:description\" content=\"Can&#8217;t Access Youtube? Try the Google Drive Version. YouTube blocked at school? Try the Google Drive version instead. import time, os os.system(&#039;clear&#039;) print(&quot;*** Welcome to the month app ***&quot;) month = input(&quot;What month is it?&quot;).lower() # .lower() converts the input to lowercase e.g. January &gt;&gt;&gt;&gt; january if month == &quot;january&quot;: print(&quot;Brr!!! It&#039;s cold in january&quot;)&hellip;&nbsp;Read More &raquo;Python Topic 2 &#8211; If Statements\" \/>\n<meta property=\"og:url\" content=\"https:\/\/learnlearn.uk\/python\/python-topic-2-statements\/\" \/>\n<meta property=\"og:site_name\" content=\"Python\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-08T08:36:26+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=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/learnlearn.uk\/python\/python-topic-2-statements\/\",\"url\":\"https:\/\/learnlearn.uk\/python\/python-topic-2-statements\/\",\"name\":\"Python Topic 2 &#8211; If Statements - Python\",\"isPartOf\":{\"@id\":\"https:\/\/learnlearn.uk\/python\/#website\"},\"datePublished\":\"2017-09-23T05:20:42+00:00\",\"dateModified\":\"2024-10-08T08:36:26+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/learnlearn.uk\/python\/python-topic-2-statements\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/learnlearn.uk\/python\/python-topic-2-statements\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/learnlearn.uk\/python\/python-topic-2-statements\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Python Unit Home\",\"item\":\"https:\/\/learnlearn.uk\/python\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python Topic 2 &#8211; If Statements\"}]},{\"@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":"Python Topic 2 &#8211; If Statements - 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\/python-topic-2-statements\/","og_locale":"en_GB","og_type":"article","og_title":"Python Topic 2 &#8211; If Statements - Python","og_description":"Can&#8217;t Access Youtube? Try the Google Drive Version. YouTube blocked at school? Try the Google Drive version instead. import time, os os.system('clear') print(\"*** Welcome to the month app ***\") month = input(\"What month is it?\").lower() # .lower() converts the input to lowercase e.g. January &gt;&gt;&gt;&gt; january if month == \"january\": print(\"Brr!!! It's cold in january\")&hellip;&nbsp;Read More &raquo;Python Topic 2 &#8211; If Statements","og_url":"https:\/\/learnlearn.uk\/python\/python-topic-2-statements\/","og_site_name":"Python","article_modified_time":"2024-10-08T08:36:26+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":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/learnlearn.uk\/python\/python-topic-2-statements\/","url":"https:\/\/learnlearn.uk\/python\/python-topic-2-statements\/","name":"Python Topic 2 &#8211; If Statements - Python","isPartOf":{"@id":"https:\/\/learnlearn.uk\/python\/#website"},"datePublished":"2017-09-23T05:20:42+00:00","dateModified":"2024-10-08T08:36:26+00:00","breadcrumb":{"@id":"https:\/\/learnlearn.uk\/python\/python-topic-2-statements\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/learnlearn.uk\/python\/python-topic-2-statements\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/learnlearn.uk\/python\/python-topic-2-statements\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Python Unit Home","item":"https:\/\/learnlearn.uk\/python\/"},{"@type":"ListItem","position":2,"name":"Python Topic 2 &#8211; If Statements"}]},{"@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":"Can&#8217;t Access Youtube? Try the Google Drive Version. YouTube blocked at school? Try the Google Drive version instead. import time, os os.system('clear') print(\"*** Welcome to the month app ***\") month = input(\"What month is it?\").lower() # .lower() converts the input to lowercase e.g. January &gt;&gt;&gt;&gt; january if month == \"january\": print(\"Brr!!! It's cold in january\")&hellip;&nbsp;Read&hellip;","_links":{"self":[{"href":"https:\/\/learnlearn.uk\/python\/wp-json\/wp\/v2\/pages\/885"}],"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=885"}],"version-history":[{"count":25,"href":"https:\/\/learnlearn.uk\/python\/wp-json\/wp\/v2\/pages\/885\/revisions"}],"predecessor-version":[{"id":1489,"href":"https:\/\/learnlearn.uk\/python\/wp-json\/wp\/v2\/pages\/885\/revisions\/1489"}],"wp:attachment":[{"href":"https:\/\/learnlearn.uk\/python\/wp-json\/wp\/v2\/media?parent=885"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}