31 | | Now you try it: Go [https://www.tutorialspoint.com/execute_python3_online.php here]. Its our code editor for this training exercise. You can enter code in the center area of the page, click execute, and see the results below. I recommend you bookmark that site, its pretty cool. Now on that site, highlight all the text in the central area and hit back space (this we'll clear out all the sample code. We'll call this "clear out the test code" from now on. Then highlight the code above, and click copy, and paste the two lines above into that editor. Then click "Execute". (We'll call this series of actions "run the code" from now on. After a bit, you'll be rewarded with the message in the bottom window: |
| 31 | Now you try it: Do the following: |
| 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.) |
| 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. |
| 43 | 1. Highlight all the code already in the center window. |
| 44 | 1. Right click and pick !{{{Paste}}}. This should replace everything in the window with the contents above |
| 45 | 1. Click !{{{Execute}}} right above the center window. |
| 46 | |
| 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). |
| 48 | |
| 49 | After a bit, you'll be rewarded with the message in the bottom window: |
40 | | In lesson 1, we had you create a program, "Hello World". Now, "Hello World" is not too exciting if you want to program robots, but its an important first step. We showed you how to run a function (or verb) {{{print}}}, which does something (show on the screen the value of its argument {{{a}}}, where {{{a}}} is assigned the value "Hello World". |
| 57 | In lesson 1, we had you create a program, "Hello World". Now, "Hello World" is not too exciting if you want to program robots, but its an important first step. We showed you how to run a function (or verb) `print`, which does something (show on the screen the value of its argument `a`, where `a` is assigned the value "Hello World". |