Professional Documents
Culture Documents
You can also use the green arrow to run your code.
Print more phrases
Print out 4 more phrases!
Each phrase should be its own line
Each phrase should have its own print(statement)
I dont care what the phrases are.
Press play and have fun!
Write a Comment
You write comments using the # symbol
Everything on a line after # is ignored
Use a comment to say who wrote this code.
Write some more comments
Comments are there to help future-you read the code (and me
as well)
For now, just write a few comments to your program
Getting Input from the User
You can get input from the user by using the command
x=input(Please enter a phrase)
This will do three things:
Ask the user whatever you put in quotes.
Wait for the user to enter something (and press enter)
Store what the user input as a string in the variable x
You can change up whats in the or the name of the variable
if you like
Getting Input from the User
Ask the user to input a phrase, then print out whatever the
user entered
Hint: You can just copy this from the last slide!
Repeat the above step, except use a different variable and
change how you ask the user
Submitting the folder
Right click (control click for Mac)
on the project and click Reveal in
Finder (or Reveal in Explorer on
a PC)
Submitting the Folder
Right click on the folder to compress it
Mac: Compress Lab00
PC: Send To Compress
Open up Moodle and go to the Lab00 assignment and submit
Submitting
Drag your .zip file into this box