Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
170 commits
Select commit Hold shift + click to select a range
024b303
New translations meta.yml (Romanian)
ninaszymor Aug 6, 2018
1fd976f
New translations meta.yml (Indonesian)
ninaszymor Aug 6, 2018
5b3a7cc
New translations meta.yml (Slovak)
ninaszymor Aug 6, 2018
06aa404
New translations step_1.md (Slovak)
ninaszymor Aug 6, 2018
95b4a87
New translations meta.yml (Serbian (Cyrillic))
ninaszymor Aug 6, 2018
2f1e69a
New translations step_1.md (Serbian (Cyrillic))
ninaszymor Aug 6, 2018
c71ed48
New translations meta.yml (Ukrainian)
ninaszymor Aug 6, 2018
b72fc92
New translations step_1.md (Ukrainian)
ninaszymor Aug 6, 2018
0824968
New translations meta.yml (Chinese Simplified)
ninaszymor Aug 6, 2018
44b18b1
New translations step_1.md (Chinese Simplified)
ninaszymor Aug 6, 2018
26b5e0d
New translations meta.yml (Chinese Traditional)
ninaszymor Aug 6, 2018
8447ce4
New translations step_1.md (Chinese Traditional)
ninaszymor Aug 6, 2018
c721122
New translations meta.yml (Portuguese, Brazilian)
ninaszymor Aug 6, 2018
a92d92f
New translations step_1.md (Portuguese, Brazilian)
ninaszymor Aug 6, 2018
84b925f
New translations step_1.md (Indonesian)
ninaszymor Aug 6, 2018
376db6e
New translations meta.yml (Russian)
ninaszymor Aug 6, 2018
e623159
New translations meta.yml (Bengali)
ninaszymor Aug 6, 2018
66081e7
New translations step_1.md (Bengali)
ninaszymor Aug 6, 2018
9aa5c8a
New translations meta.yml (Croatian)
ninaszymor Aug 6, 2018
859fcca
New translations step_1.md (Croatian)
ninaszymor Aug 6, 2018
6cdb56c
New translations meta.yml (Hindi)
ninaszymor Aug 6, 2018
b3b8574
New translations step_1.md (Hindi)
ninaszymor Aug 6, 2018
9551a67
New translations meta.yml (French, Canada)
ninaszymor Aug 6, 2018
eadef15
New translations step_1.md (French, Canada)
ninaszymor Aug 6, 2018
2fc33e0
New translations meta.yml (Welsh)
ninaszymor Aug 6, 2018
30ec2af
New translations step_1.md (Welsh)
ninaszymor Aug 6, 2018
aa51f90
New translations meta.yml (Montenegrin (Latin))
ninaszymor Aug 6, 2018
d85a456
New translations step_1.md (Montenegrin (Latin))
ninaszymor Aug 6, 2018
b202983
New translations meta.yml (Spanish, Latin America)
ninaszymor Aug 6, 2018
5077315
New translations step_1.md (Russian)
ninaszymor Aug 6, 2018
9d4c6ac
New translations step_1.md (Portuguese)
ninaszymor Aug 6, 2018
36df250
New translations step_1.md (Romanian)
ninaszymor Aug 6, 2018
6ae0bce
New translations step_1.md (German)
ninaszymor Aug 6, 2018
e4f7c72
New translations meta.yml (French)
ninaszymor Aug 6, 2018
4dce652
New translations step_1.md (French)
ninaszymor Aug 6, 2018
963f9f0
New translations meta.yml (Spanish)
ninaszymor Aug 6, 2018
6130c93
New translations step_1.md (Spanish)
ninaszymor Aug 6, 2018
25128e4
New translations meta.yml (Arabic)
ninaszymor Aug 6, 2018
4ac432b
New translations step_1.md (Arabic)
ninaszymor Aug 6, 2018
5338e9e
New translations meta.yml (Catalan)
ninaszymor Aug 6, 2018
2bae5a0
New translations step_1.md (Catalan)
ninaszymor Aug 6, 2018
c20b703
New translations meta.yml (Czech)
ninaszymor Aug 6, 2018
fbe7d68
New translations step_1.md (Czech)
ninaszymor Aug 6, 2018
2541038
New translations meta.yml (Danish)
ninaszymor Aug 6, 2018
3fcbee1
New translations step_1.md (Danish)
ninaszymor Aug 6, 2018
2ec68d3
New translations meta.yml (German)
ninaszymor Aug 6, 2018
9dd5d72
New translations meta.yml (Greek)
ninaszymor Aug 6, 2018
425a0c3
New translations meta.yml (Portuguese)
ninaszymor Aug 6, 2018
e836e57
New translations step_1.md (Greek)
ninaszymor Aug 6, 2018
359e093
New translations meta.yml (Hebrew)
ninaszymor Aug 6, 2018
5eca8a4
New translations step_1.md (Hebrew)
ninaszymor Aug 6, 2018
2d02d55
New translations meta.yml (Italian)
ninaszymor Aug 6, 2018
7dde917
New translations step_1.md (Italian)
ninaszymor Aug 6, 2018
f833bc2
New translations meta.yml (Japanese)
ninaszymor Aug 6, 2018
288ddfd
New translations step_1.md (Japanese)
ninaszymor Aug 6, 2018
acb2d4c
New translations meta.yml (Korean)
ninaszymor Aug 6, 2018
3939b16
New translations step_1.md (Korean)
ninaszymor Aug 6, 2018
c47a92b
New translations meta.yml (Dutch)
ninaszymor Aug 6, 2018
767e456
New translations step_1.md (Dutch)
ninaszymor Aug 6, 2018
58a4f8f
New translations meta.yml (Polish)
ninaszymor Aug 6, 2018
74baf90
New translations step_1.md (Polish)
ninaszymor Aug 6, 2018
67d044c
New translations step_1.md (Spanish, Latin America)
ninaszymor Aug 6, 2018
65c9d94
New translations meta.yml (Afrikaans)
ninaszymor Aug 8, 2018
4d2fa55
New translations step_1.md (Afrikaans)
ninaszymor Aug 8, 2018
89d5f8f
New translations meta.yml (Dutch)
ninaszymor Sep 4, 2018
593234f
New translations step_1.md (Dutch)
ninaszymor Sep 4, 2018
27ef738
New translations meta.yml (Portuguese, Brazilian)
ninaszymor Sep 4, 2018
da6a56e
New translations step_1.md (Portuguese, Brazilian)
ninaszymor Sep 4, 2018
9b2f8af
New translations meta.yml (Norwegian)
raspberrypitranslationsbot Nov 1, 2018
81b189a
New translations step_1.md (Norwegian)
raspberrypitranslationsbot Nov 1, 2018
aaee285
New translations meta.yml (Arabic)
raspberrypitranslationsbot Nov 1, 2018
3107db2
New translations step_1.md (Arabic)
raspberrypitranslationsbot Nov 1, 2018
2f9769a
New translations step_1.md (Turkish)
majamanojlovic May 3, 2019
a3f3384
New translations step_1.md (Vietnamese)
majamanojlovic May 3, 2019
4a50a8b
New translations meta.yml (Vietnamese)
majamanojlovic May 3, 2019
3113f95
New translations meta.yml (Turkish)
majamanojlovic May 3, 2019
68b7718
New translations step_1.md (Swedish)
majamanojlovic May 3, 2019
a28004e
New translations meta.yml (Swedish)
majamanojlovic May 3, 2019
b8dca01
New translations meta.yml (English)
majamanojlovic May 3, 2019
1a1b70f
New translations step_1.md (Hungarian)
majamanojlovic May 3, 2019
ba26ba4
New translations meta.yml (Hungarian)
majamanojlovic May 3, 2019
93268e2
New translations step_1.md (English)
majamanojlovic May 3, 2019
bb28f9f
New translations step_1.md (Finnish)
majamanojlovic May 3, 2019
fba364a
New translations meta.yml (Finnish)
majamanojlovic May 3, 2019
474774e
New translations meta.yml (Norwegian)
ninaszymor Aug 9, 2019
6227a72
New translations step_1.md (Norwegian)
ninaszymor Aug 9, 2019
fb2c6a5
New translations step_1.md (Igbo)
ninaszymor Aug 9, 2019
ed5aa95
New translations meta.yml (Igbo)
ninaszymor Aug 9, 2019
6c00247
New translations step_1.md (Dutch)
ninaszymor Aug 9, 2019
12226c9
New translations meta.yml (Sinhala)
ninaszymor Aug 9, 2019
21f847a
New translations step_1.md (Sinhala)
ninaszymor Aug 9, 2019
c4f53f1
New translations meta.yml (Romanian)
ninaszymor Aug 14, 2019
944d664
New translations meta.yml (Romanian)
ninaszymor Aug 19, 2019
f7f4ed2
New translations step_1.md (Romanian)
ninaszymor Aug 19, 2019
159ee7f
New translations step_1.md (Romanian)
ninaszymor Aug 19, 2019
0a7a5b6
New translations meta.yml (Croatian)
ninaszymor Oct 8, 2019
7d6e4a4
New translations meta.yml (German)
ninaszymor Oct 8, 2019
b0b0446
New translations meta.yml (Spanish)
ninaszymor Oct 8, 2019
367deb6
New translations step_1.md (Spanish)
ninaszymor Oct 8, 2019
adf8e53
New translations meta.yml (German)
ninaszymor Oct 15, 2019
4eda044
New translations meta.yml (German)
ninaszymor Oct 15, 2019
294565a
New translations step_1.md (German)
ninaszymor Oct 15, 2019
4e3aa87
New translations meta.yml (Croatian)
majamanojlovic Nov 7, 2019
5e759ca
New translations step_1.md (Croatian)
majamanojlovic Nov 7, 2019
8d4cb93
New translations meta.yml (Korean)
majamanojlovic Nov 7, 2019
b22555b
New translations meta.yml (Polish)
majamanojlovic Nov 7, 2019
1efa66f
New translations step_1.md (Polish)
majamanojlovic Nov 7, 2019
987868d
New translations meta.yml (Korean)
majamanojlovic Nov 13, 2019
d051213
New translations step_1.md (Korean)
majamanojlovic Nov 13, 2019
1e7311f
New translations meta.yml (Greek)
majamanojlovic Jan 13, 2020
b32e35f
New translations step_1.md (Greek)
majamanojlovic Jan 13, 2020
9b76c2a
New translations meta.yml (Portuguese)
majamanojlovic Jan 13, 2020
d430433
New translations step_1.md (Portuguese)
majamanojlovic Jan 13, 2020
1c1d2ac
New translations meta.yml (Turkish)
majamanojlovic Jan 13, 2020
9070e13
New translations meta.yml (Ukrainian)
majamanojlovic Jan 13, 2020
db0ca63
New translations step_1.md (Ukrainian)
majamanojlovic Jan 13, 2020
0140ce8
New translations meta.yml (Afrikaans)
majamanojlovic Jan 20, 2020
66648c3
New translations meta.yml (Russian)
majamanojlovic Jan 20, 2020
0f9fb3f
New translations meta.yml (Montenegrin (Latin))
majamanojlovic Jan 20, 2020
7589c2f
New translations meta.yml (Norwegian)
majamanojlovic Jan 20, 2020
4ee66b6
New translations meta.yml (Portuguese, Brazilian)
majamanojlovic Jan 20, 2020
55fc66f
New translations meta.yml (Romanian)
majamanojlovic Jan 20, 2020
4a2cff8
New translations meta.yml (Serbian (Cyrillic))
majamanojlovic Jan 20, 2020
18a5ada
New translations meta.yml (Italian)
majamanojlovic Jan 20, 2020
245883b
New translations meta.yml (Sinhala)
majamanojlovic Jan 20, 2020
b1c7e3f
New translations meta.yml (Slovak)
majamanojlovic Jan 20, 2020
4cbf309
New translations meta.yml (Swedish)
majamanojlovic Jan 20, 2020
b7481e2
New translations meta.yml (Vietnamese)
majamanojlovic Jan 20, 2020
edac4ad
New translations meta.yml (Welsh)
majamanojlovic Jan 20, 2020
b8b67ea
New translations meta.yml (Japanese)
majamanojlovic Jan 20, 2020
f760578
New translations meta.yml (Indonesian)
majamanojlovic Jan 20, 2020
bbb28da
New translations meta.yml (Arabic)
majamanojlovic Jan 20, 2020
67b965f
New translations meta.yml (Dutch)
majamanojlovic Jan 20, 2020
29336f0
New translations meta.yml (Bengali)
majamanojlovic Jan 20, 2020
be7b2cd
New translations meta.yml (Catalan)
majamanojlovic Jan 20, 2020
b3f80b2
New translations meta.yml (Chinese Simplified)
majamanojlovic Jan 20, 2020
2a81b27
New translations meta.yml (Chinese Traditional)
majamanojlovic Jan 20, 2020
249dbec
New translations meta.yml (Czech)
majamanojlovic Jan 20, 2020
a7d3632
New translations meta.yml (Danish)
majamanojlovic Jan 20, 2020
58a1e8c
New translations meta.yml (English)
majamanojlovic Jan 20, 2020
cd858e0
New translations meta.yml (Igbo)
majamanojlovic Jan 20, 2020
ed8e967
New translations meta.yml (Finnish)
majamanojlovic Jan 20, 2020
cb8b3f9
New translations meta.yml (French)
majamanojlovic Jan 20, 2020
2aa08ab
New translations meta.yml (French, Canada)
majamanojlovic Jan 20, 2020
745f621
New translations meta.yml (Hebrew)
majamanojlovic Jan 20, 2020
a014bb4
New translations meta.yml (Hindi)
majamanojlovic Jan 20, 2020
d0832f8
New translations meta.yml (Hungarian)
majamanojlovic Jan 20, 2020
813dba9
New translations meta.yml (Spanish, Latin America)
majamanojlovic Jan 20, 2020
38992b8
New translations meta.yml (Turkish)
ninaszymor Mar 13, 2020
c90ac12
New translations step_1.md (Turkish)
ninaszymor Mar 13, 2020
ab7f161
New translations meta.yml (Chinese Simplified)
majamanojlovic Apr 22, 2020
1e860f8
New translations step_1.md (Chinese Simplified)
majamanojlovic Apr 22, 2020
458cb4e
New translations step_1.md (Spanish, Latin America)
majamanojlovic Apr 22, 2020
77d3f9f
New translations meta.yml (Chinese Traditional)
majamanojlovic May 28, 2020
404ee8b
New translations step_1.md (Chinese Traditional)
majamanojlovic May 28, 2020
f75d60f
New translations step_1.md (Ukrainian)
majamanojlovic May 28, 2020
f1be53d
New translations step_1.md (Filipino)
majamanojlovic May 28, 2020
dd722a9
New translations meta.yml (Spanish, Latin America)
majamanojlovic May 28, 2020
349e859
New translations meta.yml (Filipino)
majamanojlovic May 28, 2020
cfd3bb6
New translations step_1.md (Hindi)
majamanojlovic May 28, 2020
f2c15af
New translations meta.yml (Hindi)
majamanojlovic May 28, 2020
b536a0d
New translations step_1.md (Hindi)
majamanojlovic May 28, 2020
ebb80e3
New translations meta.yml (Marathi)
ninaszymor Jul 22, 2020
02fbf52
New translations step_1.md (Marathi)
ninaszymor Jul 22, 2020
74c332a
New translations meta.yml (Kannada)
ninaszymor Jul 22, 2020
f5bce37
New translations step_1.md (Kannada)
ninaszymor Jul 22, 2020
e8c88d6
New translations step_1.md (French)
majamanojlovic Oct 6, 2020
a13f59d
New translations meta.yml (French)
majamanojlovic Oct 6, 2020
8317491
New translations meta.yml (Japanese)
majamanojlovic Dec 3, 2020
cc659f6
New translations step_1.md (Japanese)
majamanojlovic Dec 3, 2020
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: Writing text with Python turtle
hero_image: images/banner.png
description: Writing text with Python turtle
original_url:
theme: cc-prototype
duration: 1 #1, 2 or 3
listed: false
ingredient: true
copyedit: false
interests: "graphics"
technologies: "python, turtle"
steps:
-
title: Writing text
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 @@
You can use a turtle to write text.

```python
turtle.write('Hello!')
```

Set the turtle's color to create coloured text:

```python
turtle.color('deep pink')
turtle.write('Hello!')
```

You can also change the font and alignment of the text.

```python
style = ('Courier', 30, 'italic')
turtle.write('Hello!', font=style, align='center')
```

The font is a tuple containing:

+ The font name such as 'Arial', 'Courier', or 'Times New Roman'
+ The font size in pixels
+ The font type, which can be 'normal', 'bold', or 'italic'

To set the alignment which controls how the text is positioned based on the position of the turtle, use the `align` parameter. `align` can be set to one of these options: 'left', 'center', 'right'

Example: <iframe src="https://trinket.io/embed/python/52378ec006?start=result" width="100%" height="600" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen mark="crwd-mark"></iframe>
12 changes: 7 additions & 5 deletions ar-SA/meta.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
title: كتابة نص باستخدام سلحفاة Python
---
title: كتابة نص باستخدام Python turtle
hero_image: images/banner.png
description: كتابة نص باستخدام سلحفاة Python
original_url:
description: كتابة نص باستخدام Python turtle
original_url:
theme: cc-prototype
duration: 1 # 1, 2 or 3
duration: 1 #1, 2 or 3
listed: false
ingredient: true
copyedit: false
interests: "graphics"
technologies: "python, turtle"
steps:
- title: كتابة نص
-
title: كتابة نص
32 changes: 16 additions & 16 deletions ar-SA/step_1.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
يمكنك استخدام السلحفاة لكتابة نص.
يمكنك استخدام turtle لكتابة النص.

```
turtle.write('Hello!')
```python
turtle.write('مرحباً!')
```

عيِّن لون السلحفاة لتنشئ نصًا ملونًا:
اضبط لون turtle لإنشاء نص ملون:

```
```python
turtle.color('deep pink')
turtle.write('Hello!')
turtle.write('مرحباً!')
```

يمكنك أيضًا تغيير خط النص ومحاذاته.
يمكنك أيضًا تغيير نوع الخط ومحاذاة النص.

```
```python
style = ('Courier', 30, 'italic')
turtle.write('Hello!', font=style, align='center')
turtle.write('مرحباً!', font=style, align='center')
```

يكون الخط عبارة عن مجموعة بيانات مترابطة تحتوي على:
+ اسم الخط، مثل 'Arial' أو 'Courier' أو 'Times New Roman'
+ حجم الخط بوحدة البكسل
+ نوع الخط، ويمكن أن يكون 'normal' أو 'bold' أو 'italic'
نوع الخط هو مجموعة تحتوي على:

+ اسم الخط مثل "Arial" أو "Courier" أو "Times New Roman"
+ حجم الخط بالبكسل
+ نمط الخط ، الذي يمكن أن يكون "طبيعيًا" أو "غامقًا" أو "مائل"

لتعيين المحاذاة التي تحدد موضع النص وفقًا لموضع السلحفاة، استخدم المَعلمة `align`. ويمكن تعيين المَعلمة `align` إلى أحد الخيارات التالية: 'left', 'center', 'right'
لضبط المحاذاة التي تُحدد موضع النص وفقًا لموضع السلحفاة، استخدم المتغير `align`. المتغير `align` يمكن أن يأخذ أحد القيم التالية: "left"، و"center"، و"right"

مثال:
<iframe src="https://trinket.io/embed/python/52378ec006?start=result" width="100%" height="600" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe>
مثال: <iframe src="https://trinket.io/embed/python/52378ec006?start=result" width="100%" height="600" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen mark="crwd-mark"></iframe>
15 changes: 15 additions & 0 deletions bn-BD/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: Writing text with Python turtle
hero_image: images/banner.png
description: Writing text with Python turtle
original_url:
theme: cc-prototype
duration: 1 #1, 2 or 3
listed: false
ingredient: true
copyedit: false
interests: "graphics"
technologies: "python, turtle"
steps:
-
title: Writing text
29 changes: 29 additions & 0 deletions bn-BD/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
You can use a turtle to write text.

```python
turtle.write('Hello!')
```

Set the turtle's color to create coloured text:

```python
turtle.color('deep pink')
turtle.write('Hello!')
```

You can also change the font and alignment of the text.

```python
style = ('Courier', 30, 'italic')
turtle.write('Hello!', font=style, align='center')
```

The font is a tuple containing:

+ The font name such as 'Arial', 'Courier', or 'Times New Roman'
+ The font size in pixels
+ The font type, which can be 'normal', 'bold', or 'italic'

To set the alignment which controls how the text is positioned based on the position of the turtle, use the `align` parameter. `align` can be set to one of these options: 'left', 'center', 'right'

Example: <iframe src="https://trinket.io/embed/python/52378ec006?start=result" width="100%" height="600" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen mark="crwd-mark"></iframe>
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: Writing text with Python turtle
hero_image: images/banner.png
description: Writing text with Python turtle
original_url:
theme: cc-prototype
duration: 1 #1, 2 or 3
listed: false
ingredient: true
copyedit: false
interests: "graphics"
technologies: "python, turtle"
steps:
-
title: Writing text
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 @@
You can use a turtle to write text.

```python
turtle.write('Hello!')
```

Set the turtle's color to create coloured text:

```python
turtle.color('deep pink')
turtle.write('Hello!')
```

You can also change the font and alignment of the text.

```python
style = ('Courier', 30, 'italic')
turtle.write('Hello!', font=style, align='center')
```

The font is a tuple containing:

+ The font name such as 'Arial', 'Courier', or 'Times New Roman'
+ The font size in pixels
+ The font type, which can be 'normal', 'bold', or 'italic'

To set the alignment which controls how the text is positioned based on the position of the turtle, use the `align` parameter. `align` can be set to one of these options: 'left', 'center', 'right'

Example: <iframe src="https://trinket.io/embed/python/52378ec006?start=result" width="100%" height="600" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen mark="crwd-mark"></iframe>
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: Writing text with Python turtle
hero_image: images/banner.png
description: Writing text with Python turtle
original_url:
theme: cc-prototype
duration: 1 #1, 2 or 3
listed: false
ingredient: true
copyedit: false
interests: "graphics"
technologies: "python, turtle"
steps:
-
title: Writing text
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 @@
You can use a turtle to write text.

```python
turtle.write('Hello!')
```

Set the turtle's color to create coloured text:

```python
turtle.color('deep pink')
turtle.write('Hello!')
```

You can also change the font and alignment of the text.

```python
style = ('Courier', 30, 'italic')
turtle.write('Hello!', font=style, align='center')
```

The font is a tuple containing:

+ The font name such as 'Arial', 'Courier', or 'Times New Roman'
+ The font size in pixels
+ The font type, which can be 'normal', 'bold', or 'italic'

To set the alignment which controls how the text is positioned based on the position of the turtle, use the `align` parameter. `align` can be set to one of these options: 'left', 'center', 'right'

Example: <iframe src="https://trinket.io/embed/python/52378ec006?start=result" width="100%" height="600" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen mark="crwd-mark"></iframe>
15 changes: 15 additions & 0 deletions cy-GB/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: Writing text with Python turtle
hero_image: images/banner.png
description: Writing text with Python turtle
original_url:
theme: cc-prototype
duration: 1 #1, 2 or 3
listed: false
ingredient: true
copyedit: false
interests: "graphics"
technologies: "python, turtle"
steps:
-
title: Writing text
29 changes: 29 additions & 0 deletions cy-GB/step_1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
You can use a turtle to write text.

```python
turtle.write('Hello!')
```

Set the turtle's color to create coloured text:

```python
turtle.color('deep pink')
turtle.write('Hello!')
```

You can also change the font and alignment of the text.

```python
style = ('Courier', 30, 'italic')
turtle.write('Hello!', font=style, align='center')
```

The font is a tuple containing:

+ The font name such as 'Arial', 'Courier', or 'Times New Roman'
+ The font size in pixels
+ The font type, which can be 'normal', 'bold', or 'italic'

To set the alignment which controls how the text is positioned based on the position of the turtle, use the `align` parameter. `align` can be set to one of these options: 'left', 'center', 'right'

Example: <iframe src="https://trinket.io/embed/python/52378ec006?start=result" width="100%" height="600" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen mark="crwd-mark"></iframe>
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: Writing text with Python turtle
hero_image: images/banner.png
description: Writing text with Python turtle
original_url:
theme: cc-prototype
duration: 1 #1, 2 or 3
listed: false
ingredient: true
copyedit: false
interests: "graphics"
technologies: "python, turtle"
steps:
-
title: Writing text
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 @@
You can use a turtle to write text.

```python
turtle.write('Hello!')
```

Set the turtle's color to create coloured text:

```python
turtle.color('deep pink')
turtle.write('Hello!')
```

You can also change the font and alignment of the text.

```python
style = ('Courier', 30, 'italic')
turtle.write('Hello!', font=style, align='center')
```

The font is a tuple containing:

+ The font name such as 'Arial', 'Courier', or 'Times New Roman'
+ The font size in pixels
+ The font type, which can be 'normal', 'bold', or 'italic'

To set the alignment which controls how the text is positioned based on the position of the turtle, use the `align` parameter. `align` can be set to one of these options: 'left', 'center', 'right'

Example: <iframe src="https://trinket.io/embed/python/52378ec006?start=result" width="100%" height="600" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen mark="crwd-mark"></iframe>
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: Schreiben von Text mit Python Turtle
hero_image: images/banner.png
description: Schreiben von Text mit Python Turtle
original_url:
theme: cc-prototype
duration: 1 #1, 2 or 3
listed: false
ingredient: true
copyedit: false
interests: "graphics"
technologies: "python, turtle"
steps:
-
title: Text schreiben
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 @@
Du kannst eine Schildkröte verwenden, um Text zu schreiben.

```python
turtle.write ('Hallo!')
```

Lege die Farbe der Schildkröte fest, um farbigen Text zu erstellen:

```python
turtle.color ('deep pink')
turtle.write ('Hallo!')
```

Du kannst auch die Schriftart und Ausrichtung des Textes ändern.

```python
style = ('Courier', 30, 'italic')
turtle.write ('Hallo!', font = style, align = 'center')
```

Die Schriftart ist ein Tupel mit:

+ Dem Schriftnamen wie 'Arial', 'Courier' oder 'Times New Roman'
+ Der Schriftgröße in Pixel
+ Der Schriftart, die normal ('normal'), fett ('bold') oder kursiv ('italic') sein kann

Um die Ausrichtung festzulegen, die die Position des Textes in Bezug zur Position der Schildkröte steuert, verwendest du den Parameter `align`. `align` kann auf eine der folgenden Optionen eingestellt werden: "left" (links), "center" (Mitte), "right" (rechts)

Beispiel: <iframe src="https://trinket.io/embed/python/52378ec006?start=result" width="100%" height="600" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen mark="crwd-mark"></iframe>
Loading