Favourite Movie
Write a program that allows a user to enter the name of their favourite movie. The user should then be able to enter the number of times that they have watched the movie. The program should then display this information back in two seperate messages.
Enter the name of your favourite movie: The Avengers How many times have you watched it? 25 Your favourite movie is The Avengers. You have watched it 25 times.
get favourite movie from user get number of times watched from user print "Your favourite movie is" & favourite movie print "You have watched it" & number of times & "times."
favourite_movie = input("Enter your favourite movie: ")
number_of_times_watched = input("How many times have you watched it? ")
print("Your favourite movie is", favourite_movie)
print("You have watched it", number_of_times_watched, "times.")
# Ask the user for their favourite movie
favourite_movie = input("Enter your favourite movie: ")
# Ask the user how many times they watched their favourite movie
number_of_times_watched = input("How many times have you watched it? ")
# Print out the message with the movie title
print("Your favourite movie is", favourite_movie)
# Print out how many times the user has watched their favourite movie
print("You have watched it", number_of_times_watched, "times.")
Extension
Add an extra input that asks the user for their favourite character in the movie before printing it out.
Enter the name of your favourite movie: The Avengers How many times have you watched it? 25 Who is your favourite character in the movie? Iron Man Your favourite movie is The Avengers. You have watched it 25 times. Your favourite character is Iron Man