Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
97 commits
Select commit Hold shift + click to select a range
4c7b9f1
New translations .keep (Romanian)
ninaszymor Mar 3, 2020
61d143f
New translations .keep (Portuguese)
ninaszymor Mar 3, 2020
fd7c951
New translations step_1.md (Serbian (Cyrillic))
ninaszymor Mar 3, 2020
4564d03
New translations meta.yml (Serbian (Cyrillic))
ninaszymor Mar 3, 2020
571ba18
New translations .keep (Serbian (Cyrillic))
ninaszymor Mar 3, 2020
d4cf3c3
New translations step_1.md (Russian)
ninaszymor Mar 3, 2020
13e6070
New translations meta.yml (Russian)
ninaszymor Mar 3, 2020
72c9391
New translations .keep (Russian)
ninaszymor Mar 3, 2020
c58630d
New translations step_1.md (Portuguese)
ninaszymor Mar 3, 2020
38c5469
New translations meta.yml (Portuguese)
ninaszymor Mar 3, 2020
eb258b8
New translations step_1.md (Polish)
ninaszymor Mar 3, 2020
8055066
New translations meta.yml (Swedish)
ninaszymor Mar 3, 2020
6982450
New translations meta.yml (Polish)
ninaszymor Mar 3, 2020
fb05cab
New translations .keep (Polish)
ninaszymor Mar 3, 2020
c7fb203
New translations step_1.md (Norwegian)
ninaszymor Mar 3, 2020
fb939eb
New translations meta.yml (Norwegian)
ninaszymor Mar 3, 2020
cba6ffd
New translations .keep (Norwegian)
ninaszymor Mar 3, 2020
38f1d78
New translations step_1.md (Dutch)
ninaszymor Mar 3, 2020
c269a4b
New translations meta.yml (Dutch)
ninaszymor Mar 3, 2020
b8e1721
New translations .keep (Dutch)
ninaszymor Mar 3, 2020
8f03a79
New translations .keep (Swedish)
ninaszymor Mar 3, 2020
760a662
New translations step_1.md (Swedish)
ninaszymor Mar 3, 2020
0803110
New translations meta.yml (Korean)
ninaszymor Mar 3, 2020
a436cf0
New translations step_1.md (Chinese Traditional)
ninaszymor Mar 3, 2020
abf14a5
New translations meta.yml (Portuguese, Brazilian)
ninaszymor Mar 3, 2020
4c312c9
New translations .keep (Portuguese, Brazilian)
ninaszymor Mar 3, 2020
3e3b0c0
New translations step_1.md (Vietnamese)
ninaszymor Mar 3, 2020
a288c36
New translations meta.yml (Vietnamese)
ninaszymor Mar 3, 2020
cab2eec
New translations .keep (Vietnamese)
ninaszymor Mar 3, 2020
733c7d3
New translations step_1.md (English)
ninaszymor Mar 3, 2020
f2e036c
New translations meta.yml (English)
ninaszymor Mar 3, 2020
e4c7e2b
New translations .keep (English)
ninaszymor Mar 3, 2020
18c2c00
New translations meta.yml (Chinese Traditional)
ninaszymor Mar 3, 2020
7311f8d
New translations .keep (Turkish)
ninaszymor Mar 3, 2020
6d66235
New translations .keep (Chinese Traditional)
ninaszymor Mar 3, 2020
d920718
New translations step_1.md (Chinese Simplified)
ninaszymor Mar 3, 2020
f1b9fd4
New translations meta.yml (Chinese Simplified)
ninaszymor Mar 3, 2020
e019bef
New translations .keep (Chinese Simplified)
ninaszymor Mar 3, 2020
6e67f12
New translations step_1.md (Ukrainian)
ninaszymor Mar 3, 2020
2185732
New translations meta.yml (Ukrainian)
ninaszymor Mar 3, 2020
d68f2f2
New translations .keep (Ukrainian)
ninaszymor Mar 3, 2020
885fc22
New translations step_1.md (Turkish)
ninaszymor Mar 3, 2020
8f895a1
New translations meta.yml (Turkish)
ninaszymor Mar 3, 2020
84fdc43
New translations step_1.md (Korean)
ninaszymor Mar 3, 2020
7e72633
New translations .keep (Korean)
ninaszymor Mar 3, 2020
95e17f8
New translations meta.yml (Romanian)
ninaszymor Mar 3, 2020
b5d5050
New translations .keep (Arabic)
ninaszymor Mar 3, 2020
2f504f8
New translations step_1.md (Czech)
ninaszymor Mar 3, 2020
2b0a4cb
New translations meta.yml (Czech)
ninaszymor Mar 3, 2020
3514d37
New translations .keep (Czech)
ninaszymor Mar 3, 2020
b2be775
New translations step_1.md (Catalan)
ninaszymor Mar 3, 2020
7d8bbf1
New translations meta.yml (Catalan)
ninaszymor Mar 3, 2020
1a0aa1c
New translations .keep (Catalan)
ninaszymor Mar 3, 2020
f08ced4
New translations step_1.md (Arabic)
ninaszymor Mar 3, 2020
be7a46a
New translations meta.yml (Arabic)
ninaszymor Mar 3, 2020
89f2070
New translations step_1.md (Afrikaans)
ninaszymor Mar 3, 2020
735ecfd
New translations meta.yml (Danish)
ninaszymor Mar 3, 2020
d8571ad
New translations meta.yml (Afrikaans)
ninaszymor Mar 3, 2020
779744d
New translations .keep (Afrikaans)
ninaszymor Mar 3, 2020
82bbf16
New translations step_1.md (Spanish)
ninaszymor Mar 3, 2020
1ca256a
New translations meta.yml (Spanish)
ninaszymor Mar 3, 2020
aa8ca1b
New translations .keep (Spanish)
ninaszymor Mar 3, 2020
49758bf
New translations step_1.md (French)
ninaszymor Mar 3, 2020
ab590d6
New translations meta.yml (French)
ninaszymor Mar 3, 2020
539b808
New translations .keep (French)
ninaszymor Mar 3, 2020
95ed861
New translations step_1.md (Romanian)
ninaszymor Mar 3, 2020
c9f8d8a
New translations .keep (Danish)
ninaszymor Mar 3, 2020
ccc693d
New translations step_1.md (Danish)
ninaszymor Mar 3, 2020
0e757a1
New translations step_1.md (Japanese)
ninaszymor Mar 3, 2020
53d381e
New translations step_1.md (Hebrew)
ninaszymor Mar 3, 2020
14d3959
New translations meta.yml (Japanese)
ninaszymor Mar 3, 2020
01b988f
New translations .keep (Japanese)
ninaszymor Mar 3, 2020
a3377cf
New translations step_1.md (Italian)
ninaszymor Mar 3, 2020
5ecf2fa
New translations meta.yml (Italian)
ninaszymor Mar 3, 2020
05a61ec
New translations .keep (Italian)
ninaszymor Mar 3, 2020
945c55e
New translations step_1.md (Hungarian)
ninaszymor Mar 3, 2020
2cc005f
New translations meta.yml (Hungarian)
ninaszymor Mar 3, 2020
0d685d3
New translations .keep (Hungarian)
ninaszymor Mar 3, 2020
5855a22
New translations meta.yml (Hebrew)
ninaszymor Mar 3, 2020
4ce6fd1
New translations .keep (German)
ninaszymor Mar 3, 2020
446bf78
New translations .keep (Hebrew)
ninaszymor Mar 3, 2020
df2d468
New translations step_1.md (Finnish)
ninaszymor Mar 3, 2020
5a957ed
New translations meta.yml (Finnish)
ninaszymor Mar 3, 2020
c227c6d
New translations .keep (Finnish)
ninaszymor Mar 3, 2020
672a848
New translations step_1.md (Greek)
ninaszymor Mar 3, 2020
631586c
New translations meta.yml (Greek)
ninaszymor Mar 3, 2020
7522fd2
New translations .keep (Greek)
ninaszymor Mar 3, 2020
227f436
New translations step_1.md (German)
ninaszymor Mar 3, 2020
9653003
New translations meta.yml (German)
ninaszymor Mar 3, 2020
96043b9
New translations step_1.md (Portuguese, Brazilian)
ninaszymor Mar 3, 2020
8dd3f81
New translations meta.yml (Dutch)
majamanojlovic Apr 26, 2020
da1b649
New translations step_1.md (Dutch)
majamanojlovic Apr 26, 2020
27b683d
New translations .keep (Spanish, Latin America)
majamanojlovic Mar 5, 2021
6d585a1
New translations meta.yml (Spanish, Latin America)
majamanojlovic Mar 5, 2021
322fc55
New translations step_1.md (Spanish, Latin America)
majamanojlovic Mar 5, 2021
b8af704
New translations meta.yml (French)
sashamishcheriakova Jan 31, 2024
5ed443e
New translations step_1.md (French)
sashamishcheriakova Jan 31, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions af-ZA/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
title: Using the mod operator in Python
hero_image: images/banner.png
description: Learn how the mod operator is used in Python
original_url:
theme: red #possible values: blue, green, navy, orange, red, turquoise, violet, yellow
duration: 1 #possible values: 1, 2 or 3
listed: false
ingredient: true
copyedit: true
curriculum: creator, design-0, programming-0, phys-comp-0, manufacture-0, community-0
interests: ""
technologies: "python"
site_areas:
steps:
-
title: The modulo operator
1 change: 1 addition & 0 deletions af-ZA/solutions/.keep
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

18 changes: 18 additions & 0 deletions af-ZA/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
The modulo or mod operator divides one number by another and returns the remainder. The symbol of this operator is `%`.

```python
remainder = 5 % 2
print(remainder)

>> 1
```

The calculation `5 / 2` is performed, and the remainder is returned. In this case, 2 goes into 5 twice, with 1 left over as the remainder. Hence, the result is 1.

You can use mod to check whether a number is a multiple of another number. If it is, the remainder will be 0, like in this example:

```python
test_number = 50
if test_number % 5 == 0:
print("This is a multiple of 5")
```
17 changes: 17 additions & 0 deletions ar-SA/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
title: Using the mod operator in Python
hero_image: images/banner.png
description: Learn how the mod operator is used in Python
original_url:
theme: red #possible values: blue, green, navy, orange, red, turquoise, violet, yellow
duration: 1 #possible values: 1, 2 or 3
listed: false
ingredient: true
copyedit: true
curriculum: creator, design-0, programming-0, phys-comp-0, manufacture-0, community-0
interests: ""
technologies: "python"
site_areas:
steps:
-
title: The modulo operator
1 change: 1 addition & 0 deletions ar-SA/solutions/.keep
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

18 changes: 18 additions & 0 deletions ar-SA/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
The modulo or mod operator divides one number by another and returns the remainder. The symbol of this operator is `%`.

```python
remainder = 5 % 2
print(remainder)

>> 1
```

The calculation `5 / 2` is performed, and the remainder is returned. In this case, 2 goes into 5 twice, with 1 left over as the remainder. Hence, the result is 1.

You can use mod to check whether a number is a multiple of another number. If it is, the remainder will be 0, like in this example:

```python
test_number = 50
if test_number % 5 == 0:
print("This is a multiple of 5")
```
17 changes: 17 additions & 0 deletions ca-ES/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
title: Using the mod operator in Python
hero_image: images/banner.png
description: Learn how the mod operator is used in Python
original_url:
theme: red #possible values: blue, green, navy, orange, red, turquoise, violet, yellow
duration: 1 #possible values: 1, 2 or 3
listed: false
ingredient: true
copyedit: true
curriculum: creator, design-0, programming-0, phys-comp-0, manufacture-0, community-0
interests: ""
technologies: "python"
site_areas:
steps:
-
title: The modulo operator
1 change: 1 addition & 0 deletions ca-ES/solutions/.keep
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

18 changes: 18 additions & 0 deletions ca-ES/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
The modulo or mod operator divides one number by another and returns the remainder. The symbol of this operator is `%`.

```python
remainder = 5 % 2
print(remainder)

>> 1
```

The calculation `5 / 2` is performed, and the remainder is returned. In this case, 2 goes into 5 twice, with 1 left over as the remainder. Hence, the result is 1.

You can use mod to check whether a number is a multiple of another number. If it is, the remainder will be 0, like in this example:

```python
test_number = 50
if test_number % 5 == 0:
print("This is a multiple of 5")
```
17 changes: 17 additions & 0 deletions cs-CZ/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
title: Using the mod operator in Python
hero_image: images/banner.png
description: Learn how the mod operator is used in Python
original_url:
theme: red #possible values: blue, green, navy, orange, red, turquoise, violet, yellow
duration: 1 #possible values: 1, 2 or 3
listed: false
ingredient: true
copyedit: true
curriculum: creator, design-0, programming-0, phys-comp-0, manufacture-0, community-0
interests: ""
technologies: "python"
site_areas:
steps:
-
title: The modulo operator
1 change: 1 addition & 0 deletions cs-CZ/solutions/.keep
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

18 changes: 18 additions & 0 deletions cs-CZ/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
The modulo or mod operator divides one number by another and returns the remainder. The symbol of this operator is `%`.

```python
remainder = 5 % 2
print(remainder)

>> 1
```

The calculation `5 / 2` is performed, and the remainder is returned. In this case, 2 goes into 5 twice, with 1 left over as the remainder. Hence, the result is 1.

You can use mod to check whether a number is a multiple of another number. If it is, the remainder will be 0, like in this example:

```python
test_number = 50
if test_number % 5 == 0:
print("This is a multiple of 5")
```
17 changes: 17 additions & 0 deletions da-DK/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
title: Using the mod operator in Python
hero_image: images/banner.png
description: Learn how the mod operator is used in Python
original_url:
theme: red #possible values: blue, green, navy, orange, red, turquoise, violet, yellow
duration: 1 #possible values: 1, 2 or 3
listed: false
ingredient: true
copyedit: true
curriculum: creator, design-0, programming-0, phys-comp-0, manufacture-0, community-0
interests: ""
technologies: "python"
site_areas:
steps:
-
title: The modulo operator
1 change: 1 addition & 0 deletions da-DK/solutions/.keep
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

18 changes: 18 additions & 0 deletions da-DK/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
The modulo or mod operator divides one number by another and returns the remainder. The symbol of this operator is `%`.

```python
remainder = 5 % 2
print(remainder)

>> 1
```

The calculation `5 / 2` is performed, and the remainder is returned. In this case, 2 goes into 5 twice, with 1 left over as the remainder. Hence, the result is 1.

You can use mod to check whether a number is a multiple of another number. If it is, the remainder will be 0, like in this example:

```python
test_number = 50
if test_number % 5 == 0:
print("This is a multiple of 5")
```
17 changes: 17 additions & 0 deletions de-DE/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
title: Using the mod operator in Python
hero_image: images/banner.png
description: Learn how the mod operator is used in Python
original_url:
theme: red #possible values: blue, green, navy, orange, red, turquoise, violet, yellow
duration: 1 #possible values: 1, 2 or 3
listed: false
ingredient: true
copyedit: true
curriculum: creator, design-0, programming-0, phys-comp-0, manufacture-0, community-0
interests: ""
technologies: "python"
site_areas:
steps:
-
title: The modulo operator
1 change: 1 addition & 0 deletions de-DE/solutions/.keep
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

18 changes: 18 additions & 0 deletions de-DE/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
The modulo or mod operator divides one number by another and returns the remainder. The symbol of this operator is `%`.

```python
remainder = 5 % 2
print(remainder)

>> 1
```

The calculation `5 / 2` is performed, and the remainder is returned. In this case, 2 goes into 5 twice, with 1 left over as the remainder. Hence, the result is 1.

You can use mod to check whether a number is a multiple of another number. If it is, the remainder will be 0, like in this example:

```python
test_number = 50
if test_number % 5 == 0:
print("This is a multiple of 5")
```
17 changes: 17 additions & 0 deletions el-GR/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
title: Using the mod operator in Python
hero_image: images/banner.png
description: Learn how the mod operator is used in Python
original_url:
theme: red #possible values: blue, green, navy, orange, red, turquoise, violet, yellow
duration: 1 #possible values: 1, 2 or 3
listed: false
ingredient: true
copyedit: true
curriculum: creator, design-0, programming-0, phys-comp-0, manufacture-0, community-0
interests: ""
technologies: "python"
site_areas:
steps:
-
title: The modulo operator
1 change: 1 addition & 0 deletions el-GR/solutions/.keep
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

18 changes: 18 additions & 0 deletions el-GR/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
The modulo or mod operator divides one number by another and returns the remainder. The symbol of this operator is `%`.

```python
remainder = 5 % 2
print(remainder)

>> 1
```

The calculation `5 / 2` is performed, and the remainder is returned. In this case, 2 goes into 5 twice, with 1 left over as the remainder. Hence, the result is 1.

You can use mod to check whether a number is a multiple of another number. If it is, the remainder will be 0, like in this example:

```python
test_number = 50
if test_number % 5 == 0:
print("This is a multiple of 5")
```
17 changes: 17 additions & 0 deletions en-US/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
title: Using the mod operator in Python
hero_image: images/banner.png
description: Learn how the mod operator is used in Python
original_url:
theme: red #possible values: blue, green, navy, orange, red, turquoise, violet, yellow
duration: 1 #possible values: 1, 2 or 3
listed: false
ingredient: true
copyedit: true
curriculum: creator, design-0, programming-0, phys-comp-0, manufacture-0, community-0
interests: ""
technologies: "python"
site_areas:
steps:
-
title: The modulo operator
1 change: 1 addition & 0 deletions en-US/solutions/.keep
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

18 changes: 18 additions & 0 deletions en-US/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
The modulo or mod operator divides one number by another and returns the remainder. The symbol of this operator is `%`.

```python
remainder = 5 % 2
print(remainder)

>> 1
```

The calculation `5 / 2` is performed, and the remainder is returned. In this case, 2 goes into 5 twice, with 1 left over as the remainder. Hence, the result is 1.

You can use mod to check whether a number is a multiple of another number. If it is, the remainder will be 0, like in this example:

```python
test_number = 50
if test_number % 5 == 0:
print("This is a multiple of 5")
```
17 changes: 17 additions & 0 deletions es-ES/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
title: Using the mod operator in Python
hero_image: images/banner.png
description: Learn how the mod operator is used in Python
original_url:
theme: red #possible values: blue, green, navy, orange, red, turquoise, violet, yellow
duration: 1 #possible values: 1, 2 or 3
listed: false
ingredient: true
copyedit: true
curriculum: creator, design-0, programming-0, phys-comp-0, manufacture-0, community-0
interests: ""
technologies: "python"
site_areas:
steps:
-
title: The modulo operator
1 change: 1 addition & 0 deletions es-ES/solutions/.keep
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

18 changes: 18 additions & 0 deletions es-ES/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
The modulo or mod operator divides one number by another and returns the remainder. The symbol of this operator is `%`.

```python
remainder = 5 % 2
print(remainder)

>> 1
```

The calculation `5 / 2` is performed, and the remainder is returned. In this case, 2 goes into 5 twice, with 1 left over as the remainder. Hence, the result is 1.

You can use mod to check whether a number is a multiple of another number. If it is, the remainder will be 0, like in this example:

```python
test_number = 50
if test_number % 5 == 0:
print("This is a multiple of 5")
```
17 changes: 17 additions & 0 deletions es-LA/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
title: Usando el operador mod en Python
hero_image: images/banner.png
description: Aprende cómo se utiliza el operador mod en Python
original_url:
theme: red #possible values: blue, green, navy, orange, red, turquoise, violet, yellow
duration: 1 #possible values: 1, 2 or 3
listed: false
ingredient: true
copyedit: true
curriculum: creator, design-0, programming-0, phys-comp-0, manufacture-0, community-0
interests: ""
technologies: "python"
site_areas:
steps:
-
title: El operador modulo
1 change: 1 addition & 0 deletions es-LA/solutions/.keep
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

18 changes: 18 additions & 0 deletions es-LA/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
El módulo o el operador mod divide un número por otro y devuelve el residuo. El símbolo de este operador es `%`.

```python
residuo = 5 % 2
print(residuo)

>> 1
```

El cálculo `5 / 2` es ejecutado, y se devuelve el residuo. En este caso, 2 cabe en 5 dos veces, con 1 como el residuo. Por lo tanto, el resultado es 1.

Puedes usar mod para comprobar si un número es un múltiplo de otro número. Si es así, el residuo será 0, como en este ejemplo:

```python
numero_de_prueba = 50
if numero_de_prueba % 5 == 0:
print("Este es un múltiplo de 5")
```
Loading