Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
123 commits
Select commit Hold shift + click to select a range
83f9ecc
New translations .keep (Romanian)
ninaszymor Mar 2, 2020
ab2bc23
New translations .keep (Portuguese)
ninaszymor Mar 2, 2020
fe1fe87
New translations step_1.md (Serbian (Cyrillic))
ninaszymor Mar 2, 2020
4f34401
New translations meta.yml (Serbian (Cyrillic))
ninaszymor Mar 2, 2020
fcf8098
New translations .keep (Serbian (Cyrillic))
ninaszymor Mar 2, 2020
a925ecd
New translations step_1.md (Russian)
ninaszymor Mar 2, 2020
ea66b92
New translations meta.yml (Russian)
ninaszymor Mar 2, 2020
9bec500
New translations .keep (Russian)
ninaszymor Mar 2, 2020
ff60f12
New translations step_1.md (Portuguese)
ninaszymor Mar 2, 2020
7b9a17e
New translations meta.yml (Portuguese)
ninaszymor Mar 2, 2020
6b0bcb2
New translations step_1.md (Polish)
ninaszymor Mar 2, 2020
25637f2
New translations meta.yml (Swedish)
ninaszymor Mar 2, 2020
4872a0b
New translations meta.yml (Polish)
ninaszymor Mar 2, 2020
89e3c7d
New translations .keep (Polish)
ninaszymor Mar 2, 2020
aea8222
New translations step_1.md (Norwegian)
ninaszymor Mar 2, 2020
3e17203
New translations meta.yml (Norwegian)
ninaszymor Mar 2, 2020
f36e631
New translations .keep (Norwegian)
ninaszymor Mar 2, 2020
de2bf5a
New translations step_1.md (Dutch)
ninaszymor Mar 2, 2020
374b1ed
New translations meta.yml (Dutch)
ninaszymor Mar 2, 2020
8bab148
New translations .keep (Dutch)
ninaszymor Mar 2, 2020
b173348
New translations .keep (Swedish)
ninaszymor Mar 2, 2020
f0fd7b3
New translations step_1.md (Swedish)
ninaszymor Mar 2, 2020
8ec6adf
New translations meta.yml (Korean)
ninaszymor Mar 2, 2020
84ba717
New translations step_1.md (Chinese Traditional)
ninaszymor Mar 2, 2020
eaae1f4
New translations meta.yml (Portuguese, Brazilian)
ninaszymor Mar 2, 2020
3c572d0
New translations .keep (Portuguese, Brazilian)
ninaszymor Mar 2, 2020
dc2460f
New translations step_1.md (Vietnamese)
ninaszymor Mar 2, 2020
92672a9
New translations meta.yml (Vietnamese)
ninaszymor Mar 2, 2020
5fd69a6
New translations .keep (Vietnamese)
ninaszymor Mar 2, 2020
f753fd3
New translations step_1.md (English)
ninaszymor Mar 2, 2020
2472fba
New translations meta.yml (English)
ninaszymor Mar 2, 2020
d972ab7
New translations .keep (English)
ninaszymor Mar 2, 2020
df9095c
New translations meta.yml (Chinese Traditional)
ninaszymor Mar 2, 2020
0942a2a
New translations .keep (Turkish)
ninaszymor Mar 2, 2020
73f67ec
New translations .keep (Chinese Traditional)
ninaszymor Mar 2, 2020
9880137
New translations step_1.md (Chinese Simplified)
ninaszymor Mar 2, 2020
bb1678c
New translations meta.yml (Chinese Simplified)
ninaszymor Mar 2, 2020
d60f966
New translations .keep (Chinese Simplified)
ninaszymor Mar 2, 2020
d6da1d9
New translations step_1.md (Ukrainian)
ninaszymor Mar 2, 2020
af96d78
New translations meta.yml (Ukrainian)
ninaszymor Mar 2, 2020
2f48ac0
New translations .keep (Ukrainian)
ninaszymor Mar 2, 2020
bf2e7bf
New translations step_1.md (Turkish)
ninaszymor Mar 2, 2020
9653065
New translations meta.yml (Turkish)
ninaszymor Mar 2, 2020
4135ef8
New translations step_1.md (Korean)
ninaszymor Mar 2, 2020
94d35fc
New translations .keep (Korean)
ninaszymor Mar 2, 2020
ec722fc
New translations meta.yml (Romanian)
ninaszymor Mar 2, 2020
c6211dc
New translations .keep (Arabic)
ninaszymor Mar 2, 2020
499169b
New translations step_1.md (Czech)
ninaszymor Mar 2, 2020
5e2204f
New translations meta.yml (Czech)
ninaszymor Mar 2, 2020
d6142e8
New translations .keep (Czech)
ninaszymor Mar 2, 2020
dc14796
New translations step_1.md (Catalan)
ninaszymor Mar 2, 2020
89e096b
New translations meta.yml (Catalan)
ninaszymor Mar 2, 2020
c33aae2
New translations .keep (Catalan)
ninaszymor Mar 2, 2020
b4df2f8
New translations step_1.md (Arabic)
ninaszymor Mar 2, 2020
79849d8
New translations meta.yml (Arabic)
ninaszymor Mar 2, 2020
8fd24aa
New translations step_1.md (Afrikaans)
ninaszymor Mar 2, 2020
107a2ac
New translations meta.yml (Danish)
ninaszymor Mar 2, 2020
e4a88e3
New translations meta.yml (Afrikaans)
ninaszymor Mar 2, 2020
264100b
New translations .keep (Afrikaans)
ninaszymor Mar 2, 2020
29d26f2
New translations step_1.md (Spanish)
ninaszymor Mar 2, 2020
5aeda68
New translations meta.yml (Spanish)
ninaszymor Mar 2, 2020
5863b5f
New translations .keep (Spanish)
ninaszymor Mar 2, 2020
cd07700
New translations step_1.md (French)
ninaszymor Mar 2, 2020
5eba76f
New translations meta.yml (French)
ninaszymor Mar 2, 2020
0e69fdd
New translations .keep (French)
ninaszymor Mar 2, 2020
07cdf59
New translations step_1.md (Romanian)
ninaszymor Mar 2, 2020
d2d35e0
New translations .keep (Danish)
ninaszymor Mar 2, 2020
ad8217a
New translations step_1.md (Danish)
ninaszymor Mar 2, 2020
cae8ffe
New translations step_1.md (Japanese)
ninaszymor Mar 2, 2020
34ad0a4
New translations step_1.md (Hebrew)
ninaszymor Mar 2, 2020
b25c917
New translations meta.yml (Japanese)
ninaszymor Mar 2, 2020
84d0d8a
New translations .keep (Japanese)
ninaszymor Mar 2, 2020
cb4a634
New translations step_1.md (Italian)
ninaszymor Mar 2, 2020
a1318e9
New translations meta.yml (Italian)
ninaszymor Mar 2, 2020
2e5c560
New translations .keep (Italian)
ninaszymor Mar 2, 2020
f0e1863
New translations step_1.md (Hungarian)
ninaszymor Mar 2, 2020
de044ac
New translations meta.yml (Hungarian)
ninaszymor Mar 2, 2020
2e42128
New translations .keep (Hungarian)
ninaszymor Mar 2, 2020
35ff33e
New translations meta.yml (Hebrew)
ninaszymor Mar 2, 2020
789b4d5
New translations .keep (German)
ninaszymor Mar 2, 2020
718db15
New translations .keep (Hebrew)
ninaszymor Mar 2, 2020
212e0ce
New translations step_1.md (Finnish)
ninaszymor Mar 2, 2020
60fddd7
New translations meta.yml (Finnish)
ninaszymor Mar 2, 2020
223bded
New translations .keep (Finnish)
ninaszymor Mar 2, 2020
895b045
New translations step_1.md (Greek)
ninaszymor Mar 2, 2020
e811040
New translations meta.yml (Greek)
ninaszymor Mar 2, 2020
6b42e6f
New translations .keep (Greek)
ninaszymor Mar 2, 2020
9379d2e
New translations step_1.md (German)
ninaszymor Mar 2, 2020
4741b97
New translations meta.yml (German)
ninaszymor Mar 2, 2020
b3c524a
New translations step_1.md (Portuguese, Brazilian)
ninaszymor Mar 2, 2020
c4a67fe
New translations step_1.md (Dutch)
majamanojlovic Apr 16, 2020
69c666f
New translations meta.yml (Dutch)
majamanojlovic Apr 16, 2020
dce542c
New translations .keep (Spanish, Latin America)
majamanojlovic Jun 12, 2020
6843bd0
New translations meta.yml (Spanish, Latin America)
majamanojlovic Jun 12, 2020
a017ce0
New translations step_1.md (Spanish, Latin America)
majamanojlovic Jun 12, 2020
26de1e3
New translations meta.yml (Japanese)
majamanojlovic Jul 9, 2020
fbc6058
New translations step_1.md (Hindi)
majamanojlovic Jul 9, 2020
9ff510a
New translations .keep (Hindi)
majamanojlovic Jul 9, 2020
853126b
New translations meta.yml (Hindi)
majamanojlovic Jul 9, 2020
6777a58
New translations step_1.md (Japanese)
majamanojlovic Jul 9, 2020
ca47c22
New translations step_1.md (Greek)
majamanojlovic Jul 9, 2020
4e6c27a
New translations meta.yml (Greek)
majamanojlovic Jul 9, 2020
73ccba5
New translations step_1.md (Arabic)
majamanojlovic Jul 9, 2020
a02e5e7
New translations meta.yml (Arabic)
majamanojlovic Jul 9, 2020
8bb1ac8
New translations step_1.md (French)
majamanojlovic Jul 9, 2020
3323ff3
New translations meta.yml (French)
majamanojlovic Jul 9, 2020
a8f7954
New translations meta.yml (Portuguese, Brazilian)
majamanojlovic Jul 10, 2020
155d8d6
New translations step_1.md (Portuguese, Brazilian)
majamanojlovic Jul 10, 2020
b2ee90b
New translations step_1.md (German)
majamanojlovic Jul 13, 2020
dd171fd
New translations meta.yml (German)
majamanojlovic Jul 13, 2020
91df86f
New translations step_1.md (German)
majamanojlovic Jul 13, 2020
0a431bb
New translations step_1.md (Korean)
majamanojlovic Jul 23, 2020
0a54bbe
New translations step_1.md (Ukrainian)
majamanojlovic Jul 23, 2020
4b08774
New translations meta.yml (Ukrainian)
majamanojlovic Jul 23, 2020
d67abd1
New translations meta.yml (Korean)
majamanojlovic Jul 23, 2020
159a530
New translations step_1.md (Greek)
majamanojlovic Jul 23, 2020
8fdf810
New translations meta.yml (Spanish)
majamanojlovic Jul 27, 2020
5d23b9d
New translations step_1.md (Spanish)
majamanojlovic Jul 27, 2020
ea24357
New translations step_1.md (Russian)
majamanojlovic Dec 17, 2020
bdc4247
New translations meta.yml (Russian)
majamanojlovic Dec 17, 2020
87c1572
New translations step_1.md (German)
majamanojlovic Dec 17, 2020
226e372
New translations meta.yml (Italian)
sashamishcheriakova Apr 22, 2025
e8f4257
New translations step_1.md (Italian)
sashamishcheriakova Apr 22, 2025
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
15 changes: 15 additions & 0 deletions af-ZA/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: Randomness in Python
hero_image: images/banner.png
description: How to use the random module from the Python standard library
original_url:
theme: cc-prototype
duration: 1
listed: false
ingredient: true
copyedit: true
interests:
technology: "python"
steps:
-
title: The random module
1 change: 1 addition & 0 deletions af-ZA/solutions/.keep
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

29 changes: 29 additions & 0 deletions af-ZA/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
One of the standard modules in Python is the `random` module. You can use it to create pseudo-random numbers in your code.

### randint

You can generate random integers between two values using the `randint` function. For example, the following line of code will produce a random integer between 0 and 10 (inclusive).

```python
from random import randint
num = randint(0,10)
```

### uniform

If you want a random floating-point number (also called float), you can use the `uniform` function. For example, the following line of code will produce a random float that's equal to or greater than 0, but less than 10.

```python
from random import uniform
num = uniform(0,10)
```

### choice

If you want to choose a random item from a list, you can use the `choice` function.

```python
from random import choice
deck = ['Ace', 'King', 'Queen', 'Jack']
card = choice(deck)
```
15 changes: 15 additions & 0 deletions ar-SA/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: العشوائية في Python
hero_image: images/banner.png
description: كيفية استخدام الوحدة العشوائية من مكتبة Python القياسية
original_url:
theme: cc-prototype
duration: 1
listed: false
ingredient: true
copyedit: true
interests:
technology: "python"
steps:
-
title: الوحدة العشوائية
1 change: 1 addition & 0 deletions ar-SA/solutions/.keep
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

29 changes: 29 additions & 0 deletions ar-SA/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
إحدى الوحدات القياسية في Python هي وحدة ` عشوائي `. يمكنك استخدامه لإنشاء أرقام عشوائية مزيفة في التعليمات البرمجية الخاصة بك.

### randint

يمكنك إنشاء أعداد صحيحة عشوائية بين قيمتين باستخدام دالة `randint`. على سبيل المثال، السطر التالي من التعليمات البرمجية سينتج عدداً صحيحاً عشوائياً بين 0 و 10 (ضمنياً).

```python
from random import randint
الرقم = randint(0,10)
```

### uniform

إذا كنت ترغب في رقم عشوائي (عشري) ، يمكنك استخدام دالة `uniform`. على سبيل المثال، السطر التالي من التعليمات البرمجية سينتج ارقام عشرية عشوائية أكبر او تساوي 0 ، ولكن أقل من 10.

```python
from random import uniform
الرقم = uniform(0,10)
```

### choice

إذا كنت ترغب في اختيار عنصر عشوائي من قائمة ، يمكنك استخدام دالة `choice`.

```python
from random import choice
deck = ['الآيس', 'ملك', 'ملكة', 'جاك']
بطاقة= choice(deck)
```
15 changes: 15 additions & 0 deletions ca-ES/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: Randomness in Python
hero_image: images/banner.png
description: How to use the random module from the Python standard library
original_url:
theme: cc-prototype
duration: 1
listed: false
ingredient: true
copyedit: true
interests:
technology: "python"
steps:
-
title: The random module
1 change: 1 addition & 0 deletions ca-ES/solutions/.keep
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

29 changes: 29 additions & 0 deletions ca-ES/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
One of the standard modules in Python is the `random` module. You can use it to create pseudo-random numbers in your code.

### randint

You can generate random integers between two values using the `randint` function. For example, the following line of code will produce a random integer between 0 and 10 (inclusive).

```python
from random import randint
num = randint(0,10)
```

### uniform

If you want a random floating-point number (also called float), you can use the `uniform` function. For example, the following line of code will produce a random float that's equal to or greater than 0, but less than 10.

```python
from random import uniform
num = uniform(0,10)
```

### choice

If you want to choose a random item from a list, you can use the `choice` function.

```python
from random import choice
deck = ['Ace', 'King', 'Queen', 'Jack']
card = choice(deck)
```
15 changes: 15 additions & 0 deletions cs-CZ/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: Randomness in Python
hero_image: images/banner.png
description: How to use the random module from the Python standard library
original_url:
theme: cc-prototype
duration: 1
listed: false
ingredient: true
copyedit: true
interests:
technology: "python"
steps:
-
title: The random module
1 change: 1 addition & 0 deletions cs-CZ/solutions/.keep
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

29 changes: 29 additions & 0 deletions cs-CZ/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
One of the standard modules in Python is the `random` module. You can use it to create pseudo-random numbers in your code.

### randint

You can generate random integers between two values using the `randint` function. For example, the following line of code will produce a random integer between 0 and 10 (inclusive).

```python
from random import randint
num = randint(0,10)
```

### uniform

If you want a random floating-point number (also called float), you can use the `uniform` function. For example, the following line of code will produce a random float that's equal to or greater than 0, but less than 10.

```python
from random import uniform
num = uniform(0,10)
```

### choice

If you want to choose a random item from a list, you can use the `choice` function.

```python
from random import choice
deck = ['Ace', 'King', 'Queen', 'Jack']
card = choice(deck)
```
15 changes: 15 additions & 0 deletions da-DK/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: Randomness in Python
hero_image: images/banner.png
description: How to use the random module from the Python standard library
original_url:
theme: cc-prototype
duration: 1
listed: false
ingredient: true
copyedit: true
interests:
technology: "python"
steps:
-
title: The random module
1 change: 1 addition & 0 deletions da-DK/solutions/.keep
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

29 changes: 29 additions & 0 deletions da-DK/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
One of the standard modules in Python is the `random` module. You can use it to create pseudo-random numbers in your code.

### randint

You can generate random integers between two values using the `randint` function. For example, the following line of code will produce a random integer between 0 and 10 (inclusive).

```python
from random import randint
num = randint(0,10)
```

### uniform

If you want a random floating-point number (also called float), you can use the `uniform` function. For example, the following line of code will produce a random float that's equal to or greater than 0, but less than 10.

```python
from random import uniform
num = uniform(0,10)
```

### choice

If you want to choose a random item from a list, you can use the `choice` function.

```python
from random import choice
deck = ['Ace', 'King', 'Queen', 'Jack']
card = choice(deck)
```
15 changes: 15 additions & 0 deletions de-DE/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: Zufall in Python
hero_image: images/banner.png
description: Wie man das Zufallsmodul aus der Python-Standardbibliothek nutzt
original_url:
theme: cc-prototype
duration: 1
listed: false
ingredient: true
copyedit: true
interests:
technology: "python"
steps:
-
title: Das Zufallsmodul
1 change: 1 addition & 0 deletions de-DE/solutions/.keep
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

29 changes: 29 additions & 0 deletions de-DE/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
Eines der Standardmodule in Python ist das `random` (Zufalls) -Modul. Du kannst es verwenden, um pseudo-zufällige Zahlen in deinem Code zu erstellen.

### randint

Du kannst zufällige Ganzzahlen zwischen zwei Werten generieren, indem du die `randint` Funktion verwendest. Zum Beispiel erzeugt die folgende Codezeile eine zufällige Ganzzahl zwischen 0 und 10 (inklusive).

```python
from random import randint
num = randint(0,10)
```

### uniform

Wenn du eine zufällige Fließkommazahl (auch float genannt) haben willst, kannst du die `uniform` Funktion verwenden. Zum Beispiel erzeugt die folgende Codezeile eine zufällige Fließkommazahl, die gleich oder größer als 0, aber kleiner als 10 ist.

```python
from random import uniform
num = uniform(0,10)
```

### choice

Wenn du ein zufälliges Element aus einer Liste auswählen möchtest, kannst du die `choice` Funktion verwenden.

```python
from random import choice
deck = ['Ass', 'Koenig', 'Dame', 'Bube']
karte = choice(deck)
```
15 changes: 15 additions & 0 deletions el-GR/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: Τυχαιότητα στην Python
hero_image: images/banner.png
description: Πώς να χρησιμοποιήσεις το τυχαίο άρθρωμα από την τυπική βιβλιοθήκη της Python
original_url:
theme: cc-prototype
duration: 1
listed: false
ingredient: true
copyedit: true
interests:
technology: "python"
steps:
-
title: Το τυχαίο άρθρωμα
1 change: 1 addition & 0 deletions el-GR/solutions/.keep
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

29 changes: 29 additions & 0 deletions el-GR/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
Ένα από τα τυπικά modules στην Python είναι το module `random` (τυχαίο). Μπορείς να τo χρησιμοποιήσεις για να δημιουργήσεις ψευδο-τυχαίους αριθμούς στον κώδικά σου.

### randint

Μπορείς να δημιουργήσεις τυχαίους ακέραιους αριθμούς μεταξύ δύο τιμών χρησιμοποιώντας την συνάρτηση `randint`. Για παράδειγμα, η ακόλουθη γραμμή κώδικα θα παράγει έναν τυχαίο ακέραιο μεταξύ 0 και 10 (συμπεριλαμβανομένου του 10).

```python
from random import randint
num = randint(0,10)
```

### uniform

Εάν θέλεις έναν τυχαίο αριθμό κινητής υποδιαστολής (που ονομάζεται επίσης float), μπορείς να χρησιμοποιήσεις την συνάρτηση `uniform`. Για παράδειγμα, η ακόλουθη γραμμή κώδικα θα παράγει ένα τυχαίο float ίσο ή μεγαλύτερο από 0, αλλά μικρότερο από 10.

```python
from random import uniform
num = uniform(0,10)
```

### choice

Εάν θέλεις να επιλέξεις ένα τυχαίο στοιχείο από μια λίστα, μπορείς να χρησιμοποιήσεις την συνάρτηση `choice`.

```python
from random import choice
deck = ['Ace', 'King', 'Queen', 'Jack']
card = choice(deck)
```
15 changes: 15 additions & 0 deletions en-US/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: Randomness in Python
hero_image: images/banner.png
description: How to use the random module from the Python standard library
original_url:
theme: cc-prototype
duration: 1
listed: false
ingredient: true
copyedit: true
interests:
technology: "python"
steps:
-
title: The random module
1 change: 1 addition & 0 deletions en-US/solutions/.keep
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

29 changes: 29 additions & 0 deletions en-US/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
One of the standard modules in Python is the `random` module. You can use it to create pseudo-random numbers in your code.

### randint

You can generate random integers between two values using the `randint` function. For example, the following line of code will produce a random integer between 0 and 10 (inclusive).

```python
from random import randint
num = randint(0,10)
```

### uniform

If you want a random floating-point number (also called float), you can use the `uniform` function. For example, the following line of code will produce a random float that's equal to or greater than 0, but less than 10.

```python
from random import uniform
num = uniform(0,10)
```

### choice

If you want to choose a random item from a list, you can use the `choice` function.

```python
from random import choice
deck = ['Ace', 'King', 'Queen', 'Jack']
card = choice(deck)
```
15 changes: 15 additions & 0 deletions es-ES/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: Aleatoriedad en Python
hero_image: images/banner.png
description: Cómo usar el módulo aleatorio de la biblioteca estándar de Python
original_url:
theme: cc-prototype
duration: 1
listed: false
ingredient: true
copyedit: true
interests:
technology: "python"
steps:
-
title: El módulo aleatorio
Loading