Saturday, April 19, 2014

Day 14

Explored some Python at Gork Learning, wrote a program in which bot asks what your favorite movie is, then compliments you on your excellent taste.

The code I used:
# Code for "Interacting with bot."
print("So what is your favorite movie?")
movie = input()
print("Great! I love " + movie + " too.")

The interaction looked like this:
So what is your favorite movie?
Harry Potter
Great! I love Harry Potter too.

No comments:

Post a Comment