{"id":854,"date":"2017-09-10T15:16:33","date_gmt":"2017-09-10T15:16:33","guid":{"rendered":"http:\/\/learnlearn.uk\/python\/?page_id=854"},"modified":"2023-04-22T10:17:44","modified_gmt":"2023-04-22T10:17:44","slug":"lesson-1-print-input","status":"publish","type":"page","link":"https:\/\/learnlearn.uk\/python\/lesson-1-print-input\/","title":{"rendered":"lesson 1 &#8211; Print and Input"},"content":{"rendered":"<div class=\"responsive-tabs\">\n<h2 class=\"tabtitle\">Tutorial 1<\/h2>\n<div class=\"tabcontent\">\n\n<p><strong>Tutorial Video 1<\/strong><\/p>\n<p><iframe loading=\"lazy\" width=\"900\" height=\"600\" src=\"https:\/\/www.youtube.com\/embed\/SSINyqDIxlY\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen><\/iframe><\/p>\n<p><a href=\"https:\/\/drive.google.com\/file\/d\/0B4M7J3ubGpimTzIwN29tZWZiSWM\/preview\">Can&#8217;t access YouTube? Click here for the Google Drive Version.<\/a><\/p>\n\n<\/div><h2 class=\"tabtitle\">Tutorial 2<\/h2>\n<div class=\"tabcontent\">\n\n<p><strong>Tutorial video part 2<\/strong><br \/>\n<iframe loading=\"lazy\" width=\"900\" height=\"600\" src=\"https:\/\/www.youtube.com\/embed\/E-pV2XAVh_4\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen><\/iframe><\/p>\n<p><a href=\"https:\/\/drive.google.com\/file\/d\/0B4M7J3ubGpimay10aWY5SHdIWG8\/preview\">Can&#8217;t access YouTube? Click here for the Google Drive Version<\/a><\/p>\n<p>Want to know an even easier way of combining strings and variables? <a href=\"https:\/\/www.youtube.com\/watch?v=ahsGaYTf1mQ\">Take a look at F-Strings \ud83d\ude42<\/a><\/p>\n\n<\/div><h2 class=\"tabtitle\">Tutorial 3<\/h2>\n<div class=\"tabcontent\">\n\n<p>What to know an even easier way of combining strings with variables? Check out the f-strings YouTube video below! Much easier and faster but only available if you are using Python 3.6 or newer.<\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/ahsGaYTf1mQ\" width=\"800560\" height=\"600\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n\n<\/div><h2 class=\"tabtitle\">Challenge 1<\/h2>\n<div class=\"tabcontent\">\n\n<p><strong>Challenge 1 &#8211; Nice to meet you<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><iframe loading=\"lazy\" width=\"900\" height=\"600\" src=\"https:\/\/www.youtube.com\/embed\/85p0N9Jk2EY\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen><\/iframe><\/p>\n<p>For your first challenge you need to ask the user their name and then print out a friendly greeting.<\/p>\n<p><a href=\"https:\/\/drive.google.com\/file\/d\/0B4M7J3ubGpimLWk2WWN6Yi1zLU0\/view\">Can&#8217;t access YouTube? Click here for the Google Drive Version<\/a><\/p>\n<p><strong>Bronze<\/strong><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-874\" src=\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/bronze-star-150x150.png\" alt=\"\" width=\"29\" height=\"29\" srcset=\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/bronze-star-150x150.png 150w, https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/bronze-star.png 274w\" sizes=\"(max-width: 29px) 100vw, 29px\" \/>\u00a0Ask the user to input their name and print out a suitable response<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-874\" src=\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/bronze-star-150x150.png\" alt=\"\" width=\"32\" height=\"32\" srcset=\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/bronze-star-150x150.png 150w, https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/bronze-star.png 274w\" sizes=\"(max-width: 32px) 100vw, 32px\" \/>\u00a0Save your code in a file called challenge1.py<\/p>\n<p><strong>Silver<\/strong><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-875\" src=\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/silver-star-150x150.png\" alt=\"\" width=\"25\" height=\"25\" srcset=\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/silver-star-150x150.png 150w, https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/silver-star.png 274w\" sizes=\"(max-width: 25px) 100vw, 25px\" \/>\u00a0 Clear the screen before your program starts and after it finishes<\/p>\n<p><strong>Gold<\/strong><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-876\" src=\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/gold-star-150x150.png\" alt=\"\" width=\"25\" height=\"25\" srcset=\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/gold-star-150x150.png 150w, https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/gold-star.png 274w\" sizes=\"(max-width: 25px) 100vw, 25px\" \/>\u00a0Convert the input to title case ( capitalising the first letter of each word in the users name input)<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n\n<\/div><h2 class=\"tabtitle\">2<\/h2>\n<div class=\"tabcontent\">\n\n<p><strong>Challenge 2 &#8211; Personal Info App<\/strong><\/p>\n<p><a href=\"https:\/\/drive.google.com\/open?id=1nf8GBqRM12D2pF5uWMWpW2aSJ6fgh7A1\">Can&#8217;t access YouTube? Click here<\/a><br \/>\n<iframe loading=\"lazy\" width=\"900\" height=\"600\" src=\"https:\/\/www.youtube.com\/embed\/FQslvTX9Tho\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen><\/iframe><\/p>\n<p>For this challenge you need to ask the users<strong><span style=\"color: #0000ff;\"> three questions<\/span><\/strong> and then display the user&#8217;s answers back to them.<\/p>\n<p><strong>Bronze<\/strong><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-874\" src=\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/bronze-star-150x150.png\" alt=\"\" width=\"23\" height=\"23\" srcset=\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/bronze-star-150x150.png 150w, https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/bronze-star.png 274w\" sizes=\"(max-width: 23px) 100vw, 23px\" \/>\u00a0 Ask all the questions and display the answers\u00a0back to the user as appropriate.<\/p>\n<p><strong>Silver<\/strong><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-875\" src=\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/silver-star-150x150.png\" alt=\"\" width=\"25\" height=\"25\" srcset=\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/silver-star-150x150.png 150w, https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/silver-star.png 274w\" sizes=\"(max-width: 25px) 100vw, 25px\" \/>\u00a0 Clear the screen before your program starts and after it finishes.<\/p>\n<p><strong>Gold<\/strong><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-876\" src=\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/gold-star-150x150.png\" alt=\"\" width=\"25\" height=\"25\" srcset=\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/gold-star-150x150.png 150w, https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/gold-star.png 274w\" sizes=\"(max-width: 25px) 100vw, 25px\" \/>\u00a0Add an app title to the top of your app.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-876\" src=\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/gold-star-150x150.png\" alt=\"\" width=\"25\" height=\"25\" srcset=\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/gold-star-150x150.png 150w, https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/gold-star.png 274w\" sizes=\"(max-width: 25px) 100vw, 25px\" \/>\u00a0Convert the input to title case ( capitalising the first letter of each word in the users name input)<\/p>\n\n<\/div><h2 class=\"tabtitle\">3<\/h2>\n<div class=\"tabcontent\">\n\n<p><strong>Challenge 3 &#8211; Post Code app<\/strong><\/p>\n<p><a href=\"https:\/\/drive.google.com\/file\/d\/1qtP-UfMmrHZx5qbEPGFNTQrL4g3R3LmD\/view\">Can&#8217;t access YouTube? Click here<\/a><\/p>\n<p><iframe loading=\"lazy\" width=\"900\" height=\"600\" src=\"https:\/\/www.youtube.com\/embed\/bHjbHN5SHO8\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen><\/iframe><\/p>\n<p>In this challenge you need to make an app that asks the user to enter their postcode in 4 separate parts. It then display&#8217;s their postcode back to them.<\/p>\n<p><strong>Bronze<\/strong><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-874\" src=\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/bronze-star-150x150.png\" alt=\"\" width=\"23\" height=\"23\" srcset=\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/bronze-star-150x150.png 150w, https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/bronze-star.png 274w\" sizes=\"(max-width: 23px) 100vw, 23px\" \/>\u00a0 Asking for their postcode in 4 parts and printing out their postcode.<\/p>\n<p><strong>Silver<\/strong><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-875\" src=\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/silver-star-150x150.png\" alt=\"\" width=\"25\" height=\"25\" srcset=\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/silver-star-150x150.png 150w, https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/silver-star.png 274w\" sizes=\"(max-width: 25px) 100vw, 25px\" \/>\u00a0Clearing the screen and generally making things look pretty.<\/p>\n<p><strong>Gold<\/strong><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-876\" src=\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/gold-star-150x150.png\" alt=\"\" width=\"25\" height=\"25\" srcset=\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/gold-star-150x150.png 150w, https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/gold-star.png 274w\" sizes=\"(max-width: 25px) 100vw, 25px\" \/>\u00a0Correct formatting of the postcode output on one line and capitalising the letters.\u00a0 UK Postcode example &#8211;\u00a0 PR3 4TH<\/p>\n\n<\/div><h2 class=\"tabtitle\">4<\/h2>\n<div class=\"tabcontent\">\n\n<p><strong>Challenge 4 &#8211; Song Swapper App<\/strong><\/p>\n<p>In this app you need to write a program that asks for the user&#8217;s name and then adds their name in to a song&#8217;s lyrics.<\/p>\n<p><iframe loading=\"lazy\" width=\"900\" height=\"600\" src=\"https:\/\/www.youtube.com\/embed\/jwTArYDVL6A\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen><\/iframe><\/p>\n<p><a href=\"https:\/\/drive.google.com\/file\/d\/0B4M7J3ubGpimN3NaQXR3dUpaTzQ\/preview\">Can&#8217;t see the video? Click here.<\/a><\/p>\n<p>&nbsp;<\/p>\n<p><strong>Bronze<\/strong><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-874\" src=\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/bronze-star-150x150.png\" alt=\"\" width=\"23\" height=\"23\" srcset=\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/bronze-star-150x150.png 150w, https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/bronze-star.png 274w\" sizes=\"(max-width: 23px) 100vw, 23px\" \/>\u00a0Correct input and printing out of the song<\/p>\n<p><strong>Silver<\/strong><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-875\" src=\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/silver-star-150x150.png\" alt=\"\" width=\"25\" height=\"25\" srcset=\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/silver-star-150x150.png 150w, https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/silver-star.png 274w\" sizes=\"(max-width: 25px) 100vw, 25px\" \/>\u00a0Capitalising the first letter of the user&#8217;s input.<\/p>\n<p><strong>Gold<\/strong><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-876\" src=\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/gold-star-150x150.png\" alt=\"\" width=\"25\" height=\"25\" srcset=\"https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/gold-star-150x150.png 150w, https:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/gold-star.png 274w\" sizes=\"(max-width: 25px) 100vw, 25px\" \/>\u00a0Use the the sleep method(see below) and the system clear to improve your program<\/p>\n<div class=\"arconix-box arconix-box-blue\"><i class='fa fa-2x pull-left fa-info-circle'><\/i><div class=\"arconix-box-content\">\n<p><strong>Sleep Method<\/strong><\/p>\n<p>I forgot this in the video&#8230;ooops! You import time, then use the time.sleep(seconds) to add a pause to your program!<\/p>\n<p>import time<\/p>\n<p>time.sleep(1)<\/p>\n<\/div><\/div>\n\n<\/div><h2 class=\"tabtitle\">Cheat Sheet<\/h2>\n<div class=\"tabcontent\">\n\n<h3>Cheat sheet<\/h3>\n<p><strong>print(&#8216;hello world&#8217;)<\/strong> &#8211; prints data out to the screen<\/p>\n<p><strong>name = input(&#8220;What&#8217;s your name&#8221;)<\/strong> &#8211; Asks the user for input and stores it in a named variable<\/p>\n<p><strong>name.title()<\/strong> Converts the user input into title case (adds a capital letter to the start of each word)<\/p>\n<p><strong>, (comma)<\/strong> &#8211; separates items in a print with a space<\/p>\n<p><strong>+(plus) &#8211;<\/strong> combines two items in a print without a space<\/p>\n<p><strong>\\t<\/strong> &#8211; Adds a tab to a string of text<\/p>\n<p><strong>\\n<\/strong> &#8211; Adds a new line to a string of text<\/p>\n<p><strong>import os<\/strong> &#8211; imports the os module, so you can use the os.system(&#8216;clear&#8217;) to clear the screen<\/p>\n<p><strong>os.system(&#8216;clear&#8217;)<\/strong> &#8211; clear&#8217;s the screen<\/p>\n<p><strong>import time<\/strong> &#8211; imports the time module, so you can use the sleep function<\/p>\n<p><strong>time.sleep(1)<\/strong> &#8211; gets the program to wait for a second in between lines of code.<\/p>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Tutorial Video 1 Can&#8217;t access YouTube? Click here for the Google Drive Version. Tutorial video part 2 Can&#8217;t access YouTube? Click here for the Google Drive Version Want to know an even easier way of combining strings and variables? Take a look at F-Strings \ud83d\ude42 What to know an even easier way of combining strings&hellip;&nbsp;<a href=\"https:\/\/learnlearn.uk\/python\/lesson-1-print-input\/\" class=\"\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">lesson 1 &#8211; Print and Input<\/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":"","neve_meta_content_width":70,"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>lesson 1 - Print and Input - 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\/lesson-1-print-input\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"lesson 1 - Print and Input - Python\" \/>\n<meta property=\"og:description\" content=\"Tutorial Video 1 Can&#8217;t access YouTube? Click here for the Google Drive Version. Tutorial video part 2 Can&#8217;t access YouTube? Click here for the Google Drive Version Want to know an even easier way of combining strings and variables? Take a look at F-Strings \ud83d\ude42 What to know an even easier way of combining strings&hellip;&nbsp;Read More &raquo;lesson 1 &#8211; Print and Input\" \/>\n<meta property=\"og:url\" content=\"https:\/\/learnlearn.uk\/python\/lesson-1-print-input\/\" \/>\n<meta property=\"og:site_name\" content=\"Python\" \/>\n<meta property=\"article:modified_time\" content=\"2023-04-22T10:17:44+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/bronze-star-150x150.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=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/learnlearn.uk\/python\/lesson-1-print-input\/\",\"url\":\"https:\/\/learnlearn.uk\/python\/lesson-1-print-input\/\",\"name\":\"lesson 1 - Print and Input - Python\",\"isPartOf\":{\"@id\":\"https:\/\/learnlearn.uk\/python\/#website\"},\"datePublished\":\"2017-09-10T15:16:33+00:00\",\"dateModified\":\"2023-04-22T10:17:44+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/learnlearn.uk\/python\/lesson-1-print-input\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/learnlearn.uk\/python\/lesson-1-print-input\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/learnlearn.uk\/python\/lesson-1-print-input\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Python Unit Home\",\"item\":\"https:\/\/learnlearn.uk\/python\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"lesson 1 &#8211; Print and Input\"}]},{\"@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":"lesson 1 - Print and Input - 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\/lesson-1-print-input\/","og_locale":"en_GB","og_type":"article","og_title":"lesson 1 - Print and Input - Python","og_description":"Tutorial Video 1 Can&#8217;t access YouTube? Click here for the Google Drive Version. Tutorial video part 2 Can&#8217;t access YouTube? Click here for the Google Drive Version Want to know an even easier way of combining strings and variables? Take a look at F-Strings \ud83d\ude42 What to know an even easier way of combining strings&hellip;&nbsp;Read More &raquo;lesson 1 &#8211; Print and Input","og_url":"https:\/\/learnlearn.uk\/python\/lesson-1-print-input\/","og_site_name":"Python","article_modified_time":"2023-04-22T10:17:44+00:00","og_image":[{"url":"http:\/\/learnlearn.uk\/python\/wp-content\/uploads\/sites\/4\/2017\/09\/bronze-star-150x150.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Estimated reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/learnlearn.uk\/python\/lesson-1-print-input\/","url":"https:\/\/learnlearn.uk\/python\/lesson-1-print-input\/","name":"lesson 1 - Print and Input - Python","isPartOf":{"@id":"https:\/\/learnlearn.uk\/python\/#website"},"datePublished":"2017-09-10T15:16:33+00:00","dateModified":"2023-04-22T10:17:44+00:00","breadcrumb":{"@id":"https:\/\/learnlearn.uk\/python\/lesson-1-print-input\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/learnlearn.uk\/python\/lesson-1-print-input\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/learnlearn.uk\/python\/lesson-1-print-input\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Python Unit Home","item":"https:\/\/learnlearn.uk\/python\/"},{"@type":"ListItem","position":2,"name":"lesson 1 &#8211; Print and Input"}]},{"@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":"Tutorial Video 1 Can&#8217;t access YouTube? Click here for the Google Drive Version. Tutorial video part 2 Can&#8217;t access YouTube? Click here for the Google Drive Version Want to know an even easier way of combining strings and variables? Take a look at F-Strings \ud83d\ude42 What to know an even easier way of combining strings&hellip;&nbsp;Read&hellip;","_links":{"self":[{"href":"https:\/\/learnlearn.uk\/python\/wp-json\/wp\/v2\/pages\/854"}],"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=854"}],"version-history":[{"count":29,"href":"https:\/\/learnlearn.uk\/python\/wp-json\/wp\/v2\/pages\/854\/revisions"}],"predecessor-version":[{"id":871,"href":"https:\/\/learnlearn.uk\/python\/wp-json\/wp\/v2\/pages\/854\/revisions\/871"}],"wp:attachment":[{"href":"https:\/\/learnlearn.uk\/python\/wp-json\/wp\/v2\/media?parent=854"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}