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:
+54
@@ -0,0 +1,54 @@
|
||||
---
|
||||
id: 62baa9d28e8723f635a0093e
|
||||
title: Drawing a Shape
|
||||
challengeType: 11
|
||||
videoId: vcNZZSeyZkY
|
||||
dashedName: drawing-a-shape
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
In this video, you will learn how to print a basic shape to the console using `print` statements.
|
||||
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
Which of the following is the correct way to print a triangle to the console?
|
||||
|
||||
## --answers--
|
||||
|
||||
```python
|
||||
print(" /| / | / | /___|")
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
```python
|
||||
print( /|)
|
||||
print( / |)
|
||||
print( / |)
|
||||
print(/___|)
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
```python
|
||||
print(" /|")
|
||||
print(" / |")
|
||||
print(" / |")
|
||||
print("/___|")
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
```python
|
||||
print(" /|")
|
||||
print(" / |")
|
||||
print(" / |")
|
||||
print("/___|")
|
||||
```
|
||||
|
||||
## --video-solution--
|
||||
|
||||
4
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
---
|
||||
id: 155ca30775751b78a860a79b
|
||||
title: Getting Input from Users
|
||||
challengeType: 11
|
||||
videoId: C0L4cnqKqDw
|
||||
dashedName: getting-input-from-users
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
In this video, you will learn how to get input from the user.
|
||||
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
Which of the following built-in functions is used to get input from the user?
|
||||
|
||||
## --answers--
|
||||
|
||||
`input()`
|
||||
|
||||
---
|
||||
|
||||
`os.stdin()`
|
||||
|
||||
---
|
||||
|
||||
`stdin()`
|
||||
|
||||
---
|
||||
|
||||
`prompt()`
|
||||
|
||||
## --video-solution--
|
||||
|
||||
1
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
---
|
||||
id: 315017f4457c19d45c2be034
|
||||
title: Variables and Data Types
|
||||
challengeType: 11
|
||||
videoId: sIw317W39X0
|
||||
dashedName: variables-and-data-types
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
In this video, you will learn about the different data types in Python including integers, strings and booleans.
|
||||
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
What is a boolean?
|
||||
|
||||
## --answers--
|
||||
|
||||
It is a data type that represents an `undefined` value.
|
||||
|
||||
---
|
||||
|
||||
It is a data type that represents a sequence of characters.
|
||||
|
||||
---
|
||||
|
||||
It is a data type that represents `True` or `False`.
|
||||
|
||||
---
|
||||
|
||||
It is a data type that represents a float.
|
||||
|
||||
## --video-solution--
|
||||
|
||||
3
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
---
|
||||
id: 8ad37ddb7a23050f71cc9cc9
|
||||
title: Working with Numbers
|
||||
challengeType: 11
|
||||
videoId: C7sxe5GAArQ
|
||||
dashedName: working-with-numbers
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
In this video, you will learn how to work with basic arithmetic operations and built-in number functions.
|
||||
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
Which of the following built-in functions is used to return the base number raised to a power?
|
||||
|
||||
## --answers--
|
||||
|
||||
`base()`
|
||||
|
||||
---
|
||||
|
||||
`power()`
|
||||
|
||||
---
|
||||
|
||||
`pow()`
|
||||
|
||||
---
|
||||
|
||||
`exp()`
|
||||
|
||||
## --video-solution--
|
||||
|
||||
3
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
---
|
||||
id: 0e2f4bd857b1edc70bfcd1f9
|
||||
title: Working with Strings
|
||||
challengeType: 11
|
||||
videoId: OrejgL7kP3M
|
||||
dashedName: working-with-strings
|
||||
---
|
||||
|
||||
# --description--
|
||||
|
||||
In this video, you will learn about string concatenation, indexing, and useful string methods.
|
||||
|
||||
# --questions--
|
||||
|
||||
## --text--
|
||||
|
||||
Which of the following is the correct way to access the first character of a string?
|
||||
|
||||
## --answers--
|
||||
|
||||
```python
|
||||
phrase = "Giraffe Academy"
|
||||
print(phrase[1])
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
```python
|
||||
phrase = "Giraffe Academy"
|
||||
print(phrase[0])
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
```python
|
||||
phrase = "Giraffe Academy"
|
||||
print(phrase[-1])
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
```python
|
||||
phrase = "Giraffe Academy"
|
||||
print(phrase[2])
|
||||
```
|
||||
|
||||
## --video-solution--
|
||||
|
||||
2
|
||||
Reference in New Issue
Block a user