Changes between Version 13 and Version 14 of ControlSystems/SoftwareTeam/IntroToPython
- Timestamp:
- Sep 4, 2017, 4:46:51 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ControlSystems/SoftwareTeam/IntroToPython
v13 v14 27 27 print(a) 28 28 }}} 29 This tells the computer to print, you guessed it, "Hello World" 29 This tells the computer to print, you guessed it, "Hello World" 30 30 31 31 Now you try it: Do the following: 32 32 33 1. Highlight all the text in the central area and hit back space (this'll we'll clear out all the sample code.) 33 1. Highlight all the text in the central area and hit back space (this'll we'll clear out all the sample code.) 34 34 1. Then highlight the code above, right click and click {{{Copy}}. 35 1. Go [https://www.tutorialspoint.com/execute_python3_online.php here]. This site is our code editor, and its pretty cool. You can put code in the center section, and click execute to run it. The lower windo 36 37 38 39 || || || || 40 || || || || 41 42 1. w shows the results. 35 1. Go [https://www.tutorialspoint.com/execute_python3_online.php here]. This site is our code editor, and its pretty cool. You can put code in the center section, and click execute to run it. The lower window shows the results. 43 36 1. Highlight all the code already in the center window. 44 1. Right click and pick !{{{Paste}}}. 37 1. Right click and pick !{{{Paste}}}. This should replace everything in the window with the contents above 45 38 1. Click !{{{Execute}}} right above the center window. 46 39 47 (From now on, we'll call this step "''Go [https://www.tutorialspoint.com/execute_python3_online.php here] and run the code above''". (Just come back to these steps if you forget how to do this).40 (From now on, we'll call this step "''Go [https://www.tutorialspoint.com/execute_python3_online.php here] and run the code above''". (Just come back to these steps if you forget how to do this). 48 41 49 42 After a bit, you'll be rewarded with the message in the bottom window: … … 68 61 print("Hope you had a good time") 69 62 }}} 70 Welcome to our store We're here! Come on in Hope you had a good timeIt should print "We're here! Come on in!". If it doesn't ask for help. Spacing matters in Python.63 Welcome to our store We're here! Come on in Hope you had a good time It should print "We're here! Come on in!". If it doesn't ask for help. Spacing matters in Python. 71 64 72 65 Now, change line one to Location='Poughkeepsie, NY'. It should print "Go away, we're out eating tacos". If I was in Poughkeepsie, I'd be out eating tacos too. Ummm, tacos.