Activity 1 - READ
A re-cap of terminology:
Activity 2
Hashtag it out!
Copy and paste the code below into Python and use #hashtags to show where each of the keywords above are in the code. Two have been completed for you.
def multiply(x):
return (x*5)
def chosen(option):
if option == 1:
GAME = "A list of numbers"
print (GAME)
for x in range(0,10):
print (x)
print (multiply(x))
menu()
else:
quit()
def menu():
print ("This is the menu")
print ("----------------")
print ("Choose from:")
print ("1. Play")
print ("2. Quit")
option = int(input()) # variable declaration and initialisation
while option not in [1,2]:
print ("You must type 1 or 2")
option = input() # variable assignment
chosen(option)
menu()
Basically...put three of your applications into one file and make them accessible via a menu system
When you teach, make sure that you use the correct terminology for the aspects of programming. This will help to "drip feed" the correct words to the students.