Back to Freecodecamp

Mad Libs Game

curriculum/challenges/english/blocks/small-python-projects/mad-libs-game-video.md

latest610 B
Original Source

--description--

In this video, you will create a Mad Libs game that takes user input and creates funny stories.

--questions--

--text--

Which of the following is the correct way to get input from a user and print the result to the console?

--answers--

python
color = input("Enter a color: ")
print(Roses are + color)

python
color = input("Enter a color: ")
print("Roses are " + "color")

python
color = input("Enter a color: ")
print("Roses are " + color)

python
color = prompt("Enter a color: ")
print("Roses are " + color)

--video-solution--

3