dde272c4b8
i18n - Build Validation / Validate i18n Builds (24) (push) Has been cancelled
CI - Node.js / Lint (24) (push) Has been cancelled
CI - Node.js / Build (24) (push) Has been cancelled
CI - Node.js / Test (24) (push) Has been cancelled
CI - Node.js / Test - Upcoming Changes (24) (push) Has been cancelled
CI - Node.js / Test - i18n (italian, 24) (push) Has been cancelled
CI - Node.js / Test - i18n (portuguese, 24) (push) Has been cancelled
CD - Docker - GHCR Images / Build and Push Images (push) Has been cancelled
50 lines
735 B
Markdown
50 lines
735 B
Markdown
---
|
|
id: 024ffa91a50a44335be33ee7
|
|
title: Mad Libs Game
|
|
challengeType: 11
|
|
videoId: XRmMTKa-xlc
|
|
dashedName: mad-libs-game
|
|
---
|
|
|
|
# --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
|