Editing Community Data Science Workshops (Core)/Day 0 Tutorial
From CommunityData
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 385: | Line 385: | ||
<code>if 6 > 5:</code><br /> | <code>if 6 > 5:</code><br /> | ||
<br /> | <br /> | ||
part, and press Enter. | part, and press Enter. The next line will have <code>...</code> as a prompt, instead of the usual <code>>>></code>. This is Python telling us that we are in the middle of a '''code block''', and so long as we indent our code it should be a part of this code block.</li> | ||
< | <li>Press the spacebar 4 times to indent.</li> | ||
<li>Type<br /> | <li>Type<br /> | ||
<br /> | <br /> | ||
<code>print("Six is greater than five!")</code><br /><br /></li> | <code>print("Six is greater than five!")</code><br /><br /></li> | ||
< | <li>Press Enter to end the line. The prompt will still be a <code>...</code></li> | ||
<li>Press | <li>Press Enter one more time to tell Python you are done with this code block. The code block will now execute.</li> | ||
</ol> | </ol> | ||