Here's my example program from our first python lesson. Our programs may be slightly different, but by end, you should be able to:
  • Take user input
  • Respond
  • Compare numbers
  • Do math
  • Print a list of things

Also remember, there are some important concepts we covered this lesson. Specifically:
  • The difference between "strings" (str) and "numbers" (int)
  • To convert a string into a number, use the "int()" function
  • To convert a number into a string, use the "str()" function
yourName = input("What is your name?: ")
print("Hi, " + yourName + "!")
response = input("How are you today?: ")
 
if response == "good":
 print("That is great!")
elif response == "bad":
 print("DARN SHUCKS!")
else:
 print("Awww.. Too bad :(")
 
bigNumber = input("What is a big number?: ")
bigNumber = int(bigNumber)
 
if bigNumber < 100:
 print("That's not big!")
else:
 print("That * 5 = " + str(bigNumber * 5))
 
fruits = ["banana", "orange", "kiwi"]
print("I love all these fruit!")
 
for fruit in fruits:
 print(fruit)



asdf