Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

📜 Content deduplication #5893

Merged
merged 1 commit into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2,690 changes: 66 additions & 2,624 deletions content/adventures/ar.yaml

Large diffs are not rendered by default.

3,282 changes: 88 additions & 3,194 deletions content/adventures/bg.yaml

Large diffs are not rendered by default.

3,160 changes: 21 additions & 3,139 deletions content/adventures/bn.yaml

Large diffs are not rendered by default.

3,015 changes: 95 additions & 2,920 deletions content/adventures/ca.yaml

Large diffs are not rendered by default.

2,962 changes: 49 additions & 2,913 deletions content/adventures/cs.yaml

Large diffs are not rendered by default.

3,736 changes: 95 additions & 3,641 deletions content/adventures/cy.yaml

Large diffs are not rendered by default.

3,503 changes: 29 additions & 3,474 deletions content/adventures/da.yaml

Large diffs are not rendered by default.

823 changes: 0 additions & 823 deletions content/adventures/de.yaml

Large diffs are not rendered by default.

3,364 changes: 42 additions & 3,322 deletions content/adventures/el.yaml

Large diffs are not rendered by default.

2,699 changes: 32 additions & 2,667 deletions content/adventures/eo.yaml

Large diffs are not rendered by default.

1,279 changes: 0 additions & 1,279 deletions content/adventures/es.yaml

Large diffs are not rendered by default.

3,203 changes: 33 additions & 3,170 deletions content/adventures/et.yaml

Large diffs are not rendered by default.

3,173 changes: 41 additions & 3,132 deletions content/adventures/fa.yaml

Large diffs are not rendered by default.

3,277 changes: 65 additions & 3,212 deletions content/adventures/fi.yaml

Large diffs are not rendered by default.

1,552 changes: 9 additions & 1,543 deletions content/adventures/fr.yaml

Large diffs are not rendered by default.

1,652 changes: 27 additions & 1,625 deletions content/adventures/fr_CA.yaml

Large diffs are not rendered by default.

3,186 changes: 72 additions & 3,114 deletions content/adventures/fy.yaml

Large diffs are not rendered by default.

3,161 changes: 46 additions & 3,115 deletions content/adventures/he.yaml

Large diffs are not rendered by default.

3,019 changes: 30 additions & 2,989 deletions content/adventures/hi.yaml

Large diffs are not rendered by default.

1,082 changes: 0 additions & 1,082 deletions content/adventures/hr.yaml

Large diffs are not rendered by default.

2,855 changes: 11 additions & 2,844 deletions content/adventures/hu.yaml

Large diffs are not rendered by default.

5,328 changes: 191 additions & 5,137 deletions content/adventures/ia.yaml

Large diffs are not rendered by default.

1,058 changes: 3 additions & 1,055 deletions content/adventures/iba.yaml

Large diffs are not rendered by default.

2,724 changes: 87 additions & 2,637 deletions content/adventures/id.yaml

Large diffs are not rendered by default.

2,898 changes: 0 additions & 2,898 deletions content/adventures/it.yaml

Large diffs are not rendered by default.

3,186 changes: 13 additions & 3,173 deletions content/adventures/ja.yaml

Large diffs are not rendered by default.

5,285 changes: 1 addition & 5,284 deletions content/adventures/kab.yaml

Large diffs are not rendered by default.

3,821 changes: 62 additions & 3,759 deletions content/adventures/kmr.yaml

Large diffs are not rendered by default.

3,190 changes: 0 additions & 3,190 deletions content/adventures/ko.yaml

Large diffs are not rendered by default.

5,517 changes: 478 additions & 5,039 deletions content/adventures/mi.yaml

Large diffs are not rendered by default.

1,058 changes: 3 additions & 1,055 deletions content/adventures/ms.yaml

Large diffs are not rendered by default.

2,723 changes: 2 additions & 2,721 deletions content/adventures/nb_NO.yaml

Large diffs are not rendered by default.

1,084 changes: 0 additions & 1,084 deletions content/adventures/ne.yaml

Large diffs are not rendered by default.

191 changes: 2 additions & 189 deletions content/adventures/nl.yaml

Large diffs are not rendered by default.

3,210 changes: 13 additions & 3,197 deletions content/adventures/pa_PK.yaml

Large diffs are not rendered by default.

4,645 changes: 200 additions & 4,445 deletions content/adventures/pap.yaml

Large diffs are not rendered by default.

3,173 changes: 41 additions & 3,132 deletions content/adventures/peo.yaml

Large diffs are not rendered by default.

304 changes: 0 additions & 304 deletions content/adventures/pl.yaml

Large diffs are not rendered by default.

2,174 changes: 11 additions & 2,163 deletions content/adventures/pt_BR.yaml

Large diffs are not rendered by default.

3,369 changes: 28 additions & 3,341 deletions content/adventures/pt_PT.yaml

Large diffs are not rendered by default.

3,588 changes: 147 additions & 3,441 deletions content/adventures/ro.yaml

Large diffs are not rendered by default.

2,789 changes: 53 additions & 2,736 deletions content/adventures/ru.yaml

Large diffs are not rendered by default.

1,373 changes: 0 additions & 1,373 deletions content/adventures/sl.yaml

Large diffs are not rendered by default.

2,653 changes: 45 additions & 2,608 deletions content/adventures/sq.yaml

Large diffs are not rendered by default.

350 changes: 0 additions & 350 deletions content/adventures/sr.yaml

Large diffs are not rendered by default.

2,049 changes: 33 additions & 2,016 deletions content/adventures/sv.yaml

Large diffs are not rendered by default.

3,152 changes: 55 additions & 3,097 deletions content/adventures/sw.yaml

Large diffs are not rendered by default.

1,086 changes: 0 additions & 1,086 deletions content/adventures/ta.yaml

Large diffs are not rendered by default.

3,275 changes: 18 additions & 3,257 deletions content/adventures/te.yaml

Large diffs are not rendered by default.

3,199 changes: 13 additions & 3,186 deletions content/adventures/th.yaml

Large diffs are not rendered by default.

3,312 changes: 18 additions & 3,294 deletions content/adventures/tl.yaml

Large diffs are not rendered by default.

3,176 changes: 36 additions & 3,140 deletions content/adventures/tn.yaml

Large diffs are not rendered by default.

2,191 changes: 158 additions & 2,033 deletions content/adventures/tr.yaml

Large diffs are not rendered by default.

3,048 changes: 21 additions & 3,027 deletions content/adventures/uk.yaml

Large diffs are not rendered by default.

3,207 changes: 13 additions & 3,194 deletions content/adventures/ur.yaml

Large diffs are not rendered by default.

1,082 changes: 0 additions & 1,082 deletions content/adventures/uz.yaml

Large diffs are not rendered by default.

3,258 changes: 37 additions & 3,221 deletions content/adventures/vi.yaml

Large diffs are not rendered by default.

1,146 changes: 0 additions & 1,146 deletions content/adventures/zh_Hans.yaml

Large diffs are not rendered by default.

3,355 changes: 23 additions & 3,332 deletions content/adventures/zh_Hant.yaml

Large diffs are not rendered by default.

149 changes: 0 additions & 149 deletions content/cheatsheets/ca.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -165,23 +165,6 @@
{print} 'You pressed A!'
{else}
{print} 'You pressed another key!'
9:
- name: '{if} with multiple lines'
explanation: The answer of a sum of questions with `{ask}` and see if it is correct. Now we print out two lines.
demo_code: |-
answer = {ask} 'What is 10 plus 10?'
{if} answer {is} 20
{print} 'Well done!!'
{print} 'The answer is indeed' answer
{else}
{print} 'Wrong'
{print} 'The answer is 20'
- name: '{repeat} with turtle'
explanation: Repeat multiple lines.
demo_code: |-
{repeat} 4 {times}
{turn} 90
{forward} 50
10:
- name: '{print}'
explanation: Print something. Remember to use a quotation mark for literal printing.
Expand All @@ -192,22 +175,6 @@
animals {is} dog, cat, blobfish
{for} animal {in} animals
{print} 'I love ' animal
11:
- name: '{for} loop'
explanation: We can use `{for}` with a `{range}`.
demo_code: |-
{for} counter {in} {range} 1 {to} 5
{print} counter
- name: '{ask}'
explanation: Ask for the answer to a sum and check if it is correct. We can now print 2 lines.
demo_code: |-
answer = {ask} 'What is 5 plus 5?'
{if} answer {is} 10
{print} 'Well done!'
{print} 'Indeed, the answer was ' answer
{else}
{print} 'Oops!'
{print} 'The answer is 10'
12:
- name: float directly
explanation: Decimal numbers.
Expand All @@ -231,78 +198,6 @@
demo_code: |-
superheroes = 'Iron Man', 'Batman', 'Superman'
{print} superheroes {at} {random}
13:
- name: '{and}'
explanation: Two parts both need to be correct.
demo_code: |-
answer1 = {ask} 'What is 3+2?'
answer2 = {ask} 'What is 2+2?'
{if} answer1 {is} 5 {and} answer2 {is} 4
{print} 'Both answers are correct!'
{else}
{print} 'At least one answer is wrong!'
- name: '{or}'
explanation: At least 1 of the two parts need to be correct. If both are correct, it is also fine.
demo_code: |-
answer1 = {ask} 'What is 3+2?'
answer2 = {ask} 'What is 2+2?'
{if} answer1 {is} 5 {or} answer2 {is} 4
{print} 'At least one answer is correct!'
{else}
{print} 'Both answers are wrong!'
14:
- name: Smaller
explanation: We use the `<` to check if the first number is smaller than the second number.
demo_code: |-
age = {ask} 'How old are you?'
{if} age < 13
{print} 'You are younger than me!'
- name: Bigger
explanation: We use the `>` to check if the first number is bigger than the second number.
demo_code: |-
age = {ask} 'How old are you?'
{if} age > 13
{print} 'You are older than me!'
- name: Equal
explanation: We use the `==` to check if two things are the same.
demo_code: |-
answer = {ask} 'What is 5 * 5?'
{if} answer == 25
{print} 'That is correct!'
- name: Not equal
explanation: We use the `!=` to check if two things are not the same.
demo_code: |-
answer = {ask} 'What is 5 * 5?'
{if} answer != 25
{print} 'That is not correct!'
- name: Smaller or equal
explanation: We use the `<=` to check if the first number is smaller than or equal to the second number.
demo_code: |-
age = {ask} 'How old are you?'
{if} age <= 12
{print} 'You are younger than me!'
- name: Bigger or equal
explanation: We use the `>=` to check if the first number is bigger than or equal to the second number.
demo_code: |-
age = {ask} 'How old are you?'
{if} age >= 14
{print} 'You are older than me!'
15:
- name: '{while}'
explanation: We can use the `{while}` loop with not equal.
demo_code: |-
answer = 0
{while} answer != 25
answer = {ask} 'What is 5 times 5?'
{print} 'A correct answer has been given'
- name: Smaller {while}
explanation: We can also use the `{while}` loop with `<` and `>`.
demo_code: |-
count = 1
{while} count < 3
{print} 'We do this ' 3 - count ' more times'
count = count + 1
{print} 'We are done'
16:
- name: square brackets
explanation: Lists with square brackets.
Expand All @@ -321,47 +216,3 @@
fruit = ['banana', 'apple', 'cherry']
random_fruit = fruit[{random}]
{print} random_fruit
17:
- name: '{elif}'
explanation: '`{elif}`'
demo_code: |-
a = 2
{if} a == 1:
{print} 'a is 1'
{elif} a == 2:
{print} 'a is 2'
{else}:
{print} 'a is not 1 or 2'
- name: '{print}'
explanation: When we use a `{for}`, we need to put a `:` behind the `{for}` statement!
demo_code: |-
{for} i {in} {range} 1 {to} 12:
{print} i
{print} 'Ready or not, here I come!'
- name: '{if}'
explanation: We need to do the same with all of our `{if}` statements.
demo_code: |-
color = {ask} 'What is your favorite color?'
{if} color == 'green':
{print} 'Your favorite color is green'
{else}:
{print} 'Your favorite color is not green'
18:
- name: '{print}'
explanation: After `{print}` you need to use parentheses.
demo_code: '{print}(''hi!'')'
- name: '{range}'
explanation: After `{range}` you need to use parentheses.
demo_code: |-
{for} i {in} {range} (1,10):
{print}('Hello, times ', i)
- name: '{print} with var'
explanation: With `{print}` you need to use parentheses and commas if you print more items.
demo_code: |-
name = 'Hedy'
{print}('my name is ', name)
- name: ask something with {input}
explanation: Use `{input}` instead of `{ask}` to ask something.
demo_code: |-
name = {input}('What is your name?')
{print}('So your name is ', name)
Loading
Loading