chore: import upstream snapshot with attribution
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
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
This commit is contained in:
+37
@@ -0,0 +1,37 @@
|
||||
---
|
||||
id: 6ec8578710ffa3471b74888e
|
||||
title: Building a Basic Calculator
|
||||
challengeType: 11
|
||||
videoId: vA10XU1O3QQ
|
||||
dashedName: building-a-basic-calculator
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
In this video, you will build a basic calculator program that can perform addition, subtraction, multiplication, and division operations.
|
||||
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
Which function is used to convert a string to an integer?
|
||||
|
||||
## --answers--
|
||||
|
||||
`convert()`
|
||||
|
||||
---
|
||||
|
||||
`str()`
|
||||
|
||||
---
|
||||
|
||||
`integer()`
|
||||
|
||||
---
|
||||
|
||||
`int()`
|
||||
|
||||
## --video-solution--
|
||||
|
||||
4
|
||||
@@ -0,0 +1,49 @@
|
||||
---
|
||||
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
|
||||
Reference in New Issue
Block a user