Learn to write Python code - A quick tutorial for kids

maxAge = 3
hankAge = 5
print("Hank is:")
print(hankAge)
Hank is:
5
print("Max is:")
print(maxAge)
Max is:
3
print("Max is" + maxAge)
Max is 3
The cow says Moo!
The pig says
The duck says
The cow says Moo!
The pig says
The duck says Quack!
shoppingList = ["Milk", "Eggs", "Sugar", "Chocolate chips", "Flour"]
print(shoppingList)
['Milk', 'Eggs', 'Sugar', 'Chocolate chips', 'Flour']
   0       1        2             3             4
['Milk', 'Eggs', 'Sugar', 'Chocolate chips', 'Flour']
for movie in favoriteMovies:    print(movie + " is one of my favorite movies")

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store