From cc572f59eead71c97dc7e4f93f4bf97b2e735ed5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Y=C4=B1lmaz=20Durmaz?= Date: Sun, 1 Oct 2023 09:42:03 +0200 Subject: [PATCH 01/15] Translated using Weblate (Turkish) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently translated at 73.2% (1410 of 1926 strings) Translated using Weblate (Turkish) Currently translated at 100.0% (24 of 24 strings) Translated using Weblate (Turkish) Currently translated at 73.3% (1412 of 1926 strings) Translated using Weblate (English) Currently translated at 100.0% (1926 of 1926 strings) Translated using Weblate (Turkish) Currently translated at 100.0% (438 of 438 strings) Translated using Weblate (Turkish) Currently translated at 100.0% (690 of 690 strings) Co-authored-by: Yılmaz Durmaz Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/tr/ Translate-URL: https://hosted.weblate.org/projects/hedy/client-messages/tr/ Translate-URL: https://hosted.weblate.org/projects/hedy/quizzes/en/ Translate-URL: https://hosted.weblate.org/projects/hedy/quizzes/tr/ Translate-URL: https://hosted.weblate.org/projects/hedy/webpages/tr/ Translation: Hedy/Adventures Translation: Hedy/Quizzes Translation: Hedy/Webpages Translation: Hedy/client-messages --- content/adventures/tr.yaml | 2 +- content/client-messages/tr.yaml | 2 +- content/pages/tr.yaml | 12 +- content/quizzes/en.yaml | 56 +- content/quizzes/tr.yaml | 990 ++++++++++++++++---------------- 5 files changed, 528 insertions(+), 534 deletions(-) diff --git a/content/adventures/tr.yaml b/content/adventures/tr.yaml index 10e6f48011c..5b5762b3a60 100644 --- a/content/adventures/tr.yaml +++ b/content/adventures/tr.yaml @@ -2795,7 +2795,7 @@ adventures: story_text: "## Değişkenler\nBir kelimeyi `{is}` ile isimlendirebilirsiniz. Buna bir **değişken** denir. Bu örnekte isim adında bir değişken ile yaş adında bir değişken oluşturduk. Kodunuzun herhangi bir yerinde isim kelimesini kullanabilirsiniz ve Hedy bu kelimeyi değiştirilecektir, bunun gibi:\n" example_code: "```\nisim {is} Hedy\nyaş {is} 15\n{print} isim yaş yaşındadır\n```\n" story_text_2: "### Alıştırma\nKendi değişkenlerinizi oluşturma zamanı!\nÖrnek kodda `favori_hayvan` değişkeni ile bir örnek yaptık. Satır 1'de değişken ayarlandı ve satır 2'de değişkeni bir `{print}` komutunda kullandık.\nÖncelikle, boşluklara en sevdiğiniz hayvanı doldurarak örneğimizi tamamlayın. Daha sonra bu kodlardan en az 3 tane daha kendiniz ekleyin. Bir değişken seçin ve bu değişkeni `{is}` komutu ile ayarlayın. Daha sonra tıpkı bizim yaptığımız gibi `{print}` komutu ile kullanın.\n" - example_code_2: "```\nfavori_hayvan eşit _\n{print} En sevdiğim havyan favori_hayvan\n```\n" + example_code_2: "```\nfavori_hayvan {is} _\n{print} En sevdiğim havyan favori_hayvan\n```\n" start_code: "isim {is} Hedy\nyaş {is} 15\n{print} name age yaşındadır" 14: start_code: "yaş = {ask} 'Kaç yaşındasın?'\n{if} yaş < 13\n {print} 'Sen benden daha gençsin!'\n{else}\n {print} 'Sen benden daha yaşlısın!'" diff --git a/content/client-messages/tr.yaml b/content/client-messages/tr.yaml index cfa9771e5b7..e34e1494d5e 100644 --- a/content/client-messages/tr.yaml +++ b/content/client-messages/tr.yaml @@ -22,4 +22,4 @@ CheckInternet: İnternet bağlantınız doğru çalışıyor mu diye bir göz at ServerError: Bizim beklemediğimiz bir program yazdınız. Eğer yardım etmek isterseniz, bize hello@hedy.org adresinden ilgili seviye ve programınızla birlikte bir e-posta gönderin. Bu arada, biraz farklı bir şey deneyin ve örneklere bir kez daha göz atın. Teşekkürler! Program_too_long: Programınızın çalışması çok uzun sürüyor. Program_repair: Bu doğru kod olabilirdi, onu düzeltebilir misin? -Errors_found: Bir hata yaptınız! Endişelenmeyin, Hedy hataları bulmaya çalışıyor +Errors_found: Bir hata yaptınız! Endişelenmeyin, programı yine de çalıştırdık diff --git a/content/pages/tr.yaml b/content/pages/tr.yaml index 4e984578b2f..4228c501d2c 100644 --- a/content/pages/tr.yaml +++ b/content/pages/tr.yaml @@ -319,18 +319,18 @@ sections: Bu seviyede Hedy'ye cevabınızı nereye kaydedeceğinizi söylemeniz gerekir, böylece onu daha sonra kullanılabilirsiniz. Buna değişken denir. solution_code: | sipariş eşit sor Ne yemek istersiniz? - - title: "Öğrenciler echo komutunu kullanmayı deniyor olabilirler " + - title: "Öğrenciler `{echo}` komutunu kullanmayı deniyor olabilirler " example: error_text: | - Bazı öğrenciler için yankıla komutunun artık çalışmadığını öğrenmek biraz sinir bozucu olabilir. Bu yüzden değişken kullanmanın avantajlarını açıklamak çok önemlidir. Örneğin, bir kodda birden fazla değişken kullanabilir ve bunları bir cümle içinde istediğiniz yere koyabilirsiniz! + Bazı öğrenciler için `{echo}` komutunun artık çalışmadığını öğrenmek biraz sinir bozucu olabilir. Bu yüzden değişken kullanmanın avantajlarını açıklamak çok önemlidir. Örneğin, bir kodda birden fazla değişken kullanabilir ve bunları bir cümle içinde istediğiniz yere koyabilirsiniz! error_code: | - cevap eşit sor yankıla neden artık çalışmıyor?! - yankıla + cevap {is} {ask} {echo} neden artık çalışmıyor?! + {echo} solution_text: | Bunun yerine bir değişken kullanın. solution_code: | - cevap eşit sor yankı komutu neden artık çalışmıyor?! - yazdır cevap + cevap {is} {ask} {echo} komutu neden artık çalışmıyor?! + {print} cevap - title: "Öğrenciler bir değişken adını normal bir kelime gibi olarak kullanmaya çalışır" example: error_text: | diff --git a/content/quizzes/en.yaml b/content/quizzes/en.yaml index 7b73cd7b3f7..35221f4d0e7 100644 --- a/content/quizzes/en.yaml +++ b/content/quizzes/en.yaml @@ -1855,16 +1855,16 @@ levels: case = {ask} 'Which case will you pick? 1 or 2?' {if} case {is} 1 action = {ask} 'Open it or sell it?' - {if} action {is} sell - {print} 'You sell your case for 10 dollars' - {if} action {is} open - {print} 'You open the case and win an apple pie' + {if} action {is} sell + {print} 'You sell your case for 10 dollars' + {if} action {is} open + {print} 'You open the case and win an apple pie' {if} case {is} 2 action = {ask} 'Open it or sell it?' - {if} action {is} sell - {print} 'You sell the case for 500 dollars' - {if} action {is} open - {print} 'You open the case and win a million dollars!' + {if} action {is} sell + {print} 'You sell the case for 500 dollars' + {if} action {is} open + {print} 'You open the case and win a million dollars!' mp_choice_options: - option: "case 1, sell" feedback: "You don't win a million!" @@ -1954,7 +1954,7 @@ levels: - option: "`{if}` `{else}` `{repeat}`" feedback: "Keep it up!" - option: "`{if}` `{else}` `{repeat}` `{print}`" - feedback: "Not with print" + feedback: "Not with {print}" correct_answer: "C" hint: "Indentation happens on the line below some commands" question_score: '10' @@ -2002,7 +2002,7 @@ levels: hint: "After each `{if}` command, the line below should indent" question_score: '10' 8: - question_text: "What is wrong is this code?" + question_text: "What is wrong in this code?" code: |- age = {ask} 'Happy Birthday! How old are you?' singing = {ask} 'Would you like us to sing?' @@ -2014,7 +2014,7 @@ levels: feedback: "Yes you can." - option: "The variable called 'age' is later on used as 'years'" feedback: "Keen eye! Good job!" - - option: "You're not allowed to start with 8 spaces, like line 4 and 5 do" + - option: "You're not allowed to start with 8 spaces, like line 5 does" feedback: "You actually must start like that." - option: "A code must always start with a `{print}` command in the first line" feedback: "That's not true." @@ -2055,7 +2055,7 @@ levels: question_score: '10' 11: 1: - question_text: "What word should be at the place of the question mark?" + question_text: "What word should be at the place of the blank?" code: |- {for} i {in} _ 1 {to} 10 {print} i @@ -2158,7 +2158,7 @@ levels: feedback: "Now Hedy prints the numbers from 0 to 10 instead of 10 to 0." - option: | ``` - {for} i {in} {range} 0 to 10 + {for} i {in} {range} 0 {to} 10 {print} - i ``` feedback: "Hedy would print negative numbers in this case." @@ -2212,7 +2212,7 @@ levels: hint: "0 also counts. So 0,1,2 that's 3 times." question_score: '10' 7: - question_text: "What should be on the place of the question mark?" + question_text: "What should be on the place of the blank?" code: |- {print} 'Welcome to Hedys diner' people = {ask} 'How many people will be eating here tonight?' @@ -2540,18 +2540,18 @@ levels: 10: question_text: "What is true about this code?" code: |- - prices = 1 million dollars, car, sandwich + prizes = 1 million dollars, car, sandwich names = Bob, Patrick, Sandy, Larry - {for} price {in} prices - {print} 'The ' price 'is won by ' names {at} {random} - mp_choice_options: - - option: "Everybody will always win a price." - feedback: "That is not true, you could end up without a price." - - option: "All the prices always go to one single person." - feedback: "That is not true. All the prices are given away, but to random people" - - option: "Larry will never win a price" + {for} prize {in} prizes + {print} 'The ' prize 'is won by ' names {at} {random} + mp_choice_options: + - option: "Everybody will always win a prize." + feedback: "That is not true, you could end up without a prize." + - option: "All the prizes always go to one single person." + feedback: "That is not true. All the prizes are given away, but to random people" + - option: "Larry will never win a prize" feedback: "That is not true. Larry has the same odds as the others" - - option: "Someone might win with two prices" + - option: "Someone might win two prizes" feedback: "You get it!" correct_answer: "D" hint: "Try to imagine the output of this code." @@ -2603,10 +2603,10 @@ levels: feedback: "Alright!" - option: |2 - ``` - flavors = 'vanilla, strawberry, chocolate' - {print} 'I would like a ' flavors {at} {random} ' cake.' - ``` + ``` + flavors = 'vanilla, strawberry, chocolate' + {print} 'I would like a ' flavors {at} {random} ' cake.' + ``` feedback: "All the different values of flavors should be in quotation marks." correct_answer: "C" hint: "The second line is the same in each code, pay attention to the first line" diff --git a/content/quizzes/tr.yaml b/content/quizzes/tr.yaml index 613d5f7834e..4d7902bc19d 100644 --- a/content/quizzes/tr.yaml +++ b/content/quizzes/tr.yaml @@ -140,7 +140,7 @@ levels: 8: question_text: "`{echo}` komutunu nasıl kullanırsınız?" mp_choice_options: - - option: "Bunu bir soru sormak için kullanırsınız." + - option: "Bunu bir soru `{ask}` mak için kullanırsınız." feedback: "Bunu `{ask}` ile yaparsınız!" - option: "Tam olarak `{print}` komutu gibi kullanırsınız." feedback: "Sadece `{print}` komutu bunu yapar!" @@ -178,18 +178,18 @@ levels: mp_choice_options: - option: | 2. seviyeye geçmeye hazır mısınız? - feedback: "İki tane yankıla komutu var" + feedback: "İki tane `{echo}` komutu vardır" - option: | Evet! Evet! feedback: "İyi işti!" - option: | Evet! - feedback: "İki tane yankıla komutu var" + feedback: "İki tane `{echo}` komutu vardır" - option: | 2. seviyeye geçmeye hazır mısınız? Evet! - feedback: "İki tane yankıla komutu var" + feedback: "İki tane `{echo}` komutu vardır" correct_answer: "B" hint: "Hadi gidelim!" question_score: '10' @@ -200,7 +200,7 @@ levels: - option: "Soru sormak için `{print}` komutunu kullanırsınız." feedback: "bu işi için sor komutu var" - option: "Yanıtları yankılamak için `{ask}` komutunu kullanırsınız." - feedback: "Bu doğru değil." + feedback: "Bu doğru değil" - option: "`{print}` komutu ile metnin görünmesini sağlarsınız" feedback: "İyi" - option: "`{sleep} komutu ile ekrandan metinleri kaldırırsın." @@ -637,7 +637,7 @@ levels: - option: "```\n{print} 'Bu sınava girdiği için Ali'de çok heyecanlı!'\n```\n" feedback: "Kesme işareti kullanma, ya da ters kesme işareti kullan" - option: "```\n{print} 'Bu sınava girdiğim için Ali'de çok heyecanlı!\n```\n" - feedback: "Tırnak işaretlerine ve üstten kesme işaretine dikkat et." + feedback: "Tırnak işaretlerine ve üstten kesme işaretine dikkat et" correct_answer: "A" hint: "4. seviyede, 2 komut için tırnak işaretine ihtiyacınız vardır." question_score: '10' @@ -827,7 +827,7 @@ levels: hint: "Hedy'nin rastgele seçebileceği seçenekler nelerdir?" question_score: '10' 10: - question_text: "Hangi ifade doğrudur?" + question_text: "Bu ifadelerden hangisi doğrudur?" code: |- kişiler {is} anne, baba, Emma, Sophie {print} Bulaşıkları yıkayacak olan... @@ -1224,16 +1224,16 @@ levels: hint: "(2 muzlar + 3 sağlık) * 10 futbol = 5*10 =?" question_score: '10' 10: - question_text: "Hangi ifade doğrudur?" + question_text: "Bu ifadelerden hangisi doğrudur?" code: |- isim _ Hedy {print} isim ' ormanda yürüyor' mp_choice_options: - - option: "`_` yerine sadece eşit kelimesini koyabilirsiniz." + - option: "`_` yerine sadece eşit kelimesini koyabilirsiniz" feedback: "Ayrıca `=` işaretini kullanmanıza da izin verilir" - - option: "`_` işaretinin yerine eşit kelimesini ya da `=` işaretini koyabilirsiniz." + - option: "`_` işaretinin yerine eşit kelimesini ya da `=` işaretini koyabilirsiniz" feedback: "İnanılmaz!" - - option: "`_` yerine =eşit= işaretini koymanız gerekir." + - option: "`_` yerine =eşit= işaretini koymanız gerekir" feedback: "Hayır, bir tane `=` işareti yeterli" - option: "`=` işaretini sadece sayılarla çalışırken kullanabilirsiniz, kelimelerle değil." feedback: "`=` işaretini kelimelerle birlikte de kullanabilirsiniz." @@ -1701,7 +1701,7 @@ levels: hint: "Bir `{if}` veya `{else}` komutundan sonraki satırlar 4 boşlukla başlamalıdır." question_score: '10' 10: - question_text: "Hangi ifade doğrudur?" + question_text: "Bu ifadelerden hangisi doğrudur?" code: |- 1 seviye = {ask} 'Hangi seviyedesin?' 2 {if} seviye {is} 8 @@ -1720,344 +1720,338 @@ levels: question_score: '10' 9: 1: - question_text: "What is wrong with this code?" + question_text: "Bu kodun ne sorunu var?" code: |- {repeat} 3 {times} - eten = {ask} 'What would you like to eat?' - {if} food {is} fries - sauce = {ask} 'What sauce would you like?' - {print} 'One fries with ' sauce - {if} food {is} pizza - topping = {ask} 'What topping would you like?' - {print} 'One pizza with ' topping - {print} 'That you for your order' - mp_choice_options: - - option: "Nothing this code is correct!" - feedback: "That's right!." - - option: "You're not allowed to use an `{if}` command after an `{ask}` command." - feedback: "You are!." - - option: "You don't have to use indentation twice." - feedback: "You always have to use indentation." - - option: "The indentation is wrong in the last `{if}` command." - feedback: "It not, though." + yemek = {ask} 'Ne yemek istersiniz?' + {if} yemek {is} kızartma + sos = {ask} 'Hangi sosu istersiniz?' + {print} 'Bir kızartma, ve sosu ' sauce + {if} yemek {is} pizza + malzeme = {ask} 'Hangi malzemeyi istersiniz?' + {print} 'Bir pizza, ve içinde ' topping + {print} 'Siparişiniz için teşekkür ederiz' + mp_choice_options: + - option: "Hiçbir sorun yok, bu kod doğru!" + feedback: "Bu doğru!" + - option: "Bir `{ask}` komutundan sonra `{if}` komutunu kullanmanıza izin verilmez." + feedback: "Buna izin verilir!" + - option: "İki kez girinti kullanmak zorunda değilsiniz." + feedback: "Her zaman girinti kullanmanız gerekir." + - option: "Son `{if}` komutunda girinti yanlış." + feedback: "Girinti sorunu yok." correct_answer: "A" - hint: "all the indentation is done correctly." + hint: "Tüm girintiler doğru şekilde yapılmıştır." question_score: '10' 2: - question_text: "What will be printed after entering the correct password?" + question_text: "Doğru şifre girilince ne yazdırılacak?" code: |- - password = {ask} 'What is the password?' - correct_password = Hedy - {if} password {is} correct_password + şifre = {ask} 'Şifre nedir?' + doğru_şifre = Hedy + {if} şifre {is} doğru_şifre {repeat} 2 {times} - {print} 'Good job!' - {print} 'You can use the computer!' + {print} 'İyi işti!' + {print} 'Bilgisayarı kullanabilirsin!' {else} - {print} 'The computer will explode in 5... 4... 3... 2... 1...' - mp_choice_options: - - option: "Good job!\nGood job!" - feedback: "That's not it!" - - option: "The computer will explode in 5... 4... 3... 2... 1..." - feedback: "That's not it!" - - option: "Good job !\nGood job!\nYou can use the computer!" - feedback: "That's not it!" - - option: "Good job!\nYou can use the computer!\nGood job!\nYou can use the computer!" - feedback: "Correct!" + {print} 'Bilgisayar 5 saniye içinde patlayacak... 4... 3... 2... 1...' + mp_choice_options: + - option: "```\nİyi işti!\nİyi işti!\n```" + feedback: "Bu kadar değil!" + - option: "```\nBilgisayar 5 saniye içinde patlayacak... 4... 3... 2... 1...\n```" + feedback: "Bu değil!" + - option: "```\nİyi işti!\nİyi işti!\nBilgisayarı kullanabilirsin!\n```" + feedback: "Bu kadar değil!" + - option: "```\nİyi işti!\nBilgisayarı kullanabilirsin!\nİyi işti!\nBilgisayarı kullanabilirsin!\n```" + feedback: "Doğru!" correct_answer: "D" - hint: "Everything under the `{repeat}` command is repeated twice." + hint: "`{repeat}` komutu altındaki her şey iki kez tekrarlanır." question_score: '10' 3: - question_text: "Which case should you choose to win a million dollars?" - code: |- - {print} 'Choose the right case and win!' - case = {ask} 'Which case will you pick? 1 or 2?' - {if} case {is} 1 - action = {ask} 'Open it or sell it?' - {if} action {is} sell - {print} 'You sell your case for 10 dollars' - {if} action {is} open - {print} 'You open the case and win an apple pie' - {if} case {is} 2 - action = {ask} 'Open it or sell it?' - {if} action {is} sell - {print} 'You sell the case for 500 dollars' - {if} action {is} open - {print} 'You open the case and win a million dollars!' - mp_choice_options: - - option: "case 1, sell" - feedback: "You don't win a million!" - - option: "case 1, open" - feedback: "You don't win a million" - - option: "case 2, sell" - feedback: "You don't win a million" - - option: "case 2, open" - feedback: "Great job! You win!" + question_text: "Bir milyon dolar kazanmak için hangi kasayı seçmelisiniz?" + code: |- + {print} 'Doğru kasayı seçin ve kazanın!' + kasa = {ask} 'Hangi kasayı seçeceksin? 1 mi 2 mi?' + {if} kasa {is} 1 + eylem = {ask} 'Açacak mısın yoksa satacak mısın?' + {if} eylem {is} sat + {print} 'Kasayı 10 dolara satıyorsun.' + {if} eylem {is} aç + {print} 'Kasayı açıyorsun ve bir elmalı turta kazanıyorsun' + {if} kasa {is} 2 + eylem = {ask} 'Açacak mısın yoksa satacak mısın?' + {if} eylem {is} sat + {print} 'Kasayı 500 dolara satıyorsun.' + {if} eylem {is} aç + {print} 'Kasayı açıyorsun ve bir milyon dolar kazanıyorsun!' + mp_choice_options: + - option: "kasa 1, sat" + feedback: "Bir milyon kazanamazsın!" + - option: "kasa 1, aç" + feedback: "Bir milyon kazanamazsın" + - option: "kasa 2, sat" + feedback: "Bir milyon kazanamazsın" + - option: "kasa 2, aç" + feedback: "İyi iş çıkardın! Sen kazandın!" correct_answer: "D" - hint: "Follow the right path" + hint: "Doğru yolu takip edin" question_score: '10' 4: - question_text: "Which statement is true?" + question_text: "Bu ifadelerden hangisi doğrudur?" code: |- - name = {ask} 'What is your name?' - size = {ask} 'What is your shoe size?' - {if} size {is} 38 - {if} name {is} Cinderella - {print} 'I was looking for you!' + isim = {ask} 'Adınız ne?' + numara = {ask} 'Ayakkabı numaranız kaç?' + {if} numara {is} 38 + {if} isim {is} Külkedisi Sindirella + {print} '❤️❤️❤️' {else} - {print} 'You are not the one!' + {print} 'Sen o değilsin!' {else} - {print} 'Ill keep looking' - mp_choice_options: - - option: "Sleeping Beauty with shoe size 38 gets the output 'Ill keep looking'" - feedback: "No, she gets 'You are not the one!'" - - option: "Cinderella with shoe size 40 gets the output: 'I was looking for you!'" - feedback: "No, she gets 'Ill keep looking'" - - option: "Sleeping Beauty with shoe size 40 gets the output 'Ill keep looking'" - feedback: "That's right!" - - option: "Cinderella with shoe size 40 gets the output 'I was looking for you!'" - feedback: "No she gets 'Ill keep looking'" + {print} 'Aramaya devam edeceğim' + mp_choice_options: + - option: "Ayakkabı numarası 38 olan Uyuyan Güzel 'Aramaya devam edeceğim' yanıtını aldı" + feedback: "Hayır, \"Sen o değilsin!\" cevabını alıyor" + - option: "Ayakkabı numarası 40 olan Külkedisi Sindirella '❤️❤️❤️' alıyor" + feedback: "Hayır, \"Aramaya devam edeceğim.\" cevabını alır" + - option: "Ayakkabı numarası 40 olan Uyuyan Güzel 'Aramaya devam edeceğim' çıktısını aldı" + feedback: "Bu doğru!" + - option: "Ayakkabı numarası 38 olan Külkedisi Sindirella 'Aramaya devam edeceğim' yanıtını aldı" + feedback: "Hayır, o '❤️❤️❤️' yanıtını aldı" correct_answer: "C" - hint: "No matter what your name is, if you have shoe size 40 you will get the message 'Ill keep looking'." + hint: "Adınız ne olursa olsun, 40 numara ayakkabınız varsa 'Aramaya devam edeceğim' mesajını alacaksınız." question_score: '10' 5: - question_text: "Which code produced this output?" + question_text: "Bu çıktıyı hangi kod üretir?" mp_choice_options: - option: | ``` - desert = {ask} 'What is your favorite type of desert?' - {if} desert {is} icecream + tatlı = {ask} 'En sevdiğiniz tatlı türü nedir?' + {if} tatlı {is} Dondurma {repeat} 3 {times} - {print} 'Icecream is the best!' + {print} 'Dondurma en iyisidir!' ``` - feedback: "Don't forget the indentation after `{repeat}` commands." + feedback: "`{repeat}` komutlarından sonra girintiyi unutmayın." - option: | ``` - desert = {ask} 'What is your favorite type of desert?' - {if} desert {is} icecream + tatlı = {ask} 'En sevdiğiniz tatlı türü nedir?' + {if} tatlı {is} Dondurma {repeat} 3 {times} - {print} 'Icecream is the best!' + {print} 'Dondurma en iyisidir!' ``` - feedback: "Use indentation after an `{if}` command" + feedback: "Bir `{if}` komutundan sonra girinti kullanmalısın" - option: | ``` - desert = {ask} 'What is your favorite type of desert?' - {if} desert {is} icecream + tatlı = {ask} 'En sevdiğiniz tatlı türü nedir?' + {if} tatlı {is} Dondurma {repeat} 3 {times} - {print} 'Icecream is the best!' + {print} 'Dondurma en iyisidir!' ``` - feedback: "Perfect" + feedback: "Mükemmel" - option: | ``` {repeat} 3 {times} - desert = {ask} 'What is your favorite type of desert?' - {if} desert {is} icecream + tatlı = {ask} 'En sevdiğiniz tatlı türü nedir?' + {if} tatlı {is} Dondurma {repeat} 3 {times} - {print} 'Icecream is the best!' + {print} 'Dondurma en iyisidir!' ``` - feedback: "There are 2 `{repeat}` commands in this code." + feedback: "Bu kodda 2 adet `{repeat}` komutu bulunmaktadır." correct_answer: "C" - hint: "Watch the indentation" + hint: "Girintiye dikkat edin" question_score: '10' - output: "Icecream is the best!\nIcecream is the best!\nIcecream is the best!" + output: "Dondurma en iyisidir!\nDondurma en iyisidir!\nDondurma en iyisidir!" 6: - question_text: "After which command(s) should you use indentation (starting the next line with 4 spaces)?" + question_text: "Hangi komut(lar)dan sonra girinti (bir sonraki satıra 4 boşlukla başlama) kullanmalısınız?" mp_choice_options: - option: "`{if}`" - feedback: "Don't forget the others" + feedback: "Diğerlerini unutmayın" - option: "`{if}` `{repeat}`" - feedback: "Don't forget `{else}`!" + feedback: "`{else}` komutunu unutmayın!" - option: "`{if}` `{else}` `{repeat}`" - feedback: "Keep it up!" + feedback: "Devam edin!" - option: "`{if}` `{else}` `{repeat}` `{print}`" - feedback: "Not with print" + feedback: "{print} ile değil" correct_answer: "C" - hint: "Indentation happens on the line below some commands" + hint: "Girinti bazı komutların altındaki satırda gerçekleşir" question_score: '10' 7: - question_text: "In this code from a pizza restaurant. \nYoull get a 5 dollar discount if you order a medium pizza with coke.\n What should you do to debug this code?" + question_text: "Orta boy pizza ve yanında kola sipariş ederseniz 5 dolar indirim alırsınız.
Ama kodda bir hata var! Bu hata nasıl ayıklanır?" code: |- - {if} food {is} pizza - {if} size {is} medium - {if} drink {is} coke - price = price - 2 + {if} yemek {is} pizza + {if} boy {is} orta + {if} içecek {is} kola + ücret = ücret - 5 mp_choice_options: - option: | ``` - {if} food {is} pizza - {if} size {is} medium - {if} drink {is} coke - price = price - 2 + {if} yemek {is} pizza + {if} boy {is} orta + {if} içecek {is} kola + ücret = ücret - 5 ``` feedback: "İnanılmaz!" - option: | ``` - {if} food {is} pizza - {if} size {is} medium - {if} drink {is} coke - price = price - 2 + {if} yemek {is} pizza + {if} boy {is} orta + {if} içecek {is} kola + ücret = ücret - 5 ``` - feedback: "Try again!" + feedback: "İkinci `{if}` kodu ıskaladı!" - option: | ``` - {if} food {is} pizza - {if} size {is} medium - {if} drink {is} coke - price = price - 2 + {if} yemek {is} pizza + {if} boy {is} orta + {if} içecek {is} kola + ücret = ücret - 5 ``` - feedback: "Try again" + feedback: "İki ardışık `{if}` asla doğru değildir." - option: | ``` - {if} food {is} pizza - {if} size {is} medium - {if} drink {is} coke - price = price - 2 + {if} yemek {is} pizza + {if} boy {is} orta + {if} içecek {is} kola + ücret = ücret - 5 ``` - feedback: "Try again" + feedback: "Neredeyse doğru. Son satıra bir kez daha bakın" correct_answer: "A" - hint: "After each `{if}` command, the line below should indent" + hint: "Her `{if}` komutundan sonra aşağıdaki satır girintilenmelidir" question_score: '10' 8: - question_text: "What is wrong is this code?" + question_text: "Bu kodun ne sorunu var?" code: |- - age = {ask} 'Happy Birthday! How old are you?' - singing = {ask} 'Would you like us to sing?' - if singing {is} yes - {repeat} years {times} + yaş = {ask} 'Mutlu Yıllar! Kaç yaşındasınız?' + şarkı = {ask} 'Size şarkı söylememizi ister misiniz?' + {if} şarkı {is} evet + {repeat} yıl {times} {print} 'Hip Hip Hooray' mp_choice_options: - - option: "You can't put two questions in a row" - feedback: "Yes you can." - - option: "The variable called 'age' is later on used as 'years'" - feedback: "Keen eye! Good job!" - - option: "You're not allowed to start with 8 spaces, like line 4 and 5 do" - feedback: "You actually must start like that." - - option: "A code must always start with a `{print}` command in the first line" - feedback: "That's not true." + - option: "İki soruyu arka arkaya koyamazsınız" + feedback: "Evet, yapabilirsiniz." + - option: "'yaş' isimli değişken daha sonra 'yıl' olarak kullanılmış" + feedback: "Keskin göz! İyi iş çıkardın!" + - option: "Satır 5'te olduğu gibi 8 boşlukla başlamanıza izin verilmez" + feedback: "Aslında böyle başlamalısınız." + - option: "Bir kod her zaman ilk satırda bir `{print}` komutu ile başlamalıdır" + feedback: "Bu doğru değil." correct_answer: "B" - hint: "The indentation is done right this time" + hint: "Girintiler bu sefer doğru yapılmış" question_score: '10' 9: - question_text: "How many `{if}` commands can be placed inside another `{if}` command?" + question_text: "Bir `{if}` komutunun içine başka kaç tane `{if}` komutu yerleştirilebilir?" mp_choice_options: - - option: "None, that is not allowed" - feedback: "You are allowed to" - - option: "Only 1" - feedback: "You could use more if you like" + - option: "Hiç, buna izin verilmez" + feedback: "Bunu yapmanıza izin verilir" + - option: "Sadece 1" + feedback: "İsterseniz daha fazla kullanabilirsiniz" - option: "3" - feedback: "You could use more if you like" - - option: "Infinite, as long as you keep using indentation correctly" - feedback: "That is true" + feedback: "İsterseniz daha fazla kullanabilirsiniz" + - option: "Sonsuz, girintiyi doğru kullanmaya devam ettiğiniz sürece" + feedback: "Bu doğru" correct_answer: "D" - hint: "You can put an `{if}` command inside an `{if}` command." + hint: "Bir `{if}` komutunu başka bir `{if}` komutunun içine koyabilirsiniz." question_score: '10' 10: - question_text: "Which statement is true?" + question_text: "Bu ifadelerden hangisi doğrudur?" code: |- 1 {repeat} 2 {times} - 2 {if} level {is} 9 - 3 {print} Great job! - mp_choice_options: - - option: "All lines should start with 4 spaces" - feedback: "Only line 2 and 3 start with spaces" - - option: "Line 2 and 3 should start with 4 spaces" - feedback: "Line 3 should start with 8" - - option: "Line 2 and 3 should start with 8 spaces" - feedback: "Line 2 should start with 4" - - option: "line 2 should atart with 4 spaces and line 3 with 8" - feedback: "You are correct!" + 2 {if} seviye {is} 9 + 3 {print} İyi işti! + mp_choice_options: + - option: "Tüm satırlar 4 boşlukla başlamalıdır" + feedback: "Yalnızca 2. ve 3. satır boşlukla başlar" + - option: "2 ve 3 numaralı satırlar 4 boşlukla başlamalıdır" + feedback: "3 numaralı satır 8 taneyle başlamalıdır" + - option: "2 ve 3 numaralı satırlar 8 boşlukla başlamalıdır" + feedback: "2 numaralı satır 4 teneyle başlamalıdır" + - option: "2 numaralı satır 4 boşlukla ve 3 numaralı satır 8 boşlukla başlamalıdır" + feedback: "Haklısın!" correct_answer: "D" - hint: "The first line doens't start with any spaces" + hint: "İlk satır herhangi bir boşlukla başlamaz" question_score: '10' 11: 1: - question_text: "What word should be at the place of the question mark?" + question_text: "Boşluğun yerine hangi kelime gelmelidir?" code: |- - {for} i {in} _?_ 1 {to} 10 + {for} i {in} _ 1 {to} 10 {print} i mp_choice_options: - option: | ``` - counter + sayaç ``` - feedback: "No" + feedback: "Hayır" - option: | - ``` - {range} - ``` - feedback: "Correct" + `{range}` + feedback: "Doğru" - option: | - ``` - {if} - ``` - feedback: "No" + `{if}` + feedback: "Hayır" - option: | - ``` - {for} - ``` - feedback: "No" + `{for}` + feedback: "Hayır" correct_answer: "B" - hint: "What did you learn in this level?" + hint: "Bu seviyede ne öğrendiniz?" question_score: '10' 2: - question_text: "What will be the output from this code?" + question_text: "Bu kodun çıktısı ne olacaktır?" code: |- {for} i {in} {range} 1 {to} 3 {print} i mp_choice_options: - option: "1\n2\n3" - feedback: "Correct!" + feedback: "Doğru!" - option: "1 2 3" - feedback: "That's not it" + feedback: "Bu değil" - option: "1, 2, 3" - feedback: "That's not it" + feedback: "Bu değil" - option: "123" - feedback: "That's not it" + feedback: "Bu değil" correct_answer: "A" - hint: "How do the numbers appear in the screen?" + hint: "Bu sayılar ekranda nasıl görünür?" question_score: '10' 3: - question_text: "Which code was used to get this output?" + question_text: "Bu çıktıyı almak için hangi kod kullanılmıştır?" output: |- 1 2 3 4 5 - Once I caught a fish alive! + Bir keresinde canlı bir balık yakalamıştım! mp_choice_options: - option: | ``` {for} i {in} {range} 1 {to} 5 {print} i - {print} 'Once I caught a fish alive!' + {print} 'Bir keresinde canlı bir balık yakalamıştım!' ``` - feedback: "Perfect" + feedback: "Mükemmel" - option: | ``` {for} i {in} {range} 1 {to} 5 {print} i - {print} 'Once I caught a fish alive!' + {print} 'Bir keresinde canlı bir balık yakalamıştım!' ``` - feedback: "This code won't work. You need an indent after {for}." + feedback: "Bu kod çalışmaz. `{for}'dan sonra bir girintiye ihtiyacınız var." - option: | ``` {for} i {in} {range} 1 {to} 5 {print} i - {print} 'Once I caught a fish alive!' + {print} 'Bir keresinde canlı bir balık yakalamıştım!' ``` - feedback: "Now Hedy will count '1 Once I caught a fish alive!, 2 Once I caught a fish alive! etc." + feedback: "Bununla Hedy '1 Bir keresinde canlı bir balık yakalamıştım!', '2 Bir keresinde canlı bir balık yakalamıştım!' vb. diye sayacak." - option: | ``` {for} i {in} {range} 1 {to} 5 {print} 'i' - {print} 'Once I caught a fish alive!' + {print} 'Bir keresinde canlı bir balık yakalamıştım!' ``` - feedback: "i is a variable and shouldn't have quotation marks" + feedback: "i bir değişkendir ve tırnak işareti içinde olmamalıdır" correct_answer: "A" - hint: "First all the numbers, then the sentence" + hint: "Önce tüm sayılar, sonra cümle" question_score: '10' 4: - question_text: "Which code was used to get this output?" + question_text: "Bu çıktıyı almak için hangi kod kullanılmıştır?" output: |- 10 9 @@ -2076,27 +2070,27 @@ levels: {for} i {in} {range} 0 {to} 10 {print} i ``` - feedback: "Now Hedy prints the numbers from 0 to 10 instead of 10 to 0." + feedback: "Bununla Hedy 10'dan 0'a yerine 0'dan 10'a kadar olan sayıları yazdırıyor." - option: | ``` - {for} i {in} {range} 0 to 10 + {for} i {in} {range} 0 {to} 10 {print} - i ``` - feedback: "Hedy would print negative numbers in this case." + feedback: "Hedy bu durumda negatif sayılar basacaktır." - option: | ``` {for} i {in} {range} 10 to 0 {print} 10 9 8 7 6 5 4 3 2 1 0 ``` - feedback: "Unfortunately this does not exist." + feedback: "Ne yazık ki böyle bir şey mevcut değil." - option: | ``` {for} i {in} {range} 0 {to} 10 {print} 10 - i ``` - feedback: "That's right!" + feedback: "Bu doğru!" correct_answer: "D" - hint: "It has to be a calculation..." + hint: "Bu bir hesaplama olmalı..." question_score: '10' 5: question_text: "Bu kodun ne sorunu var?" @@ -2104,391 +2098,391 @@ levels: {for} i {in} {range} 1 {to} 10 {print} i mp_choice_options: - - option: "The i in the last line need quotation marks" - feedback: "No it doesn't." - - option: "You can't use `{range}` 1 `{to}` 5 only `{range}` 1 `{to}` 10" - feedback: "You could use 1 to 5 just as well!" - - option: "Line 1 needs to start with an indention." - feedback: "Not line 1..." - - option: "Line 2 needs to start with an indention" - feedback: "Perfect!" + - option: "Son satırdaki i'nin tırnak işaretine ihtiyacı var" + feedback: "Hayır, yok." + - option: "`{range}` 1 `{to}` 5 kullanamazsınız, sadece `{range}` 1 `{to}` 10 kullanabilirsiniz" + feedback: "1'den 5'e kadar da kullanabilirsiniz!" + - option: "Satır 1'in bir girinti ile başlaması gerekir." + feedback: "1 numaralı satır değil..." + - option: "Satır 2'nin bir girinti ile başlaması gerekir" + feedback: "Mükemmel!" correct_answer: "D" - hint: "There is something wrong with the indention" + hint: "Girinti ile ilgili bir sorun var" question_score: '10' 6: - question_text: "How many times does the word Hello appear on your screen when you run the code?" + question_text: "Kodu çalıştırdığınızda ekranınızda kaç kez Merhaba kelimesi belirecek?" code: |- {for} i {in} {range} 0 {to} 2 - {print} 'Hello' - mp_choice_options: - - option: "1 time" - feedback: "No" - - option: "2 times" - feedback: "No" - - option: "3 times" - feedback: "That's right!" - - option: "Never" - feedback: "No" + {print} 'Merhaba' + mp_choice_options: + - option: "1 kez" + feedback: "Hayır" + - option: "2 kez" + feedback: "Hayır" + - option: "3 kez" + feedback: "Bu doğru!" + - option: "Hiç görünmez" + feedback: "Hayır" correct_answer: "C" - hint: "0 also counts. So 0,1,2 that's 3 times." + hint: "0 da sayılır, 0,1,2. Yani 3 defa." question_score: '10' 7: - question_text: "What should be on the place of the question mark?" + question_text: "Boşluğun yerinde ne olmalı?" code: |- - {print} 'Welcome to Hedys diner' - people is {ask} 'How many people will be eating here tonight?' - _?_ - food is {ask} 'What would you like to order?' - {print} food + {print} 'Hedys lokantasına hoş geldiniz' + kişiler = {ask} 'Bu gece burada kaç kişi yemek yiyecek?' + _ + yemek = {ask} 'Ne sipariş etmek istersiniz?' + {print} yemek mp_choice_options: - option: | ``` {for} i {in} {range} 0 {to} 3 ``` - feedback: "There's not always 3 people" + feedback: "Her zaman 3 kişi olmaz" - option: | ``` - {for} i {in} {range} 1 {to} guests + {for} i {in} {range} 1 {to} misafirler ``` - feedback: "The variable is not named guests" + feedback: "Değişkene misafirler adı verilmemiş" - option: | ``` - {for} i {in} {range} 1 {to} people + {for} i {in} {range} 1 {to} kişiler ``` - feedback: "Great!" + feedback: "Harika!" - option: | ``` - {for} i {in} {range} 0 {to} people + {for} i {in} {range} 0 {to} kişiler ``` - feedback: "That's one order too many!" + feedback: "Bu sipariş bir kişi fazla!" correct_answer: "C" - hint: "Use the variable 'people'" + hint: "'kişiler' değişkenini kullanın" question_score: '10' 8: - question_text: "What will be the output from this code?" + question_text: "Bu kodun çıktısı ne olacaktır?" code: |- {for} i {in} {range} 23 {to} 25 - {print} 'hi' + {print} 'Merhaba' mp_choice_options: - option: "23\n24\n25" - feedback: "The numbers don't appear. It doesn't say `{print}` i." - - option: "23 hi 24 hi 25 hi" - feedback: "The numbers don't appear. It doesn't say `{print}` i" - - option: "hi\nhi\nhi" - feedback: "Correct" - - option: "The word 'hi' will appear 25 times in a row." - feedback: "No it will only appear 3 times." + feedback: "Sayılar görünmüyor. `{print}` i yazmıyor." + - option: "23 Merhaba 24 Merhaba 25 Merhaba" + feedback: "Sayılar görünmüyor. `{print}` i demiyor" + - option: "Merhaba\nMerhaba\nMerhaba" + feedback: "Doğru" + - option: "'Merhaba' kelimesi arka arkaya 25 kez görünecektir." + feedback: "Hayır, sadece 3 kez görünecektir." correct_answer: "C" - hint: "It doesn't say `{print}` i" + hint: "Burada `{print}` i yazmıyor" question_score: '10' 9: - question_text: "How many times does Hedy chant Hip Hip Hooray?" + question_text: "Hedy kaç kere Hip Hip Hooray diye bağırıyor?" code: |- - age = {ask} 'How old are you?' - {for} i {in} {range} 1 {to} age + yaş = {ask} 'Kaç yaşındasınız?' + {for} i {in} {range} 1 {to} yaş {print} 'Hip Hip Hoorray!' mp_choice_options: - - option: "1 time" - feedback: "Try again" - - option: "2 times" - feedback: "Try again" - - option: "Never" - feedback: "Try again" - - option: "That depends on how old you are" - feedback: "That's right!" + - option: "1 kez" + feedback: "Tekrar deneyin" + - option: "2 kez" + feedback: "Tekrar deneyin" + - option: "Hiç yazmaz" + feedback: "Tekrar deneyin" + - option: "Bu kaç yaşında olduğunuza bağlı" + feedback: "Bu doğru!" correct_answer: "D" - hint: "`{for}` i `{in}` `{range}` 1 `{to}` age" + hint: "`{for}` i `{in}` `{range}` 1 `{to}` yaş" question_score: '10' 10: - question_text: "Which code belongs to this output?" + question_text: "Bu çıktı hangi koda aittir?" output: |- - Baby shark tututudutudu - Baby shark tututudutudu - Baby shark tututudutudu - Baby shark + Bebek köpekbalığı tututudutudu + Bebek köpekbalığı tututudutudu + Bebek köpekbalığı tututudutudu + Bebek köpekbalığı mp_choice_options: - option: | ``` {for} i {in} {range} 1 {to} 3 - {print} Baby shark tututudutudu - {print} Baby shark + {print} Bebek köpekbalığı tututudutudu + {print} Bebek köpekbalığı ``` - feedback: "Mind the indention" + feedback: "Girintiye dikkat edin" - option: | ``` {for} i {in} {range} 1 {to} 3 - {print} Baby shark tututudutudu - {print} Baby shark + {print} Bebek köpekbalığı tututudutudu + {print} Bebek köpekbalığı ``` - feedback: "That's right!" + feedback: "Bu doğru!" - option: | ``` {for} i {in} {range} 0 {to} 3 - {print} Baby shark tututudutudu - {print} Baby shark + {print} Bebek köpekbalığı tututudutudu + {print} Bebek köpekbalığı ``` - feedback: "`{range}` 0 `{to}` 3 is 4 times." + feedback: "`{range}` 0 `{to}` 3 ifadesi 4 kez demektir." - option: | ``` {for} i {in} {range} 0 {to} 3 - {print} Baby shark tututudutudu - {print} Baby shark + {print} Bebek köpekbalığı tututudutudu + {print} Bebek köpekbalığı ``` - feedback: "`{range}` 0 `{to}` 3 is 4 times." + feedback: "`{range}` 0 `{to}` 3 ifadesi 4 kez demektir." correct_answer: "B" - hint: "Mind the indention" + hint: "Girintiye dikkat edin" question_score: '10' 10: 1: - question_text: "What do we need to fill in on the `_?_` if we want to print each compliment?" + question_text: "Her bir iltifatı yazdırmak istiyorsak `_` kısmına ne yazmamız gerekiyor?" code: |- - compliments = perfect, great job, amazing - _?_ - {print} compliment + iltifatlar = mükemmel, harika iş, inanılmaz + _ + {print} iltifat mp_choice_options: - option: | ``` - {for} each compliment + {for} her iltifat ``` - feedback: "That's not it" + feedback: "Bu değil" - option: | ``` - {for} compliment {in} compliments + {for} iltifat {in} iltifatlar ``` - feedback: "You deserve all those compliments!" + feedback: "Tüm bu iltifatları hak ediyorsun!" - option: | ``` - {if} compliment {in} compliments + {if} iltifat {in} iltifatlar ``` - feedback: "That's not it" + feedback: "Bu değil" - option: | ``` - {for} compliments {in} compliment + {for} iltifatlar {in} iltifat ``` - feedback: "Almost there!" + feedback: "Neredeyse oluyordu!" correct_answer: "B" - hint: "`{for}` each compliment in the lists of compliments..." + hint: "`{for}` iltifatlar listesindeki her bir iltifat için..." question_score: '10' 2: - question_text: "Which output is correct?" - code: |- - meals = pizza, pasta, pancakes - {for} meal {in} meals - {print} 'I love ' meal - mp_choice_options: - - option: "I love pizza" - feedback: "Line 2 says `{for}` each meal in the list of meals. So each meal is printed." - - option: "I love pasta" - feedback: "Line 2 says `{for}` each meal in the list of meals. So each meal is printed." - - option: "I love pancakes" - feedback: "Line 2 says `{for}` each meal in the list of meals. So each meal is printed." + question_text: "Hangi çıktı doğrudur?" + code: |- + yemekler = pizza, makarna, krep + {for} yemek {in} yemekler + {print} 'En çok ' meal ' seviyorum' + mp_choice_options: + - option: "En çok pizza seviyorum" + feedback: "Satır 2, öğün listesindeki her öğün için `{for}` diyor. Böylece her öğün yazdırılır." + - option: "En çok makarna seviyorum" + feedback: "Satır 2, öğün listesindeki her öğün için `{for}` diyor. Böylece her öğün yazdırılır." + - option: "En çok krep seviyorum" + feedback: "Satır 2, öğün listesindeki her öğün için `{for}` diyor. Böylece her öğün yazdırılır." - option: |- - I love pizza - I love pasta - I love pancakes - feedback: "Great!" + En çok pizza seviyorum + En çok makarna seviyorum + En çok krep seviyorum + feedback: "Harika!" correct_answer: "D" - hint: "Line 2 says for each meal in the list of meals. So each meal is printed." + hint: "Satır 2, öğün listesindeki her öğün için diyor. Yani her öğün yazdırılır." question_score: '10' 3: - question_text: "Which output is correct?" + question_text: "Hangi çıktı doğrudur?" code: |- - animals = dogs, cats, hamsters, chickens - {for} animal {in} animals - {print} animal ' are lovely pets' + hayvanlar = köpekler, kediler, hamsterlar, tavuklar + {for} hayvan {in} hayvanlar + {print} hayvan ' sevecen evcil hayvanlardır' mp_choice_options: - - option: "dogs are lovely pets" - feedback: "Line 2 says {for} each animal in the list of animals. So each animal is {print}ed." - - option: "dogs, cats, hamsters, chickens are lovely pets" - feedback: "Each animal gets their own line in the output." + - option: "köpekler sevecen evcil hayvanlardır" + feedback: "Satır 2, hayvan listesindeki her hayvan için {for} diyor. Yani her hayvanı {print} yapar." + - option: "köpekler, kediler, hamsterlar, tavuklar sevecen evcil hayvanlardır" + feedback: "Her hayvan çıktıda kendi satırında yer alır." - option: |- - dogs are lovely pets - cats are lovely pets - hamsters are lovely pets - chickens are lovely pets - feedback: "Great!" - - option: "You don't know yet. Because it chooses one of the animals {at} {random}." - feedback: "Line 2 says {for} each animal in the list of animals. So each animal is {print}ed." + köpekler sevecen evcil hayvanlardır + kediler sevecen evcil hayvanlardır + hamsterlar sevecen evcil hayvanlardır + tavuklar sevecen evcil hayvanlardır + feedback: "Harika!" + - option: "Henüz bilmiyoruz. Çünkü hayvanlardan birini {at}{random} seçiyor." + feedback: "Satır 2, hayvan listesindeki her hayvan için {for} diyor. Yani her hayvan için {print} yapılır." correct_answer: "C" - hint: "Line 2 says {for} each animal in the list of animals. So each animal is printed" + hint: "Satır 2, hayvan listesindeki her bir hayvan için {for} diyor. Yani her hayvan yazdırılır" question_score: '10' 4: question_text: "Bu kodun ne sorunu var?" code: |- - groceries = apples, bread, milk - {for} item {in} groceries - {print} 'We need ' groceries + alışveriş = elma, ekmek, süt + {for} ürün {in} alışveriş + {print} 'Almamız gereken ' alışveriş mp_choice_options: - - option: "Line 2 needs to start with 4 spaces as indentation" - feedback: "No it doesn't. Only line 3 needs indentation, which it has." - - option: "Line 3 does not need to start with 4 spaces as indentation" - feedback: "Line 2 is a `{for}`command so line 3 does need to start with an indent." - - option: "Line 3 should say item instead of groceries" - feedback: "Aferin!" - - option: "Line 2 should say groceries instead of item" - feedback: "No it does not." + - option: "Satır 2'nin girinti olarak 4 boşlukla başlaması gerekir" + feedback: "Hayır, gerekmiyor. Sadece 3. satırın girintiye ihtiyacı var, ki o da var." + - option: "Satır 3'ün girinti olarak 4 boşlukla başlamasına gerek yoktur" + feedback: "2. satır bir `{for}` komutudur, bu nedenle 3. satırın bir girintiyle başlaması gerekir." + - option: "3. satırda alışveriş yerine ürün yazmalı" + feedback: "İyi işti!" + - option: "Satır 2'de ürün yerine alışveriş yazmalıdır" + feedback: "Hayır, değil." correct_answer: "C" - hint: "Line 2 says `{for}` each item in the list of groceries" + hint: "Satır 2, alışveriş listesindeki her bir ürün için `{for}` diyor" question_score: '10' 5: - question_text: "What word should be on the _?_ with these digital dice?" - code: |- - {print} 'Welcome to the digital dice!' - players = Ann, John, Jesse - choices = 1, 2, 3, 4, 5, 6 - {for} player {in} players - {print} player ' throws ' _?_ {at} {random} - mp_choice_options: - - option: "players" - feedback: "It would say 'Ann throws Jesse', instead of 'Ann throws 6'." - - option: "choices" - feedback: "That's right!" - - option: "choice" - feedback: "You are very close. But you need Hedy to pick from the list called 'choices' not 'choice'..." - - option: "dice" - feedback: "Look at the names of the variables." + question_text: "Bu dijital zarlar ile _ üzerinde hangi kelime olmalı?" + code: |- + {print} 'Dijital zarlara hoş geldiniz!' + oyuncular = Ann, John, Jesse + seçimler = 1, 2, 3, 4, 5, 6 + {for} oyuncu {in} oyuncular + {print} oyuncu ' şunu atıyor: ' _ {at} {random} + mp_choice_options: + - option: "oyuncular" + feedback: "Bu olursa 'Ann şunu atıyor: 6' yerine 'Ann şunu atıyor: Jesse' yazacaktır." + - option: "seçimler" + feedback: "Bu doğru!" + - option: "seçim" + feedback: "Çok yaklaştınız. Ama Hedy'nin 'seçim' değil 'seçimler' denilen listeden seçim yapması gerekiyor..." + - option: "zar" + feedback: "Değişkenlerin adlarına bakın." correct_answer: "B" - hint: "Hedy needs to pick a number `{at} {random}`" + hint: "Hedy'nin `{at} {random}` bir sayı seçmesi gerekiyor" question_score: '10' 6: - question_text: "Which of the answers below is a possible outcome when you run the code?" + question_text: "Kodu çalıştırdığınızda aşağıdaki cevaplardan hangisi olası bir sonuçtur?" code: |- - choices = rock, paper, scissors - players = Kelly, Meredith - {for} player {in} players - {print} player ' chooses ' choices {at} {random} + seçenekler = taş, kağıt, makas + oyuncular = Kelly, Meredith + {for} oyuncu {in} oyuncular + {print} oyuncu ' şunu seçiyor: ' seçenekler {at} {random} mp_choice_options: - option: |- - Kelly chooses rock - feedback: "Meredith wants to play too!" + Kelly şunu seçiyor: taş + feedback: "Meredith de oynamak istiyor!" - option: |- - Meredith chooses scissors - Kelly chooses rock - feedback: "So close! But Kelly is first in the list, so she goes first" + Meredith şunu seçiyor: makas + Kelly şunu seçiyor: taş + feedback: "Çok yaklaştın! Ama Kelly listede ilk sırada, bu yüzden ilk o seçer" - option: |- - Meredith chooses paper - feedback: "Kelly wants to play too!" + Meredith şunu seçiyor: kağıt + feedback: "Kelly de oynamak istiyor!" - option: |- - Kelly chooses paper - Meredith chooses scissors + Kelly şunu seçiyor: makas + Meredith şunu seçiyor: kağıt feedback: "İnanılmaz!" correct_answer: "D" - hint: "Each player will pick an option. The player that's first on the list will go first." + hint: "Her oyuncu bir seçenek seçecek. Listede ilk sırada olan oyuncu ilk başlayacak." question_score: '10' 7: - question_text: "What line should be on the _?_ in this code that decides what these people will have for dinner?" + question_text: "Bu insanların akşam yemeğinde ne yiyeceğine karar veren bu koddaki _ yerine hangi satır gelmeli?" code: |- - names = Ron, Leslie, April, Andy - food = pasta, fries, salad - _?_ - {print} name ' has to eat ' food {at} {random} ' for dinner' + isimler = Ron, Leslie, April, Andy + yemekler = makarna, kızartma, salata + _ + {print} isim ' akşam yemeğinde ' yemekler {at} {random} ' yiyecek' mp_choice_options: - option: | ``` - {for} name {in} names + {for} isim {in} isimler ``` - feedback: "You are on fire!" + feedback: "Yakıyorsun!" - option: | ``` - {for} names {in} name + {for} isimler {in} isim ``` - feedback: "No it should be for each name in the list nameS, so the other way around" + feedback: "Hayır, isimLER listesindeki her bir isim için olmalı, yani tam tersi" - option: | ``` - {for} food {in} food + {for} yemekler {in} yemekler ``` - feedback: "Each name should be told what they will have for dinner." + feedback: "Her isme akşam yemeğinde ne yiyeceği söylenmelidir." - option: | ``` - {for} name {in} food + {for} isim {in} yemekler ``` - feedback: "Each name should be told what they will have for dinner." + feedback: "Her isme akşam yemeğinde ne yiyeceği söylenmelidir." correct_answer: "A" - hint: "Each name should be told what they will have for dinner." + hint: "Her isme akşam yemeğinde ne yiyeceği söylenmelidir." question_score: '10' 8: - question_text: "What should be on the _?_ in this code that decides which color shirt you get?" + question_text: "Hangi renk gömlek alacağınıza karar veren bu kodda _ yerinde ne olmalıdır?" code: |- - names = Donna, Tommy, Ben - colors = blue, red, purple - {for} name {in} names - {print} _?_ + isimler = Donna, Tommy, Ben + renkler = mavi, kırmızı, mor + {for} isim {in} isimler + {print} _ mp_choice_options: - option: | ``` - 'name gets a color shirt' + 'isim renk renkli bir gömlek alır' ``` - feedback: "That's not it!" + feedback: "Bu değil!" - option: | ``` - name 'gets a ' colors {at} {random} ' shirt' + isim renkler {at} {random} ' renkli bir gömlek alır' ``` - feedback: "Great job! This was a hard one!" + feedback: "İyi işti! Bu çok zordu!" - option: | ``` - names 'gets a ' color {at} {random} ' shirt' + isimler renk {at} {random} ' renkli bir gömlek alır' ``` - feedback: "You want each name printed. So the first word should not be names but..." + feedback: "Her ismin basılmasını istiyorsunuz. Yani ilk kelime isimler olmamalı ama..." - option: | ``` - 'people gets a colors shirt' + kişiler ' renkler renkli bir gömlek alır' ``` - feedback: "There is no variable named people.." + feedback: "kişiler adında bir değişken yok..." correct_answer: "B" - hint: "Mind the quotation marks and the names of the variables" + hint: "Tırnak işaretlerine ve değişkenlerin adlarına dikkat edin" question_score: '10' 9: - question_text: "What is the first question Hedy will `{ask}` you when you run the program?" - code: |- - courses = appetizer, main course, dessert - names = Timon, Onno - {for} name in names - {for} course {in} courses - food = {ask} name ', what would you like to eat as your ' course '?' - {print} name ' orders ' food ' as their ' course - mp_choice_options: - - option: "Timon, what would you like to eat as your appetizer?" - feedback: "Perfect!" - - option: "Onno, what would you like to eat as your appetizer?" - feedback: "Timon is first on the list!" - - option: "Timon, what would you like to eat as your dessert?" - feedback: "Appetizers are first in the list" - - option: "You don't know that. Hedy will choose `{at} {random}`." - feedback: "There is no `{at} {random}` in this code..." + question_text: "Programı çalıştırdığınızda Hedy'nin size soracağı ilk soru ne olur?" + code: |- + çeşitler = meze, ana yemek, tatlı + isimler = Timon, Onno + {for} isim {in} isimler + {for} çeşit {in} çeşitler + yemek = {ask} isim ', yemekte ' çeşit ' olarak ne yemek istersiniz?' + {print} isim ' yemekte ' çeşit ' olarak ' yemek ' istiyor' + mp_choice_options: + - option: "Timon, yemekte meze olarak ne yemek istersiniz?" + feedback: "Mükemmel!" + - option: "Onno, yemekte meze' olarak ne yemek istersiniz?" + feedback: "Listede ilk sırada Timon var!" + - option: "Timon, yemekte tatlı olarak ne yemek istersiniz?" + feedback: "Mezeler listenin ilk sırasında" + - option: "Bunu bilemezsin. Hedy `{at} {random}` seçecek." + feedback: "Bu kodda `{at} {random}` yok..." correct_answer: "A" - hint: "The first options from both lists are chosen." + hint: "Her iki listeden de ilk seçenekler seçilir." question_score: '10' 10: - question_text: "What is true about this code?" - code: |- - prices = 1 million dollars, car, sandwich - names = Bob, Patrick, Sandy, Larry - {for} price {in} prices - {print} 'The ' price 'is won by ' names {at} {random} - mp_choice_options: - - option: "Everybody will always win a price." - feedback: "That is not true, you could end up without a price." - - option: "All the prices always go to one single person." - feedback: "That is not true. All the prices are given away, but to random people" - - option: "Larry will never win a price" - feedback: "That is not true. Larry has the same odds as the others" - - option: "Someone might win with two prices" - feedback: "You get it!" + question_text: "Bu kod hakkında doğru olan hangisidir?" + code: |- + ödüller = 1 milyon dolar, araba, sandviç + isimler = Bob, Patrick, Sandy, Larry + {for} ödül {in} ödüller + {print} ödül ' ödülünü kazanan' isimler {at} {random} + mp_choice_options: + - option: "Herkes her zaman bir ödül kazanacaktır." + feedback: "Bu doğru değil, sonunda bir ödülünüz olmayabilir." + - option: "Tüm ödüller her zaman tek bir kişiye gider." + feedback: "Bu doğru değil. Tüm ödüller dağıtılır, ancak rastgele kişilere" + - option: "Larry asla bir ödül kazanamayacak" + feedback: "Bu doğru değil. Larry'nin diğerleriyle aynı şansı var" + - option: "Bazıları iki ödül de kazanabilir" + feedback: "Anladın sen onu!" correct_answer: "D" - hint: "Try to imagine the output of this code." + hint: "Bu kodun çıktısını hayal etmeye çalışın." question_score: '10' 12: 2: correct_answer: C question_text: Which of these codes is correct? mp_choice_options: - - option: "```\nflavors is vanilla, strawberry, chocolate\nprint 'I would like a ' flavors at random ' cake.'\n```" + - option: "```\nflavors {is} vanilla, strawberry, chocolate\n{print} 'I would like a ' flavors {at} {random} ' cake.'\n```" feedback: All the different values of flavors should be in quotation marks. - - option: "```\n'flavors = vanilla, strawberry, chocolate'\nprint 'I would like a ' flavors at random ' cake.'\n```" + - option: "```\n'flavors = vanilla, strawberry, chocolate'\n{print} 'I would like a ' flavors {at} {random} ' cake.'\n```" feedback: All the different values of flavors should be in quotation marks. - - option: "```\nflavors = 'vanilla', 'strawberry', 'chocolate'\nprint 'I would like a ' flavors at random ' cake.'\n```" + - option: "```\nflavors = 'vanilla', 'strawberry', 'chocolate'\n{print} 'I would like a ' flavors {at} {random} ' cake.'\n```" feedback: Alright! - - option: "\n```\nflavors = 'vanilla, strawberry, chocolate'\nprint 'I would like a ' flavors at random ' cake.'\n```\n" + - option: "\n```\nflavors = 'vanilla, strawberry, chocolate'\n{print} 'I would like a ' flavors {at} {random} ' cake.'\n```\n" feedback: All the different values of flavors should be in quotation marks. hint: The second line is the same in each code, pay attention to the first line question_score: '10' @@ -2499,13 +2493,13 @@ levels: - option: "The quotation marks aren't used correctly in line 2\n" feedback: That's not true - feedback: That's not true - option: "You can't use the = sign when using an ask command\n" + option: "You can't use the = sign when using an {ask} command\n" - option: "Nothing is wrong.\n" feedback: That's not true hint: The quotation marks are used correctly question_score: '10' question_text: Bu kodun ne sorunu var? - code: "favorite_animal = ask 'What is your favorite animal?'\nprint 'I like ' favoriteanimal ' too!'" + code: "favorite_animal = {ask} 'What is your favorite animal?'\n{print} 'I like ' favoriteanimal ' too!'" correct_answer: A 4: mp_choice_options: @@ -2518,13 +2512,13 @@ levels: - option: "All of the lines\n" feedback: Perfect! question_text: In which lines are quotation marks needed to get the code to work? - code: "print Welcome to the online shoe shop\ncategory = ask What kind of shoes are you looking for?\nif category = high heels\n print High heels are 50% off now!" + code: "{print} Welcome to the online shoe shop\ncategory = {ask} What kind of shoes are you looking for?\n{if} category = high heels\n {print} High heels are 50% off now!" correct_answer: D hint: Does line 3 need quotation marks too? question_score: '10' 5: question_text: What output does Agent007 get when they put in the correct password? - code: "name is ask 'What is your name?'\nif name is 'Agent007'\n a is 'Go to the airport '\nelse\n a is 'Go to the train station '\npassword is ask 'What is the password?'\nif password is 'TOPSECRET'\n b is 'tomorrow at 02.00'\nelse\n b is 'today at 10.00'\nprint a + b" + code: "name {is} {ask} 'What is your name?'\n{if} name {is} 'Agent007'\n a {is} 'Go to the airport '\nelse\n a {is} 'Go to the train station '\npassword {is} {ask} 'What is the password?'\n{if} password {is} 'TOPSECRET'\n b {is} 'tomorrow at 02.00'\nelse\n b {is} 'today at 10.00'\nprint a + b" mp_choice_options: - option: Go to the train station today at 10.00 feedback: The agent won't be catching any bad guys here @@ -2548,13 +2542,13 @@ levels: - option: "```\n'prices' = 'one million dollars', 'nothing'\n```" feedback: You one nothing question_text: Which code should be filled in in line 1 at the ??? - code: "???\nprint 'You won ' prices at random '!'" + code: "???\n{print} 'You won ' prizes {at} {random} '!'" correct_answer: C hint: The items on the list should be in quotation marks question_score: '10' 1: - question_text: Which output is correct? - code: "print 'three and a half plus one and a half is...'\nprint 3.5 + 1.5" + question_text: Hangi çıktı doğrudur? + code: "{print} 'three and a half plus one and a half is...'\n{print} 3.5 + 1.5" mp_choice_options: - option: "5\n" feedback: Don't forget the first line of code! @@ -2569,7 +2563,7 @@ levels: question_score: '10' 6: question_text: Which line should be filled in at the ??? - code: "print 'Welcome to McHedy!'\norder = ask 'Would you like a hamburger or fries?'\nif order = 'hamburger'\n price = 12\nif order = 'fries'\n price = 4\ndrinks = ask 'Would you like a drink with that for 2 dollars?'\nif drinks = 'yes'\n ???\nprint 'That will be ' price ' dollar please'\n" + code: "{print} 'Welcome to McHedy!'\norder = {ask} 'Would you like a hamburger or fries?'\n{if} order = 'hamburger'\n price = 12\n{if} order = 'fries'\n price = 4\ndrinks = {ask} 'Would you like a drink with that for 2 dollars?'\n{if} drinks = 'yes'\n ???\n{print} 'That will be ' price ' dollar please'\n" mp_choice_options: - option: "```\nprice = 14\n```\n" feedback: What if you only order fries and a drink? @@ -2584,7 +2578,7 @@ levels: question_score: '10' 7: question_text: Which output does a vegan get? - code: "menu = 'cookies', 'cheese', 'grapes'\nprint \"It's my birthday! I`ve brought some snacks!\"\ndiet = ask 'Do you have any dietary restrictions?'\nif diet = 'gluten free'\n remove 'cookies' from menu\nif diet = 'vegan'\n remove 'cheese' from menu\nprint 'For you I have brought: '\nfor snack in menu\n print snack" + code: "menu = 'cookies', 'cheese', 'grapes'\n{print} \"It's my birthday! I`ve brought some snacks!\"\ndiet = {ask} 'Do you have any dietary restrictions?'\n{if} diet = 'gluten free'\n {remove} 'cookies' {from} menu\n{if} diet = 'vegan'\n {remove} 'cheese' {from} menu\n{print} 'For you I have brought: '\n{for} snack {in} menu\n {print} snack" mp_choice_options: - option: "It's my birthday! I've brought some snacks!\nFor you I have brought:\ncookies\ngrapes" feedback: Terrific! @@ -2601,28 +2595,28 @@ levels: question_text: Which code was used to create this output? code: '3.5' mp_choice_options: - - option: "```\nprint '7 / 2'\n```" + - option: "```\n{print} '7 / 2'\n```" feedback: No - - option: "```\nprint 7 / 2\n```" + - option: "```\n{print} 7 / 2\n```" feedback: That is right! - - option: "```\nprint 7 : 2\n```" + - option: "```\n{print} 7 : 2\n```" feedback: No - - option: "```\nprint 7 * 2\n```" + - option: "```\n{print} 7 * 2\n```" feedback: No correct_answer: B hint: 7 devided by 2 is 3.5 question_score: '10' 10: question_text: Which line of code should be filled in at the ??? to complete the song ? - code: "actions = 'clap your hands', 'stomp your feet', 'shout Hurray!'\n???\n for i in range 0 to 1\n print 'if youre happy and you know it'\n print action\n print 'if youre happy and you know it and you really want to show it'\n print 'if youre happy and you know it'\n print action" + code: "actions = 'clap your hands', 'stomp your feet', 'shout Hurray!'\n???\n {for} i {in} range 0 {to} 1\n {print} 'if youre happy and you know it'\n {print} action\n {print} 'if youre happy and you know it and you really want to show it'\n {print} 'if youre happy and you know it'\n {print} action" mp_choice_options: - - option: for i in range 1 to 3 + - option: "```\n{for} i {in} {range} 1 {to} 3\n```" feedback: This is a hard one! All the actions on the list must be in the song. - - option: for action in actions + - option: "```\n{for} action {in} actions\n```" feedback: You are amazing! - - option: repeat 3 times + - option: "```\n{repeat} 3 {times}\n```" feedback: This is a hard one! All the actions on the list must be in the song. - - option: print actions at random + - option: "```\n{print} actions {at} {random}\n```" feedback: This is a hard one! All the actions on the list must be in the song. correct_answer: B hint: This is a hard one! All the actions on the list must be in the song. @@ -2631,15 +2625,15 @@ levels: 2: question_score: '10' question_text: Which command is missing in the code at the place of the ??? ? - code: "menu = 'cheese', 'sausage rolls', 'cookies'\ndiet = ask 'Do you have any dietary restrictions?'\nif diet = 'vegan' ??? diet = 'halal'\n remove 'sausage rolls' from menu" + code: "menu = 'cheese', 'sausage rolls', 'cookies'\ndiet = {ask} 'Do you have any dietary restrictions?'\n{if} diet = 'vegan' ??? diet = 'halal'\n {remove} 'sausage rolls' {from} menu" mp_choice_options: - - option: and + - option: '`{and}`' feedback: You don't have to be vegan and muslim - - option: or + - option: '`{or}`' feedback: Great thinking! - - option: ' + ' + - option: ' `+` ' feedback: No - - option: print + - option: '`{print}`' feedback: No correct_answer: B hint: Neither vegans nor muslims can eat sausage rolls. @@ -2654,28 +2648,28 @@ levels: - option: The yellow bird was fed this morning feedback: This is true question_text: Which statement is false? - code: "print 'Thank you for helping me take care of my pets'\nprint 'Here is a program to help feed them'\nanimal is ask 'What kind of animal are they?'\ncolor is ask 'What colour are they?'\nif animal is 'cat' and color = 'grey'\n print 'That is Abby. She eats 3 scoops of cat nibbles'\nif animal is 'cat' and color = 'orange'\n print 'That is Milo. He eats 4 scoops of cat nibbles'\nif animal is 'bird' or color is 'black'\n print 'I fed them this moring! They do not need more food today'\nif animal is 'hamster' and color is 'brown'\n print 'You can feed them a piece of carrot'" + code: "{print} 'Thank you for helping me take care of my pets'\n{print} 'Here is a program to help feed them'\nanimal = {ask} 'What kind of animal are they?'\ncolor = {ask} 'What colour are they?'\n{if} animal = 'cat' {and} color = 'grey'\n {print} 'That is Abby. She eats 3 scoops of cat nibbles'\n{if} animal = 'cat' {and} color = 'orange'\n {print} 'That is Milo. He eats 4 scoops of cat nibbles'\n{if} animal = 'bird' {or} color = 'black'\n {print} 'I fed them this moring! They do not need more food today'\n{if} animal = 'hamster' {and} color = 'brown'\n {print} 'You can feed them a piece of carrot'" correct_answer: C hint: Read the last 4 lines carefully question_score: '10' 1: question_text: Which code should be filled in at the ??? ? - code: "name = ask 'What is your name?'\nsong = ask 'Whould you like to hear a song?'\nbirthday = ask 'Is today your birthday?'\n???\n print 'Happy Birthday to you!'\n print 'Happy Birthday to you!'\n print 'Happy Birthday. dear ' name\n print 'Happy Birthday to you!'" + code: "name = {ask} 'What is your name?'\nsong = {ask} 'Whould you like to hear a song?'\nbirthday = {ask} 'Is today your birthday?'\n???\n {print} 'Happy Birthday to you!'\n {print} 'Happy Birthday to you!'\n {print} 'Happy Birthday dear ' name\n {print} 'Happy Birthday to you!'" mp_choice_options: - - option: "```\nif birthday and song = 'yes'\n```" + - option: "```\n{if} birthday {and} song = 'yes'\n```" feedback: Almost there - - option: "```\nif birthday = 'yes' and name = 'Hedy'\n```" + - option: "```\n{if} birthday = 'yes' {and} name = 'Hedy'\n```" feedback: Hedy only sings for you if you like to hear a song - - option: "```\nif song = 'yes' and birthday = 'yes'\n```" + - option: "```\n{if} song = 'yes' {and} birthday = 'yes'\n```" feedback: Super! - - option: "```\nif song = 'yes' or birthday = 'yes'\n```" + - option: "```\n{if} song = 'yes' {or} birthday = 'yes'\n```" feedback: Hedy only sings if both answers are yes correct_answer: C hint: Hedy sings if you want to hear a song and it's you birthday question_score: '10' 3: question_text: Which output is given to a member without a discount code? - code: "member = ask 'Do you have a membership card?'\ndiscount = ask 'Do you have a discount code?'\nif member = 'yes' or discount = 'yes'\n print 'You get a free apple pie!'\nelse\n print 'That will be 5 dollars please'" + code: "member = {ask} 'Do you have a membership card?'\ndiscount = {ask} 'Do you have a discount code?'\n{if} member = 'yes' {or} discount = 'yes'\n {print} 'You get a free apple pie!'\n{else}\n {print} 'That will be 5 dollars please'" mp_choice_options: - option: You get a free pie! feedback: Great job! @@ -2686,26 +2680,26 @@ levels: - option: There is no way of knowing feedback: There is! Read the question carefully correct_answer: A - hint: Mind the command 'or' in line 3 + hint: Mind the command `{or}` in line 3 question_score: '10' 4: question_text: Which line of code should follow this line in rock-paper-scissors game? - code: if computer_choice is 'rock' and your_choice is 'paper' + code: "{if} computer_choice {is} 'rock' {and} your_choice {is} 'paper'" mp_choice_options: - - option: print 'you win' + - option: "```\n{print} 'you win'\n```" feedback: You win! - - option: print 'you lose' + - option: "```\n{print} 'you lose'\n```" feedback: You lose! - - option: print 'tie' + - option: "```\n{print} 'tie'\n```" feedback: It's only a tie if both choices are the same - - option: print 'try again' + - option: "```\n{print} 'try again'\n```" feedback: Try again! correct_answer: A hint: Paper beats rock question_score: '10' 5: question_text: Which statement is true about this code? - code: "if name = 'Cinderella' and shoe_size = 38\n print 'You are my one true love!'" + code: "{if} name = 'Cinderella' {and} shoe_size = 38\n {print} 'You are my one true love!'" mp_choice_options: - option: Every person with shoe size 38 is this prince's one true love feedback: The prince is a little more picky than that! @@ -2719,8 +2713,8 @@ levels: hint: Both statements have to be true question_score: '10' 6: - question_text: Which statement about this code is true? - code: "print 'Let me guess which family member you are!'\nglasses = ask 'Do you wear glasses?'\nfemale = ask 'Are you female?'\nif glasses = 'yes' and female = 'yes'\n print 'You must be Sophie!'\nif glasses = 'no' and female = 'yes'\n print 'You must be Marleen!'\nif glasses = 'yes' and female = 'no'\n print 'You must be Wouter!'\nif glasses = 'no' and female = 'no'\n print 'You must be Michael!'" + question_text: Bu kodla ilgili ifadelerden hangisi doğrudur? + code: "{print} 'Let me guess which family member you are!'\nglasses = {ask} 'Do you wear glasses?'\nfemale = {ask} 'Are you female?'\n{if} glasses = 'yes' {and} female = 'yes'\n {print} 'You must be Sophie!'\n{if} glasses = 'no' {and} female = 'yes'\n {print} 'You must be Marleen!'\n{if} glasses = 'yes' {and} female = 'no'\n {print} 'You must be Wouter!'\n{if} glasses = 'no' {and} female = 'no'\n {print} 'You must be Michael!'" mp_choice_options: - option: Michael is a boy with glasses feedback: Try again @@ -2735,7 +2729,7 @@ levels: question_score: '10' 8: question_text: What output do you get if you order popcorn but no drink? - code: "print 'Welcome to the movie theater'\npopcorn = ask 'Would you like some popcorn?'\ndrink = ask 'Would you like a drink?'\nif popcorn = 'yes' and drink = 'yes'\n print 'That will be 8 dollars please'\nif popcorn = 'no' and drink = 'yes'\n print 'That will be 3 dollars please'\nif popcorn = 'yes' and drink = 'no'\n print 'That will be 5 dollars please'\nif popcorn = 'no' and drink = 'no'\n print 'Ok'\nprint 'Enjoy the movie'" + code: "{print} 'Welcome to the movie theater'\npopcorn = {ask} 'Would you like some popcorn?'\ndrink = {ask} 'Would you like a drink?'\n{if} popcorn = 'yes' {and} drink = 'yes'\n {print} 'That will be 8 dollars please'\n{if} popcorn = 'no' {and} drink = 'yes'\n {print} 'That will be 3 dollars please'\n{if} popcorn = 'yes' {and} drink = 'no'\n {print} 'That will be 5 dollars please'\n{if} popcorn = 'no' {and} drink = 'no'\n {print} 'Ok'\n{print} 'Enjoy the movie'" mp_choice_options: - option: "Welcome to the movie theater\nThat will be 8 dollars please\nEnjoy the movie" feedback: You have paid too much! @@ -2749,8 +2743,8 @@ levels: hint: popcorn = yes and drink = no question_score: '10' 9: - question_text: What is wrong with this code? - code: "1 chocolate = ask 'Would you like chocolate sauce on your ice cream?'\n2 sprinkles = ask 'Would you like sprinkles on your ice cream?'\n3 if chocolate and sprinkles = 'yes'\n4 print 'Ice cream with chocolate sauce and sprinkles, coming up!'\n5 if chocolate = 'yes' and sprinkles = 'no'\n6 print 'Ice cream with chocolate sauce, coming up!'\n7 if chocolate = 'no' and sprinkles = 'yes'\n8 print 'Ice cream with sprinkles, coming up'\n9 if chocolate = 'no' and sprinkles = 'no'\n10 print 'Just plain icecream, coming up!'" + question_text: Bu kodun ne sorunu var? + code: "1 chocolate = {ask} 'Would you like chocolate sauce on your ice cream?'\n2 sprinkles = {ask} 'Would you like sprinkles on your ice cream?'\n3 {if} chocolate {and} sprinkles = 'yes'\n4 {print} 'Ice cream with chocolate sauce and sprinkles, coming up!'\n5 {if} chocolate = 'yes' {and} sprinkles = 'no'\n6 {print} 'Ice cream with chocolate sauce, coming up!'\n7 {if} chocolate = 'no' {and} sprinkles = 'yes'\n8 {print} 'Ice cream with sprinkles, coming up'\n9 {if} chocolate = 'no' {and} sprinkles = 'no'\n10 {print} 'Just plain icecream, coming up!'" mp_choice_options: - option: "Line 3 should be:\n```\n{if} chocolate = 'yes' {and} sprinkles = 'yes'\n```\n" feedback: Correct! @@ -2765,15 +2759,15 @@ levels: question_score: '10' 10: question_text: Which command needs to be in line 8 at the place of the ??? ? - code: "print 'Welcome to the product finder of this supermarkt'\nitem is ask 'What product are you looking for?'\nbakery = 'bread', 'buns', 'muffins'\ndrinks = 'soda', 'water', 'lemonade'\nsnacks = 'chips', 'nuts', 'dips'\nfrozen = 'fries', 'icecream', 'pizza'\nfruit = 'bananas', 'apples', 'oranges'\nif item in snacks ??? item in drinks\n print 'This item is in aile 3'\nif item in bakery or item in bakery\n print 'This item in in the back of the store'\nif item in fruit\n print 'The fruit is sold near the register'" + code: "{print} 'Welcome to the product finder of this supermarkt'\nitem = {ask} 'What product are you looking for?'\nbakery = 'bread', 'buns', 'muffins'\ndrinks = 'soda', 'water', 'lemonade'\nsnacks = 'chips', 'nuts', 'dips'\nfrozen = 'fries', 'icecream', 'pizza'\nfruit = 'bananas', 'apples', 'oranges'\n{if} item {in} snacks ??? item {in} drinks\n {print} 'This item is in aisle 3'\n{if} item {in} bakery {or} item {in} bakery\n {print} 'This item in in the back of the store'\n{if} item {in} fruit\n {print} 'The fruit is sold near the register'" mp_choice_options: - - option: and + - option: '`{and}`' feedback: There are no items that are both the list of snacks and the list of drinks - - option: or + - option: '`{or}`' feedback: Great job! - - option: in + - option: '`{in}`' feedback: No - - option: if + - option: '`{if}`' feedback: No correct_answer: B hint: The item is either in the list of snacks, or in the list of drinks @@ -3013,7 +3007,7 @@ levels: feedback: No that's not right - option: Line 2 should start with less indentation feedback: That is correct - question_text: what is wrong with this code? + question_text: Bu kodun ne sorunu var? code: "lives = 100\n {while} lives != 0\n answer = {ask} 'Are you annoyed yet?'\n{if} answer == 'yes'\n lives = lives - 1\n" correct_answer: D hint: Look closely at the indentation From 48b77541d91629fa80725b5c26ededfc11d93e68 Mon Sep 17 00:00:00 2001 From: gallegonovato Date: Sun, 1 Oct 2023 09:42:04 +0200 Subject: [PATCH 02/15] Translated using Weblate (Spanish) Currently translated at 100.0% (24 of 24 strings) Translated using Weblate (Spanish) Currently translated at 99.6% (1919 of 1926 strings) Co-authored-by: gallegonovato Translate-URL: https://hosted.weblate.org/projects/hedy/client-messages/es/ Translate-URL: https://hosted.weblate.org/projects/hedy/quizzes/es/ Translation: Hedy/Quizzes Translation: Hedy/client-messages --- content/client-messages/es.yaml | 2 +- content/quizzes/es.yaml | 62 ++++++++++++++++----------------- 2 files changed, 32 insertions(+), 32 deletions(-) diff --git a/content/client-messages/es.yaml b/content/client-messages/es.yaml index 2c8ca6981a9..de3625e9a36 100644 --- a/content/client-messages/es.yaml +++ b/content/client-messages/es.yaml @@ -22,4 +22,4 @@ songs: 🎵,🎶 dice: 🎲 Empty_output: Este código funciona pero no imprime nada. Agrega un comando print a tu código o usa una tortuga para mostrar salida. Program_repair: Este podría ser código correcto, ¿lo puedes arreglar? -Errors_found: ¡Cometiste un error! No te preocupes, Hedy está intentado encontrar los errores +Errors_found: ¡Has cometido un error! No te preocupes, seguimos ejecutando el programa diff --git a/content/quizzes/es.yaml b/content/quizzes/es.yaml index aa98895f28a..4b74bcd2767 100644 --- a/content/quizzes/es.yaml +++ b/content/quizzes/es.yaml @@ -1253,7 +1253,7 @@ levels: - option: "infinito" feedback: "En este nivel sólo puedes repetir una línea cada vez" correct_answer: "B" - hint: "Sólo puedes repetir 1 línea cada vez" + hint: "Sólo se puede repetir una línea a la vez" question_score: '10' 2: question_text: "¿Qué código es correcto?" @@ -1279,7 +1279,7 @@ levels: ``` feedback: "¡Eso es!" correct_answer: "D" - hint: "Primero el comando repetir, después el comando `{print}`" + hint: "Primero el comando `{repeat}`, luego el comando `{print}`" question_score: '10' 3: question_text: "¿Este código está bien o mal?" @@ -1317,7 +1317,7 @@ levels: `{times}` feedback: "`{times}` está mal escrito" correct_answer: "A" - hint: "Yo soy es incorrecto, no puedes usar apóstrofes" + hint: "Estoy equivocado, no puedes usar apóstrofes en una oración" question_score: '10' 5: question_text: "¿Este código está bien o mal?" @@ -1478,8 +1478,8 @@ levels: feedback: "Esto no está en el orden correcto." - option: | ``` - {repeat} 4 {times} 'si estás feliz y lo sabes' - {repeat} 2 veces 'aplaude' + {repeat} 4 {times} 'si eres feliz y lo sabes' + {repeat} 2 {times} 'aplaude' {print} 'y realmente quieres mostrarlo' {print} 'aplaude' ``` @@ -1517,7 +1517,7 @@ levels: - option: "Este comando `{print}` se tiene que eliminar." feedback: "No, lo necesitas." - option: "Hay una falta de ortografía en el comando `{repeat}`." - feedback: "No, la ortografía correcta es repetir" + feedback: "No, `{repeat}` es la ortografía correcta" - option: "La segunda línea tiene que empezar con 4 espacios de sangría." feedback: "¡Correcto!" correct_answer: "D" @@ -1539,7 +1539,7 @@ levels: - option: "Baby shark tututudutudu\nBaby shark\nBaby shark\nBaby shark\n" feedback: "Qué se repite y qué no." correct_answer: "C" - hint: "¿Qué se repite y qué no?." + hint: "¿Qué se está repitiendo y qué no?" question_score: '10' 4: question_text: "¿Qué resultado es correcto?" @@ -1619,11 +1619,11 @@ levels: salsa = {ask} '¿Qué salsa quieres?' {print} 'Unas patatas fritas con ' salsa {if} comida {is} pizza - ingrediente = {ask} '¿Qué ingrediente le gustaría?' + ingrediente = {ask} '¿Qué ingrediente te gustaría?' {print} 'Una pizza con ' ingrediente - {print} 'Gracias por su pedido' + {print} 'Gracias por tu pedido' mp_choice_options: - - option: "¡Nada de este código es correcto!" + - option: "Nada. ¡Este código es correcto!" feedback: "¡Algo falla!" - option: "No se permite usar un comando `{if}` tras un comando `{ask}`." feedback: "¡Lo eres!" @@ -1769,20 +1769,20 @@ levels: 3: question_text: "¿Qué caso deberías elegir para ganar un millón de dólares?" code: |- - {print} '¡Elige la caja correcta y gana!' - caja = {ask} '¿Qué caja elegirás? 1 o 2?' - {if} caja {is} 1 - acción = {ask} '¿La abres o la vendes?' - {if} acción {is} vender - {print} 'Vendes tu caja por 10 dólares' - {if} acción {is} abrir - {print} 'Abres la caja y ganas una tarta de manzana' - {if} caja {is} 2 - acción = {ask} '¿La abres o la vendes?' - {if} acción {is} vender - {print} 'Vendes la caja por 500 dólares' - {if} acción {is} abrir - {print} '¡Abres la caja y ganas un millón de dólares!' + {print} '¡Elige el caso correcto y gana!' + caso = {ask} '¿Qué caso escogerás? 1 o 2?' + {if} caso {is} 1 + acción = {ask} '¿Abrirlo o venderlo?' + {if} acción {is} vender + {print} 'Vendes tu caso por 10 dólares' + {if} acción {is} abierta + {print} 'Abres el caso y ganas una tarta de manzana' + {if} caso {is} 2 + acción = {ask} '¿Abrirlo o venderlo?' + {if} acción {is} vender + {print} 'Vendes el estuche por 500 dólares' + {if} acción {is} abierta + {print} '¡Abre el caso y gana un millón de dólares!' mp_choice_options: - option: "caso 1, vende" feedback: "¡No ganas un millón!" @@ -1869,7 +1869,7 @@ levels: - option: "`{if}` `{else}` `{repeat}`" feedback: "¡Sigue así!" - option: "`{if}` `{else}` `{repeat}` `{print}`" - feedback: "No con imprimir" + feedback: "No con {print}" correct_answer: "C" hint: "La sangría ocurre en la línea inferior de algunos comandos" question_score: '10' @@ -1917,7 +1917,7 @@ levels: hint: "Tras cada comando `{if}`, la línea de debajo debe tener sangría" question_score: '10' 8: - question_text: "¿Qué falla en este código?" + question_text: "¿Qué es lo que falla en este código?" code: |- edad = {ask} '¡Feliz cumpleaños! ¿Qué edad tienes?' cantar = {ask} '¿Quieres que cantemos?' @@ -1929,7 +1929,7 @@ levels: feedback: "Sí puedes." - option: "La variable llamada 'edad' se usa después como 'años'" feedback: "¡Buen ojo! ¡Buen trabajo!" - - option: "No está permitido empezar con 8 espacios, como pasa en las líneas 4 y 5" + - option: "No puedes empezar con 8 espacios, como la línea 5" feedback: "De hecho debes empezar así." - option: "Un código siempre debe empezar con un comando `{print}` en la primera línea" feedback: "Eso no es cierto." @@ -1970,7 +1970,7 @@ levels: question_score: '10' 11: 1: - question_text: "¿Qué palabra debería ir en el lugar del interrogante?" + question_text: "¿Qué palabra debe ir en el lugar del espacio en blanco?" code: |- {for} i {in} _ 1 {to} 10 {print} i @@ -2073,7 +2073,7 @@ levels: feedback: "Ahora Hedy imprime los números del 0 al 10 en vez de de 10 a 0." - option: | ``` - {for} i {in} {range} 0 to 10 + {for} i {in} {range} 0 {to} 10 {print} - i ``` feedback: "Hedy imprimiría números negativos en este caso." @@ -2127,7 +2127,7 @@ levels: hint: "0 también cuenta. Así que 0,1,2 son 3 veces." question_score: '10' 7: - question_text: "¿Qué debería ir en lugar del interrogante?" + question_text: "¿Qué debe haber en el lugar del espacio en blanco?" code: |- {print} 'Bienvenido a la cena de Hedys' gente = {ask} '¿Cuántas personas comerán aquí esta noche?' @@ -2497,7 +2497,7 @@ levels: feedback: Todos los diferentes valores de sabores deberían estar entre comillas. - option: "```\nsabores = 'vainilla, fresa, chocolate'\n{print} 'Me gustaría tomar una tarta de ' sabores {at} {random}\n```" feedback: ¡Muy bien! - - option: "\n```\nsabores = 'vainilla, fresa, chocolate'\n{print} 'Me gustaría tomar una tarta de ' sabores {at} {random} \n```\n" + - option: "\n ```\n sabores = 'vainilla, fresa, chocolate'\n {print} 'Me gustaría un pastel de ' sabores {at} {random} '.'\n ```\n" feedback: Todos los diferentes valores de sabores deberían estar entre comillas. correct_answer: C hint: La segunda línea es la misma en cada código, presta atención a la primera línea From 0342327d01762dea216b0665a3ce97c5648ad355 Mon Sep 17 00:00:00 2001 From: Kamborio Date: Sun, 1 Oct 2023 09:42:04 +0200 Subject: [PATCH 03/15] Translated using Weblate (Spanish) Currently translated at 100.0% (438 of 438 strings) Translated using Weblate (Spanish) Currently translated at 100.0% (1926 of 1926 strings) Co-authored-by: Kamborio Translate-URL: https://hosted.weblate.org/projects/hedy/quizzes/es/ Translate-URL: https://hosted.weblate.org/projects/hedy/webpages/es/ Translation: Hedy/Quizzes Translation: Hedy/Webpages --- content/pages/es.yaml | 96 ++++++++++++++++++++--------------------- content/quizzes/es.yaml | 6 +-- 2 files changed, 51 insertions(+), 51 deletions(-) diff --git a/content/pages/es.yaml b/content/pages/es.yaml index 333395c0066..a9400f6b572 100644 --- a/content/pages/es.yaml +++ b/content/pages/es.yaml @@ -21,45 +21,45 @@ sections: - title: Preparaciones key: preparaciones subsections: - - title: "For teachers" + - title: "Para profesores" text: | - You can prepare your classes at the For Teachers page. On this page you'll find everything you'll need to teach with Hedy, like your classes, your adventures and slides. All the functionalities of the for teachers page are explained below. - - title: Creando una clase + Puedes preparar tus clases en la página Para profesores. En esta página encontrarás todo lo que necesitas para dar clase con Hedy, como tus clases, tus aventuras y diapositivas. Todas las funcionalidades de la página para profesores se explican a continuación. + - title: Crear una clase text: "Como profesor, puedes crear una clase para tus estudiantes. En esta clase puedes ver las cuentas de cada uno de los estudiantes y sus programas. También puedes monitorear su progreso.\nEste vídeo demuestra cómo crear rápidamente una clase en Hedy.\n" - - title: "Customize your Class" + - title: "Personalizar tu clase" text: | - You can customize your class and choose which adventures are available for your students. This way your students won't be overwhelmed by the amount of adventures and levels, and they can specifically focus on the adventures you'd like them to practice with. - Click on your class on the for teachers page and choose 'customize class'. On this page you can select levels, set opening dates, unlock level tresholds and more. + Puedes personalizar tu clase y elegir qué aventuras están disponibles para los alumnos. De esta manera tus alumnos no se agobiarán por la cantidad de aventuras y niveles, y pueden centrarse específicamente en las aventuras que quieras que practiquen. + Haz clic en tu clase en la página para los profesores y elige 'personalizar clase'. En esta página puedes seleccionar niveles, establecer fechas de inicio, desbloquear umbrales de nivel y más. - **Select and order adventures** + **Selecciona y ordena las aventuras** - In this section you can select and order adventures. The pink tabs are adventures with new commands. The gray tabs are regular adventures. To rearrange the order of the adventures, you can drag the tabs. However, we do advise you to use the regular order of adventures as the Hedy team made sure the adventures go from easiest to hardest. - If you want to remove an adventure for your students, simply click the cross on the adventure's tab. + En esta sección puedes seleccionar y ordenar las aventuras. Las pestañas rosas son aventuras con nuevos comandos. Las pestañas grises son aventuras normales. Para reorganizar el orden de las aventuras, puedes arrastrar las pestañas. Sin embargo, te recomendamos usar el orden habitual de las aventuras ya que el equipo de Hedy se aseguró de que las aventuras fueran de más fácil a más difícil. + Si quieres eliminar una aventura para tus alumnos, simplemente haz clic en la cruz en la pestaña de las aventuras. - If you want to add adventures, for instance your own adventure or an adventure you accidentally removed, use this menu to add the adventure to your students' adventures. Simply click the adventure you want to add and it (re)appears in the line of adventures. To undo all your changes to the adventures, click 'Reset'. + Si quieres añadir aventuras, por ejemplo tu propia aventura o una aventura que hayas eliminado accidentalmente, usa este menú para añadir la aventura a las aventuras de tus añumnos. Simplemente haz clic en la aventura que quieras añadir y (re)aparecerá en la línea de las aventuras. Para deshacer todos tus cambios en las aventuras, haz clic en 'Restablecer'. - **Opening dates** + **Fechas de inicio** - With this feature you can set open_ingdates for the levels. This way you can make a lesson plan before your course begins and not worry about opening new levels each week. In the image above the first level is opened directly, the second will open the 23th of september, and the 3rd level the week after. The other levels are closed. - Don't want to set opening dates? No problem, just leave this section blank. + Con esta función puedes establecer fechas de inicio para tus niveles. De esta manera puedes hacer un plan de estudio antes de que tu curso empiece y no te preocupes de abrir nuevos niveles cada semana. En la imagen anterior el primer nivel se abre directamente, el segundo se abrirá el 23 de septiembre, y el tercer nivel la semana siguiente. Los otros niveles están cerrados. + ¿No quieres establecer fechas de inicio? Sin problema, deja esta sección en blanco. - **Unlock level tresholds** + **Desbloquear umbrales de nivel** - This featue allows you to set a treshold for your students' quiz grade, before they can continue to the next level. For example, if you enter "80" your students have to score at least 80% on the quiz before they are allowed to go to the next level. If they haven't met the treshold, they are not allowed to continue and have to retake the quiz. - Don't want to use the treshold? No worries, just keep this section blank. + Esta función te permite establecer un umbral para las notas de los cuestionarios de tus alumnos, antes de que puedan continuar al siguiente nivel. Por ejemplo, si introduces "80" tus alumnos tienen que conseguir una puntuación de al menos 80% en el cuestionario antes de que se les permita ir al siguiente nivel. Si no llegan al umbral, no se les permitirá continuar y tendrán que rehacer el cuestionario. + ¿No quieres usar el umbral? No te preocupes, deja esta sección en blanco. - **Other settings** + **Otros ajustes** - There are some other setting that could be usefu to you aswell. Our first extra setting is 'Mandatory developer's mode'. In developers mode the students only see their input and output screens and the run button. The adventures are hidden and there are no cheatsheets available. This might come in handy in a test situation. - If this option is not selected the developer's mode is available for students too as a voluntairy option. + Hay algunos otros ajustes que podrían se útiles también para ti. Nuestro primer ajustes adicional es 'Obligatorio modo desarrollador'. En el modo desarrollador los alumnos sólo ven sus pantallas de entrada y salida y el botón ejecutar. Las aventuras están ocultas y no está disponible la ficha de ayuda. Esto puede ser de utilidad en una situación de examen. + Si no se elige esta opción, el modo desarrollador también está disponible para los alumnos como una opción voluntario. - If you want all your students to be visible in de class highscore, you can select the second option. - With all the other options you can choose to hide some functions or content for your students, this might help them focus more. + Si quieres que todos los alumnos sean visibles en las mejores puntuaciones de la clase, puedes elegir la segunda opción. + Con las demás opciones puedes elegir ocultar algunas funciones o contenido para tus alumnos, les podría ayudar a concentrarse más. - **Save** + **Guardar** - Don't forget to save your changes when you're done costumizing your class. + No olvides guardar tus cambios cuando hayas acabado de personalizar tu clase. - title: Cuentas de Estudiantes text: "Hay 2 formas de permitir que tus estudiantes se unan a tu clase: Puedes dejarles crear sus propias cuentas, o puedes crearlas por ellos.\n\n**Los estudiantes crean sus propias cuentas**\nTus estudiantes pueden in a la página web de Hedy y crear su cuenta, igual que tú lo hiciste. Para tenerlos en tu clase, ellos simplemente deber hacer clic en el enlace de la invitación.\nPuedes encontrar el enlace para invitarlos en la página de la clase y enviarlo a tus estudiantes. Ten en cuenta que tus estudiantes deben estar conectados en Hedy cuando hagan clic en el enlace, para hacer que todo funcione fácilmente.\n\n**Tú creas las cuentas para tus estudiantes**\nAlgunas veces es más fácil que tú crees las cuentas para tus estudiantes. Esto se hace al hacer clic en el botón 'crear cuentas de estudiantes' y rellenando los nombres de usuarios y contraseñas por ellos.\nLos estudiantes pueden conectarse con el nombre de usuario y contraseña que elegiste. Después, ellos pueden cambiar su nombre de usuario o contraseña si quieren, manteniéndose en tu clase.\nEste vídeo muestra cómo agregar estudiantes a tu clase de la manera más rápida y fácil.\nTambién puedes invitar manualmente a un alumno a tu clase con el botón 'Invitar por nombre de usuario'.\n" - title: Escoger lenguage preferido @@ -71,8 +71,8 @@ sections: title: 'Enseñando con Hedy' - title: "Diapositivas" text: | - When giving instructions you might want to use our slides. Our slides are available on the 'For teachers' page. There is a set of slides for each level. In the slides all the new commands for that level are explained. We have aimed to explain why these changes are nessecary or how the new commands come in handy. - We also give some examples of how the new commands can be used. You could of course also use your own slides, or just open Hedy and show your students around the website. Whichever you prefer to give the best Hedy lessons! + Al dar instrucciones quizás quieras usar nuestras diapositivas. Están disponibles en la página 'Para profesores'. Hay un conjunto de diapositivas por cada nivel. En las diapositivas se explican todos los nuevos comandos para este nivel. Hemos intentado explicar por qué estos cambios son necesarios o cómo resultan útiles los nuevos comandos. + También damos algunos ejemplos de cómo se usan los nuevos comandos. Por supuesto también puedes usar tus propias diapositivas, o abrir Hedy y mostrar a tus alumnos la página web. ¡Lo que tu prefieras para dar las mejores lecciones de Hedy! - title: Introducción text: "Puedes empezar tus clases activando los conocimientos previos de tus alumnos: ¿Qué saben ya sobre el tema?, ¿Qué aprendieron en la lección anterior? y ¿qué errores cometieron de lo que han aprendido hasta ahora?\nDe este modo, todos los comandos aprendidos previamente y los errores cometidos con frecuencia estarán frescos en la memoria de tus alumnos cuando empieces a introducir la nueva lección.\n" - title: Introducción de nuevos conceptos y comandos @@ -121,11 +121,11 @@ sections: text: | ¿Te distraen todas las aventuras o quieres hacer un programa largo? Entonces echa un vistazo al interruptor 'Modo programador' debajo de tu pantalla de programación. El modo programador te permite a ti y tus alumnos usar una pantalla de programación más grande. - - title: "Cheat sheets" + - title: "Fichas de ayuda" text: | En cada nivel hay un botón con este emoji 🤔. Tú y tus alumnos podéis encontrar allí las "hojas de trucos". En esta hoja de trucos, puedes encontrar todos los comandos que se pueden utilizar en este nivel en su forma correcta. Así que si has olvidado cómo funciona un comando, ¡simplemente echa un vistazo a la hoja de trucos! - - title: "Other useful features" + - title: "Video" text: | Este vídeo te muestra aún más funciones de Hedy, como los trucos y el conmutador de las palabras clave. - title: "Respuestas a los ejercicios" @@ -148,19 +148,19 @@ sections: error_text: "Los comandos no funcionarán si están en mayúsculas.\n" error_code: "Preguntar ¿Por qué mi código no funciona?\nImprimir Porque estoy usando mayúsculas.\n" solution_text: "Quita las mayúsculas.\n" - solution_code: "preguntar ¿Por qué mi código funciona ahora?\nimprimir Porque removí las mayúsculas\n" - - title: Alumnos utilizan echo sin ask + solution_code: "preguntar ¿Por qué mi código funciona ahora?\nimprimir ¡Porque eliminé las mayúsculas!\n" + - title: Alumnos utilizan eco sin preguntar example: error_text: "El comando Echo se utiliza para repetir una respuesta después de un comando ask. Sin ask, echo no hará nada.\n" - error_code: "echo Tu nombre es\n" + error_code: "ecoo Tu nombre es\n" solution_text: "Agrega un comando preguntar para hacerlo funcionar\n" - solution_code: "ask ¿Cuál es tu nombre?\necho Tu nombre es\n" + solution_code: "preguntar ¿Cómo te llamas?\neco Tu nombre es\n" - title: Los alumnos quieren su palabra echo (variable) en el medio de una frase example: error_text: "Y están en lo cierto! Por eso ellos aprenderán a utilizar variables adecuadas en el siguiente nivel.\n" - error_code: "ask ¿Cuál lenguaje de programación es el más divertido?\necho es el mejor!\n" + error_code: "preguntar ¿Qué lenguaje de programación es el más divertido?\neco ¡es el mejor!\n" solution_text: "En el nivel 1 tenemos que llegar hasta aquí:\n" - solution_code: "ask ¿Cuál lenguaje de programación es el más divertido?\necho el mejor es...\n" + solution_code: "preguntar ¿Qué lenguaje de programación es el más divertido?\neco el mejor es...\n" - title: 'Tortuga: los estudiantes hacen que la tortuga se salga de la pantalla' example: solution_code: "adelante 100\ngirar 90\n" @@ -186,7 +186,7 @@ sections: error_text: "En este nivel, los estudiantes aprender sobre variables. El comando preguntar requiere variables también, peroo los estudiantes olvidan esto.\n" error_code: "preguntar ¿Qué te gustaría comer?\n" solution_text: "En este nivel tienes que decirle a Hedy dónde debe guardar tu respuesta para ser usada luego. Esto se llama una variable.\n" - solution_code: "ordenar es preguntar ¿Que te gustaría comer?\n" + solution_code: "pedir es preguntar ¿Qué te gustaría comer?\n" - title: 'Los estudiantes intentan usar el comando `{echo}`. ' example: error_text: "Para algunos estudiantes, puede ser frustrante aprender que el comando `{echo}` ya no funciona. Por eso es muy importante explicar las ventajas de usar variables. ¡Por ejemplo, puedes usar múltiples variables en un código y ponerlas donde quieras en una frase!\n" @@ -202,21 +202,21 @@ sections: - title: Los estudiantes usan nombres de variables largos que contienen dos palabras. example: error_text: "Las variables deben nombrarse con una sola palabra. Puedes usar un guion bajo (_) para conectar dos palabras. Eso cuenta como una.\n" - error_code: "puerta escogida is ask ¿Qué puerta eliges?\n" + error_code: "puerta escogida es preguntar ¿Qué puerta eliges?\n" solution_text: "Añade un guion bajo.\n" - solution_code: "puerta_elegida is ask ¿qué puerta escoges?\n" + solution_code: "puerta_elegida es preguntar ¿qué puerta escoges?\n" - title: Es posible que los estudiantes usen dos nombres diferentes para la misma variable example: error_text: "En este ejemplo, el estudiante ha usado 'horse' y 'name' para la misma variable.\n" - error_code: "caballo is ask ¿Cómo se llama tu caballo?\nprint Tu caballo se llama nombre\n" + error_code: "caballo es preguntar ¿Cómo se llama tu caballo?\nimprimir Tu caballo se llama nombre\n" solution_text: "Comprueba siempre cuando una variable tiene el mismo nombre en todo el código. Las pequeñas diferencias pueden ser difíciles de detectar (por ejemplo los plurales) pero interferirán con tu código.\n" - solution_code: "nombre is ask ¿Cómo se llama tu caballo?\nprint Tu caballo se llama nombre\n" + solution_code: "nombre es preguntar ¿Cómo se llama tu caballo?\nimprimit Tu caballo se llama nombre\n" - level: '3' sections: - title: Los estudiantes intentan imprimir listas enteras example: error_text: "No se puede imprimir una lista. Con {at} {random} sólo puedes imprimir un elemento de la lista.\n" - error_code: "productos is apples, milk, chocolate\nprint productos\n" + error_code: "productos es manzanas, leche, chocolate\nimprimir productos\n" solution_text: "Para imprimir una lista de todos los productos de la compra, simplemente tienes que ponerlos después de un comando `{print}`. Si no, puedes usar la lista para imprimir un objeto con `{at}` `{random}`.\n" solution_code: "{print} manzanas, leche, chocolate\n\no\n\ncomestibles {is} manzanas, leche, chocolate\n{print} comestibles {at} {random}\n" - title: Los alumnos utilizan el nombre de una variable o lista como texto normal @@ -270,7 +270,7 @@ sections: title: Los alumnos olvidan utilizar las comillas en ambos lados del texto - title: Los alumnos utilizan las comillas equivocadas example: - error_text: "It is important to start your lesson by checking if the students know how to type a quotation mark properly. ELse they might use the \"double quotes\" or the `skewed one`.\n" + error_text: "Es importante empezar tu clase comprobando si los alumnos saben como usar las comillas adecuadamente. Sino podrían usar las \"comillas dobles\" o las `torcidas`.\n" error_code: "imprimir `Bienvenido al restaurante`\ncomida es preguntar \"¿Qué te gustaría pedir?\"\n" solution_text: "Estas son las comillas correctas:\n" solution_code: "imprimir 'Bienvenido al restaurante'\ncomida es preguntar '¿Qué te gustaría pedir?'\n" @@ -279,7 +279,7 @@ sections: error_text: "Desde este nivel en adelante no se permiten los apóstrofes. Se suelen usar en inglés al escribir contracciones como you're, don't o what's.\n" error_code: "imprimir 'No está permitido escribir esto'\n" solution_text: "Puedes elegir usar la gramática incorrecta y solo omitir el apóstrofe. O podrías usar el ` como un apóstrofe.\n" - solution_code: "print 'Se permite que escribas esto (Youre)'\nprint 'Y también puedes escribir esto (you`re)'\n" + solution_code: "imprimir 'Se permite que escribas esto (Youre)'\nimprimir 'Y también puedes escribir esto (you`re)'\n" level: '4' - level: '5' sections: @@ -297,7 +297,7 @@ sections: solution_code: "caballo es preguntar 'Cómo se llama tu caballo'\nsi caballo es Hoguera imprimir '¡mola!'\nsi no imprimir '¡no mola tanto!'\n" - title: Los estudiantes aún olvidan las comillas en ambos lados example: - error_text: "If commandos can get very long and students tend to forget to use quotes.\n" + error_text: "Los códigos que usan el comando `if` pueden extenderse mucho y los alumnos tienden a olvidar usar comillas.\n" error_code: "si nombre es Hedy imprimir divertido\nsi no imprimir '¡meh!\n" solution_text: "Usa siempre dos comillas en un comando imprimir.\n" solution_code: "si nombre es Hedy imprimir 'divertido'\nsi no imprimir '¡meh!'\n" @@ -450,7 +450,7 @@ sections: - sections: - example: solution_text: "En este caso, la persona debería responder sí a ambas preguntas, así que debes usar `and`.\n" - solution_code: "uego es preguntar '¿Quieres jugar a un juego?'\ntiempo es preguntar '¿Tienes tiempo para jugar?'\nsi juego es 'sí' y tiempo es 'sí'\n imprimir '¡Juguemos!'\n" + solution_code: "juego es preguntar '¿Quieres jugar a un juego?'\ntiempo es preguntar '¿Tienes tiempo para jugar?'\nsi juego es 'sí' y tiempo es 'sí'\n imprimir '¡Juguemos!'\n" error_text: "Ambos comandos podrían parecer similares, pero su función es muy diferente.\n" error_code: "juego es preguntar '¿Quieres jugar a un juego?'\ntiempo es preguntar '¿Tienes tiempo para jugar?'\nsi juego es 'sí' o tiempo es 'sí'\n imprimir '¡Juguemos!'\n" title: Los alumnos confunden `and` con `or` @@ -603,13 +603,13 @@ start-sections: - title: "Programación multilingüe" text: | Mientras que la mayoría de los lenguajes de programación textual tienen palabras clave en inglés, como `for` o `repeat`, ¡Hedy puede usarse en cualquier lenguaje! Ahora mismo admitimos 39 idiomas distintos, incluyendo español, árabe, chino simplificado e hindú. Si tu idioma no está disponible siempre puedes iniciar una nueva traducción. -- title: "Multi-lingual programming" +- title: "Aprendizaje paso a paso" text: | - While almost all textual programming language have keywords in English, such as `for` or `repeat`, Hedy can be used in any language! We currently support 39 different languages, including Spanish, Arabic, Simplified Chinese and Hindi. If your language is not available you can always start a a new translation. -- title: "Built for the classroom" + Aprender un lenguaje de programación puede ser agobiante, ya que los alumnos tienen que aprender los conceptos (por ejemplo condicionales si-sino o bucles) y la sintaxis (como comillas y paréntesis) a la vez. En Hedy, los conceptos se introducen primero con muy poca sintaxis y después se perfeccionan. ¡Una forma de aprender científicamente probada! +- title: "Hecho para el aula" text: | - Hedy is suitable for kids aged 10 and up and designed for classroom use. - Teachers can use our free, built-in lesson plans, but can also author their own lessons and load these into the Hedy user interface. + Hedy es adecuado para niños de 10 años o más y diseñado para usarse en el aula. + Los profesores lo pueden usar gratis, crear planes de estudio integrados, pero también pueden escribir sus propias lecciones y cargarlas en la interfaz de usuario de Hedy. - title: "La programación en contexto" text: | ¡Hedy está pensado para todos los niños que quieran aprender a programar! Aunque se recomienda que sepan leer inglés con facilidad. diff --git a/content/quizzes/es.yaml b/content/quizzes/es.yaml index 4b74bcd2767..2bcc3a58837 100644 --- a/content/quizzes/es.yaml +++ b/content/quizzes/es.yaml @@ -2458,15 +2458,15 @@ levels: premios = 1 millón dólares, coche, sandwich nombres = Bob, Patrick, Sandy, Larry {for} premio {in} premios - {print} 'El ' premio 'lo gana ' nombres {at} {random} + {print} 'El ' premio 'lo gana ' nombres {at} {random} mp_choice_options: - option: "Todo el mundo siempre ganará un premio." feedback: "Eso no es cierto, puede que acabes sin llevarte un premio." - option: "Todos los premios siempre van a la misma persona." feedback: "Eso no es cierto. Todos los premios se reparten, pero a gente al azar" - - option: "Larry nunca ganará con un premio" + - option: "Larry nunca ganará un premio" feedback: "Eso no es cierto. Larry tiene las mismas probabilidades que los otros" - - option: "Alguno podría ganar con dos premios" + - option: "Alguno podría ganar dos premios" feedback: "¡Lo conseguiste!" correct_answer: "D" hint: "Intenta imaginar el resultado de este código." From 0018c23adf0dbd8b13ba687c097e55d7ecbba5c6 Mon Sep 17 00:00:00 2001 From: aniollidon Date: Sun, 1 Oct 2023 09:42:04 +0200 Subject: [PATCH 04/15] Translated using Weblate (Catalan) Currently translated at 97.7% (43 of 44 strings) Translated using Weblate (Catalan) Currently translated at 34.7% (32 of 92 strings) Translated using Weblate (Catalan) Currently translated at 32.4% (225 of 694 strings) Translated using Weblate (Catalan) Currently translated at 7.7% (23 of 297 strings) Translated using Weblate (Catalan) Currently translated at 56.0% (28 of 50 strings) Translated using Weblate (Catalan) Currently translated at 100.0% (438 of 438 strings) Translated using Weblate (Catalan) Currently translated at 100.0% (24 of 24 strings) Translated using Weblate (Catalan) Currently translated at 68.7% (376 of 547 strings) Translated using Weblate (Catalan) Currently translated at 25.9% (49 of 189 strings) Translated using Weblate (Catalan) Currently translated at 4.1% (80 of 1926 strings) Translated using Weblate (Catalan) Currently translated at 100.0% (63 of 63 strings) Translated using Weblate (Spanish) Currently translated at 100.0% (547 of 547 strings) Translated using Weblate (Catalan) Currently translated at 27.9% (194 of 694 strings) Translated using Weblate (Catalan) Currently translated at 56.0% (28 of 50 strings) Translated using Weblate (Catalan) Currently translated at 11.7% (64 of 547 strings) Translated using Weblate (Catalan) Currently translated at 24.8% (47 of 189 strings) Translated using Weblate (Spanish) Currently translated at 100.0% (50 of 50 strings) Co-authored-by: aniollidon Translate-URL: https://hosted.weblate.org/projects/hedy/achievements/ca/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/ca/ Translate-URL: https://hosted.weblate.org/projects/hedy/client-messages/ca/ Translate-URL: https://hosted.weblate.org/projects/hedy/commands/ca/ Translate-URL: https://hosted.weblate.org/projects/hedy/keywords/ca/ Translate-URL: https://hosted.weblate.org/projects/hedy/parsons/ca/ Translate-URL: https://hosted.weblate.org/projects/hedy/parsons/es/ Translate-URL: https://hosted.weblate.org/projects/hedy/quizzes/ca/ Translate-URL: https://hosted.weblate.org/projects/hedy/slides/ca/ Translate-URL: https://hosted.weblate.org/projects/hedy/tutorials/ca/ Translate-URL: https://hosted.weblate.org/projects/hedy/web-texts/ca/ Translate-URL: https://hosted.weblate.org/projects/hedy/web-texts/es/ Translate-URL: https://hosted.weblate.org/projects/hedy/webpages/ca/ Translation: Hedy/Achievements Translation: Hedy/Adventures Translation: Hedy/Cheatsheets Translation: Hedy/Keywords Translation: Hedy/Parsons Translation: Hedy/Quizzes Translation: Hedy/Texts Translation: Hedy/Tutorials Translation: Hedy/Webpages Translation: Hedy/client-messages Translation: Hedy/slides --- content/achievements/ca.yaml | 2 +- content/adventures/ca.yaml | 100 +- content/cheatsheets/ca.yaml | 6 +- content/client-messages/ca.yaml | 4 +- content/keywords/ca.yaml | 44 +- content/pages/ca.yaml | 32 +- content/parsons/ca.yaml | 12 +- content/parsons/es.yaml | 2 +- content/quizzes/ca.yaml | 8 +- content/slides/ca.yaml | 2 +- content/tutorials/ca.yaml | 9 +- translations/ca/LC_MESSAGES/messages.po | 1106 +++++++---------------- translations/es/LC_MESSAGES/messages.po | 9 +- 13 files changed, 450 insertions(+), 886 deletions(-) diff --git a/content/achievements/ca.yaml b/content/achievements/ca.yaml index 76b0596abba..55598bfc0d5 100644 --- a/content/achievements/ca.yaml +++ b/content/achievements/ca.yaml @@ -25,7 +25,7 @@ achievements: text: "Executeu un programa amb èxit després d'un error\n" did_you_say_please: title: Has dit si us plau? - text: "Creeu un programa amb l'ordre 'preguntar'.\n" + text: "Creeu un programa amb la comanda 'ask'.\n" error_or_empty: title: Error o buit? text: "Crea un programa que no tingui output\n" diff --git a/content/adventures/ca.yaml b/content/adventures/ca.yaml index 06b68d34f05..079b8eee3c9 100644 --- a/content/adventures/ca.yaml +++ b/content/adventures/ca.yaml @@ -7,8 +7,8 @@ adventures: start_code: '{print} hola món!' story_text: "Benvingut a Hedy!\n\nPer provar el codi tan sols has de fer clic al botó 'Executa' sota el bloc de programació.\n\nEstàs llest?, ves a la següent pestanya per aprendre la teva primera comanda.\n" 18: - start_code: "nom = 'Hedy'\n{print}('Em dic ', nom)" - story_text: "We arrived at real Python code! That means we need to use parentheses with {print} and {range} from now on." + start_code: "{print} ('Bona feina!!!')" + story_text: "L'enhorabona! Has assolit l'últim nivell de Hedy! El codi has creat aquí pot ser copiat a entorns reals de Python com replit o PyCharm, i pots continuar aprenent allà!\nTingues en compte que aquell Python només pot llegir comandes en anglès, així que si has estat utilitzant altres llengües, ara les hauràs de posar en anglès.\n" 2: story_text: "Enhorabona! Has arribat al nivell 2. Segurament ja has fet codis genials!\nDurant el primer nivell t'hauràs adonat que la comanda `{echo}` només pot guardar una peça d'informació cada vegada.\nPer exemple, a l'aventura del restaurant podies repetir el que el client volia menjar, o el que volia beure, però no tot d'una vegada.\n" example_code: "**Alerta! Aquest codi no funciona!**\nA Hedy les comandes van canviant. Per exemple la comanda `{echo}` només funciona al nivell 1. En aquest nivell aprendràs una millor manera de respondre.\n\n```\n{print} Benvingut a Hedy\n{ask} Què voldria per menjar?\n{echo} Vosté vol\n{ask} Què voldria per beure?\n{echo} Vosté vol\n```\n" @@ -18,7 +18,7 @@ adventures: story_text: "Al nivell anterior has après què és una variable i com la pots utilitzar per fer les teves aventures de forma més interactiva.\nPerò... Hi ha moltes més coses a fer amb les variables! També pots utilitzar les variables per fer llistes.\nFins i tot pots deixar que Hedy esculli una paraula aleatòria d'una llista, permetent-nos fer jocs reals!\nFes-hi una ullada a la següent pestanya!\n" start_code: '{print} hola món!' 4: - start_code: "{print} 'Hola món'" + start_code: "nom {is} Sofia\n{print} El meu nom és nom\n" story_text: "Als nivells anteriors has estat practicant amb les variables, i segurament t'has trobat amb el següent problema.\nEn intentar executar un codi com aquest:\n\nSegurament volies imprimir\n\n`My name is Sophie`\n\nperò Hedy ha imprès\n\n`My Sophie is Sophie`.\n\nEn aquest nivell se soluciona aquest problema fent servir les cometes.\n" example_code: "```\nnom {is} Sofia\n{print} El meu nom és nom\n```\n" 5: @@ -53,24 +53,24 @@ adventures: story_text: "Potser has provat d'utilitzar números en decimal a l'aventura del restaurant. Si ho has fet, probablement hauràs notat que Hedy no els entenia i ho arrodonia.\nA partir d'ara pots utilitzar nombres decimals.\n" example_code: "```\nhamburguesa = 5\nbeguda = 2\ntotal = hamburguesa + beguda\nprint 'Has demanat una hamburguesa i una beguda '\nprint 'Costa ' total ' euros, siusplau'\n```\n" 13: - start_code: "name = {ask} 'what is your name?'\nage = {ask} 'what is your age?'\n{if} name {is} 'Hedy' {and} age {is} 2\n {print} 'You are the real Hedy!'" - story_text: "We are now going to learn `{and}` and `{or}`! If you want to check two statements, you don't have to use two {if}'s but can use `{and}` and `{or}`. If you use `{and}`, both statements, left and right of the `{and}` need to be true. We can also use `{or}`. Then only one statement needs to be correct." - example_code: "```\nname = {ask} 'what is your name?'\nage = {ask} 'what is your age?'\n{if} name {is} 'Hedy' {and} age {is} 2\n {print} 'You are the real Hedy!'\n```\n" + start_code: "{print} 'Som-hi!, ves a la següent pestanya!'" + story_text: "Als nivells anteriors has après a posar dues comandes `{if}`, una dins d'una altra. Això funciona bé, però fa que els codis siguin llargs i poc pràctics com aquest:\n\nAquí, hauràs d'introduir tant el nom d'usuari com la contrasenya correcta.\nEn aquest nivell aprendràs a fer servir la comanda `{and}` que ens permetrà reduir considerablement la mida del codi i fer-lo més entenedor.\nComprova-ho!\n" + example_code: "```\nusuari = {ask} 'Quin és el teu nom d'usuari?'\ncontrassenya = {ask} 'Quina és la teva contrassenya?'\n{if} usuari {is} 'Hedy'\n {if} contrassenya {is} 'secreta'\n {print} 'Benvingut/da Hedy!'\n {else}\n {print} 'Accés denegat'\n{else}\n {print} 'Accés denegat!'\n```\n" 14: - start_code: "age = {ask} 'How old are you?'\n{if} age < 13\n {print} 'You are younger than me!'\n{else}\n {print} 'You are older than me!'" - story_text: "We are going to learn more new items. You might know them already from mathematics, the `<` and `>`.\nThe `<` checks if the first number is smaller than the second, for example age `<` 12 checks if age is smaller than 12.\nIf you want to check if the first number is smaller or equal to the second, you can use `<=`, for example age `<=` 11.\nThe `>` checks if the first number is bigger than the second, for example points `>` 10 checks if points is larger than 10.\nIf you want to check if the first number is bigger or equal to the second, you can use `>=`, for example points `>=` 11.\nYou use these comparisons in an `{if}`, like this:\n" - example_code: "```\nage = {ask} 'How old are you?'\n{if} age > 12\n {print} 'You are older than I am!'\n```\n" + start_code: "resposta = {ask} 'Vols aprendre més?'\n{if} resposta == 'sí'\n {print} 'Continua amb la següent aventura!'\n{if} resposta != 'sí'\n {print} 'Oh.. quina pena!'\n" + story_text: "Amb el programa següent pots calcular si has aprovat una assignatura (per tant, una nota superior o igual a 5).\nPots observar que aquest codi és extremadament ineficient, a causa de la longitud excessiva de la línia 5.\nTotes les notes de l'1 al 5 s'han programat per separat. Estàs de sort, ja que en aquest nivell aprendràs a fer-ho molt més curt!\n" + example_code: "```\nprimera_nota= {ask} 'Quina nota has tret al primer examen?'\nsegona_nota= {ask} 'Quina nota has tret al segon examen?'\nsuma = primera_nota + segona_nota\nmitjana_nota = suma / 2\n{if} mitjana_nota = 0 {or} mitjana_nota = 1 {or} mitjana_nota = 2 {or} mitjana_nota = 3 {or} mitjana_nota = 4\n {print} 'Oh no! Has suspés l'assignatura...'\n{else}\n {print} 'Perfecte! Has aprovat l'assignatura!'\n```\n" 15: - story_text: "We are going to learn a new loop, the `{while}` loop! We continue the loop as long as the statement is true.\nSo don't forget to change the value in the loop.\n\nIn the example code, we continue until a correct answer has been given.\nIf the correct answer is never given, the loop never ends!" - start_code: "answer = 0\n{while} answer != 25\n answer = {ask} 'What is 5 times 5?'\n{print} 'A correct answer has been given'" - example_code: "```\nanswer = 0\n{while} answer != 25\n answer = {ask} 'What is 5 times 5?'\n{print} 'A correct answer has been given'\n```\n" + story_text: "Pel joc de baix s'ha preparat el codi per assegurar-se que el jugador pot jugar tanta estona com vulgui ...\nEl codi, però és massa llarg i ineficaç. A més, què passa si el jugador vol jugar 101 partides en lloc de 100?\nNo es pot jugar fins a l'infinit?\nDurant aquest nivell aprendràs una comanda que fa la vida fàcil amb tot això!\n" + start_code: "{print} 'Som-hi!, cap a la següent pestanya!'" + example_code: "```\njoc {is} 'en curs'\n{for} i {in} {range} 1 {to} 100\n {if} joc {is} 'en curs'\n resposta = {ask} 'Vols continuar?'\n {if} resposta {is} 'no'\n joc {is} 'acabat'\n {if} resposta {is} 'si'\n {print} D'acord continuem'\n```\n" 16: - start_code: "fruita = ['poma', 'plàtan', 'cirera']\n{print} fruita" - story_text: "We are going to make lists the Python way, with square brackets around the lists! We also keep the quotation marks around each item like we have learned in previous levels.\nYou can use the square brackets as well to point out a place in the lists." - example_code: "```\nfriends = ['Ahmed', 'Ben', 'Cayden']\nlucky_numbers = [15, 18, 6]\n{for} i {in} {range} 1 {to} 3\n {print} 'the lucky number of ' friends[i]\n {print} 'is ' lucky_numbers[i]\n```\n" + start_code: "{print} 'Som-hi!, cap a la següent pestanya!'" + story_text: "En aquest nivell avançarem una mica més cap al codi Python real. També aprendràs com combinar dues llistes.\nD'aquesta manera pots programar com l'animal correcte s'associa al so correcte.\nPerquè els dos codis d'aquí sota... Evidentment, no tenen cap sentit!\n" + example_code: "```\nanimals = 'gallina', 'burra', 'vaca'\nsons = 'cocococ', 'ii-ah', 'muuu'\n{for} animal {in} animals\n {print} 'Una ' animal ' fa ' sons {at} {random}\n```\nTambé pots provar-ho d'aquesta manera, però...\n```\nanimals = 'gallina', 'burra', 'vaca'\nsons = 'cocococ', 'ii-ah', 'muuu'\n{for} animal {in} animals\n {for} sound {in} sons\n {print} 'Una ' animal ' fa ' sound\n```\nNota: Aquests codis no funcionaran així en aquest nivell. Ves a la següent pestanya per veure quines parts has de corregir." 17: - start_code: "{for} i {in} {range} 1 {to} 10:\n {print} i\n{print} 'Ready or not, here I come!'" - story_text: "Now we are going to change indentation a little bit. Every time that we need an indentation, we need `:` at the line before the indentation.\n\nIn this level you can also use a new command: `{elif}`. `{elif}` is short for {else} {if} and you need it when you want to make 3 (or more!) options.\nCheck it out!" + start_code: "{print} 'Endavant!, cap a la següent pestanya!'" + story_text: "Ara canviarem com funciona la indentació una mica. Cada cop que necessitem una sagnia, necessitem `:` a la línia abans de la sagnia.\n\nEn aquest nivell també pots utilitzar una comanda nova: `{ elif }`. `{elif}` és una abreviatura de {else} {if} i és molt útil per a quan vols fer 3 (o més!) opcions.\nComprova-ho!\n" name: Introducció story: name: Història @@ -138,7 +138,7 @@ adventures: example_code_2: "```\nnaam = {input}(\"What's your name?\")\n{print}('Welcome to this story!')\n```\n" start_code: '# Schrijf jouw code hier' parrot: - name: Parrot + name: Lloro default_save_name: Parrot levels: 4: @@ -666,24 +666,24 @@ adventures: start_code: '# place your code here' name: Key presses print_command: - description: Introduction print command + description: Introducció a la comanda imprimir name: "{print}" default_save_name: print levels: 1: - story_text: "## The print command\nYou can print text to the screen using the `{print}` command.\n" - story_text_2: "### Exercise\nIn Hedy you will find exercises in every adventure. An exercise allows you to practise the new commands and concepts, and lets you give your own twist to the example codes.\nIn this exercise you will see a pink blank space. You have to fill something in the place of the blank space before the code can be ran.\n\nFill in the `{print}` command in the blank space and then add five more lines of code. Each line has to start with a `{print}` command.\nHave fun!\n" - example_code: "```\n{print} Hi there, programmer!\n{print} Welcome to Hedy!\n```\n" - example_code_2: "```\n_ Hello!\n```\n" - start_code: "{print} Welcome to Hedy!\n" + story_text: "## La comanda imprimir\nPots imprimir un text a la pantalla utilitzant la comanda `{print}` .\n" + story_text_2: "### Exercici\nA Hedy trobaràs exercicis a cada aventura. Un exercici et permet per practicar les comandes noves, diferents conceptes, i et permet jugar amb els codis d'exemple.\nEn aquest exercici veureu un espai buit rosa. Has d'omplir l'espai en blanc si vols que el codi pugui funcionar.\n\nOmple la comanda `{print}` a l'espai blanc i després afegeix cinc línies més al codi. Cada línia ha de començar amb la comanda `{print}`.\nGaudeix-ho!\n" + example_code: "```\n{print} Ei programador!\n{print} Benvingut a Hedy!\n```\n" + example_code_2: "```\n_ Hola!\n```\n" + start_code: "{print} Benvingut a Hedy!\n" 18: - start_code: "name = 'Hedy'\n{print}('My name is ', name)" - story_text: "We arrived at real Python code! That means we need to use parentheses with `{print}` and `{range}` from now on.\nIt also means you can use Hedy code from this level in any Python environment as long as you use the English commands. If you haven't until now, you can switch the toggle in the commands menu to do so." - example_code: "```\n{print}('Hello!')\n{for} i {in} {range}(1, 10):\n {print}('This is line ', i)\n```\n" - story_text_2: If you want to print more than one item, you need to separate them by commas. - example_code_2: "```\ntemperature = 25\n{print}('It is ', temperature, ' degrees outside')\n```\n" - story_text_3: The final change we will need to make to get Python code is changing `{ask}` into `{input}`. - example_code_3: "```\n{print}('My name is Hedy!')\nname = {input}('What is your name?')\n{print}('So your name is ', name)\n```\n" + start_code: "nom = 'Hedy'\n{print}('Em dic ', nom)" + story_text: "Hem arribat al codi Python real! Això vol dir que hem d'utilitzar parèntesis amb `{print}` i `{range}` d'ara endavant.\nAixò també significa que podeu utilitzar a partir d'aquest nivell el codi d'Hedy en qualsevol entorn Python sempre que utilitzeu les comandes angleses. Si no has fet encara, pots canviar-ho la pestanya del menú de comandes per fer-ho." + example_code: "```\n{print}('Hola!')\n{for} i {in} {range}(1, 10):\n {print}('Aquesta és la línia ', i)\n```\n" + story_text_2: Si vols imprimir més d'un element, necessites separar-los per comes. + example_code_2: "```\ntemperatura = 25\n{print}('Fa ', temperatura , ' graus a l\\'exterior')\n```\n" + story_text_3: L'últim canvi que ens falta per aconseguir que el codi sigui Python és canviar `{ask}` per `{input}`. + example_code_3: "```\n{print}(' El meu nom és Hedy!')\nnom = {input}('Quin és el teu nom?')\n{print}('El teu nom és ', nom)\n```\n" for_command: name: "{for}" description: for command @@ -756,34 +756,34 @@ adventures: example_code: "```\nhouses = Gryffindor, Slytherin, Hufflepuff, Ravenclaw\nsubjects = potions, defence against the dark arts, charms, transfiguration\nfears = Voldemort, spiders, failing your OWL test\nnames = Harry, Ron, Hermione\n_\n_ {print} name ' is placed in ' houses {at} {random}\n_ {print} name ' is great at ' subjects {at} {random}\n_ {print} name 's greatest fear is ' fears {at} {random}\n```\n" ask_command: name: "{ask}" - description: Introduction ask command + description: Introducció a la comanda preguntar default_save_name: ask_command levels: 1: - story_text: "## The ask command\nNow that you can use the `{print}` command, you are ready to learn the next command: `{ask}`. With the `{ask}` command, you can ask a question. Check it out:\n" - example_code: "```\n{print} Hello!\n{ask} What is your name?\n```\n" + story_text: "## La comanda pregunta\nAra que ja saps utilitzar la comanda`{print}`, estàs preparat per aprendre la següent comanda: `{ask}`. Amb `{ask}`, pots fer una pregunta. Comprova-ho:\n" + example_code: "```\n{print} Hola!\n{ask} Com et dius?\n```\n" story_text_2: "## The echo command\nIf you want the computer to repeat the answer, you can use the `{echo}` command. The answer will then be echoed back at the end of the sentence, so in this example after hello.\n" - story_text_3: "### Exercise\nTry out the `{ask}` and `{echo}` commands. Firstly, fill in the blanks to make this program work.\nThen ask 2 more questions using the `{ask}` command, after each `{ask}` use an `{echo}` to print the answer on the screen.\n" - example_code_2: "```\n{print} Hello!\n{ask} What is your name?\n{echo} hello\n```\n" - example_code_3: "```\n_ How are you doing?\n_\n```\n" - start_code: "{print} Hello!\n{ask} What is your name?\n{echo} hello\n" + story_text_3: "### Exercici\nProveu les comandes `{ask}` i `{echo}`. Abans de res, ompliu els buits perquè aquest programa funcioni.\nA continuació, feu 2 preguntes més utilitzant la comanda `{ask}`, després de cada `{ask}` utilitzeu `{echo}` per imprimir la resposta a la pantalla.\n" + example_code_2: "```\n{print} Hola!\n{ask} Com et dius?\n{echo} Hola\n```\n" + example_code_3: "```\n_ Com vas?\n_\n```\n" + start_code: "{print} Hola!\n{ask} Com et dius?\n{echo} Hola\n" 2: - story_text: "## The ask command\nNow that we can use **variables** in our codes, we no longer need the `{echo}` command.\nWe can use variables to store the answers to our questions and this way we can use the answer to multiple questions in our codes.\nCheck it out:\n\nThis way your code is becoming interactive!\n" - example_code: "```\nname {is} {ask} What is your name?\n{print} Hello name\nage {is} {ask} How old are you?\n{print} name is age years old.\n```\n" - story_text_2: "### Exercise\nIn the previous tab you have practised with setting variables with the `{is}` command.\nYou have created at least 3 variables and used them with a print command.\nNow, instead of setting the variables we want you to make the variables interactive, like we did in our example.\n\nCopy your code from the previous tab and make the variables interactive by using `{ask}` commands.\n" - example_code_2: "```\nfavorite_animals is ask What is your favorite animal?\nprint I like favorite_animals\n```\n" - start_code: "name {is} {ask} What is your name?\n{print} Hello name\nage {is} {ask} How old are you?\n{print} name is age years old." + story_text: "## La comanda pregunta\nAra que sabem utilitzar **variables** als nostres codis, ja no necessitem la comanda `{echo}`.\nPodem utilitzar variables per emmagatzemar les respostes a les nostres preguntes i podem respondre múltiples preguntes en els nostres codis.\nComprova-ho:\n\nD'aquesta manera, el teu codi es torna interactiu!\n" + example_code: "```\nnom {is} {ask} Com et dius?\n{print} Hola nom\nedat {is} {ask} Quants anys tens?\n{print} nom té edat anys.\n```\n" + story_text_2: "### Exercici\nA la pestanya anterior heu practicat a establir variables amb la comanda `{is}`.\nHas creat almenys 3 variables i les has utilitzat amb una comanda d'impressió.\nAra, en lloc d'establir les variables, volem que les facis interactives, com hem fet al nostre exemple.\n\nCopia el teu codi de la pestanya anterior i fes que les variables siguin interactives mitjançant la comanda `{ask}`.\n" + example_code_2: "```\nanimals_preferits {is} {ask} Quin són els teus animals preferits?\n{print} M'agrada els/les animals_preferits\n```\n" + start_code: "nom {is} {ask} Com et dius?\n{print} Hola nom\nedat {is} {ask} Quants anys tens?\n{print} nom té edat anys." is_command: name: "{is}" - description: introducing is command - default_save_name: is_command + description: Introducció a la comanda és + default_save_name: comanda_es levels: 2: - story_text: "## Variables\nYou can name a word with `{is}`. This is called a **variable**. In this example we made a variable called name and a variable called age. You can use the word name anywhere in your code and it will be replaced by Hedy, like this:\n" - example_code: "```\nname {is} Hedy\nage {is} 15\n{print} name is age years old\n```\n" - story_text_2: "### Exercise\nTime to make your own variables!\nIn the example code we made an example of the variable `favorite_animals`. In line 1 the variable is set, and in line 2 we haved used the variable in a print command.\nFirstly, finish our example by filling in your favorite animal in the blanks. Then make at least 3 of these codes yourself. Pick a variable, and set the variable with the {is} command. Then use it with a {print} command, just like we did.\n" - example_code_2: "```\nfavorite_animals is _\n{print} I like favorite_animals\n```\n" - start_code: "name {is} Hedy\nage {is} 15\n{print} name is age years old" + story_text: "## Variables\nPots anomenar una paraula amb `{is}`. Això s'anomena **variable**. En aquest exemple hem fet una variable anomenada nom i una variable anomenada edat. Podeu utilitzar la paraula nom a qualsevol part del vostre codi i serà substituït per Hedy així:\n" + example_code: "```\nnom {is} Hedy\nedat {is} 15\n{print} nom té edat anys\n```\n" + story_text_2: "### Exercici\nÉs hora de crear les teves pròpies variables!\nEn el codi d'exemple hem fet un exemple de la variable `animals_preferits`. A la línia 1 es defineix la variable, i a la línia 2 hem utilitzat la variable dins una comanda d'impressió.\nEn primer lloc, acabeu el nostre exemple omplint el vostre animal preferit als espais en blanc. A continuació, feu vosaltres mateixos almenys 3 d'aquests codis. Trieu una variable i configureu-la amb la comanda {is}. A continuació, utilitzeu-lo amb una comanda {print}, tal com hem fet abans.\n" + example_code_2: "```\nanimals_preferits {is} _\n{print} M'agraden els/les animals_preferits \n```\n" + start_code: "nom {is} Hedy\nedat {is} 15\n{print} nom té edat anys" 14: start_code: "age = {ask} 'How old are you?'\n{if} age < 13\n {print} 'You are younger than me!'\n{else}\n {print} 'You are older than me!'" story_text: "We are going to learn more new items. You might know them already from mathematics, the `<` and `>`.\nThe `<` checks if the first number is smaller than the second, for example age `<` 12 checks if age is smaller than 12.\nIf you want to check if the first number is smaller or equal to the second, you can use `<=`, for example age `<=` 11.\nThe `>` checks if the first number is bigger than the second, for example points `>` 10 checks if points is larger than 10.\nIf you want to check if the first number is bigger or equal to the second, you can use `>=`, for example points `>=` 11.\nYou use these comparisons in an `{if}`, like this:\n" diff --git a/content/cheatsheets/ca.yaml b/content/cheatsheets/ca.yaml index 4ac153d0a9e..9480b9b8887 100644 --- a/content/cheatsheets/ca.yaml +++ b/content/cheatsheets/ca.yaml @@ -114,7 +114,7 @@ demo_code: "fruit = ['banana', 'apple', 'cherry']\nrandom_fruit = fruit[{random}]\n{print} random_fruit" 1: - name: '{print}' - explanation: Print something with `{print}`. + explanation: Imprimeix alguna cosa amb `{print}`. demo_code: '{print} Hola, benvingut a Hedy!' - name: '{ask}' explanation: Pregunta alguna cosa amb `{ask}`. @@ -126,10 +126,10 @@ explanation: Imprimeix un emoticona amb `{print}`. demo_code: '{print} 🙋 🌍 ❗' - name: '{forward}' - explanation: Draw a line with `{forward}`. + explanation: Dibuixa una línia amb `{forward}`. demo_code: '{forward} 100' - name: '{turn}' - explanation: Turn the drawing turtle with `{turn}`. + explanation: Gira la tortuga que dibuixa amb `{turn}`. demo_code: "{forward} 25\n{turn} {left}\n{forward} 25\n{turn} {right}" 4: - name: '{print}' diff --git a/content/client-messages/ca.yaml b/content/client-messages/ca.yaml index d0d2db284f2..1712f5bf266 100644 --- a/content/client-messages/ca.yaml +++ b/content/client-messages/ca.yaml @@ -17,9 +17,9 @@ Transpile_error: No podem executar el vostre programa. Connection_error: No hem pogut arribar al servidor. Other_error: Vaja! Potser ens hem equivocat una mica. Execute_error: S'ha produït un error en executar el programa. -Empty_output: Aquest codi funciona però no imprimeix res. Afegiu una ordre d'impressió al vostre codi o utilitzeu la tortuga per obtenir la sortida. +Empty_output: Aquest codi funciona, però no imprimeix res. Afegiu una comanda d'impressió al vostre codi o utilitzeu la tortuga per obtenir la sortida. CheckInternet: Mireu si la vostra connexió a Internet funciona correctament. ServerError: Has escrit un programa que no esperàvem. Si vols ajudar, envia'ns un correu amb el nivell i el teu programa a hello@hedy.org. Mentrestant, proveu alguna cosa una mica diferent i feu una altra ullada als exemples. Gràcies! Program_too_long: El vostre programa triga massa a executar-se. Program_repair: Aquest podria ser el codi correcte, el pots arreglar? -Errors_found: "You made a mistake! Don't worry, Hedy is trying to find the mistakes" +Errors_found: "Has comès un error! No et preocupis, encara podem executar el programa" diff --git a/content/keywords/ca.yaml b/content/keywords/ca.yaml index d50f25d2891..ee4fbf3885d 100644 --- a/content/keywords/ca.yaml +++ b/content/keywords/ca.yaml @@ -1,13 +1,13 @@ -return: return +return: retorna define: defineix def: def call: crida -with: with -print: imprimir -ask: preguntar -echo: mostrar -forward: avançar -turn: girar +with: amb +print: imprimeix +ask: pregunta +echo: eco +forward: avança +turn: gira color: color black: negre blue: blau @@ -16,33 +16,33 @@ gray: gris green: verd orange: taronja pink: rosa -purple: violeta +purple: lila left: esquerra red: vermell is: és white: blanc yellow: groc -sleep: dormir +sleep: dorm right: dreta -add: afegir +add: afegeix to_list: a -remove: esborrar +remove: esborra from: de -at: a posició +at: a random: aleatori -in: dins de -not in: no dins de +in: dins +not in: no dins if: si else: sino and: i -repeat: repetir +repeat: repeteix times: vegades -for: per a cada -range: seqüència +for: per +range: rang to: fins step: pas -elif: si no si -input: entrada +elif: sinosi +input: entra or: o while: mentre length: mida @@ -58,6 +58,6 @@ d9: '9' d0: '0' comma: ',' quote: "'" -pressed: pitjat -button: botó -clear: Neteja +pressed: pressionat +button: boto +clear: neteja diff --git a/content/pages/ca.yaml b/content/pages/ca.yaml index aec878776a4..1e09111a419 100644 --- a/content/pages/ca.yaml +++ b/content/pages/ca.yaml @@ -16,7 +16,7 @@ sections: Els estudiants (i professors!) No necessiten cap experiència en programació abans de començar amb Hedy. - title: "Com funciona?" text: | - Hedy es divideix en nivells, en els quals s'ensenyen noves ordres. Cada nivell conté una varietat d'aventures per practicar les ordres acabades d'aprendre. + Hedy es divideix en nivells, en els quals s'ensenyen noves comandes. Cada nivell conté una varietat d'aventures per practicar les comandes acabades d'aprendre. Com a professor, pots decidir quines aventures estan disponibles per als teus alumnes. Faran un restaurant, una calculadora o una casa embruixada en aquest nivell? Dins de cada nivell, les aventures s'organitzen de més fàcil a més difícil. Així que els teus alumnes segueixen sent desafiats. Les aventures les poden fer els alumnes individualment, o les podeu utilitzar en una instrucció clàssica. @@ -107,8 +107,8 @@ sections: Fins que no definiu un idioma, Hedy es mostrarà en l'idioma del vostre navegador i, quan aquest idioma no sigui compatible, en anglès. **Per a persones que no parlen anglès** - No només pots canviar l'idioma de les aventures pel teu propi idioma. També podeu triar en quin idioma han d'estar les paraules clau (per exemple, "imprimir" o "preguntar"). - D'aquesta manera, podeu ensenyar als vostres estudiants a codificar amb paraules clau en anglès, però també podeu deixar-los programar en el seu propi idioma. Per exemple, els estudiants holandesos poden utilitzar l'ordre "vraag" en lloc de "preguntar". + No només pots canviar l'idioma de les aventures pel teu propi idioma. També podeu triar en quin idioma han d'estar les paraules clau (per exemple, 'print' o 'ask'). + D'aquesta manera, podeu ensenyar als vostres estudiants a codificar amb paraules clau en anglès, però també podeu deixar-los programar en el seu propi idioma. Per exemple, els estudiants holandesos poden utilitzar la comanda 'vraag' en lloc de 'ask'. **Vídeo** Aquest vídeo us mostra com establir un idioma preferit i canviar les paraules clau al vostre idioma preferit com bé. @@ -131,7 +131,7 @@ sections: text: | Hedy conté molts nivells diferents que ensenyen una nova habilitat diferent. Recomanem ensenyar un nivell per lliçó. D'aquesta manera, els vostres estudiants tenen el temps d'entendre completament un nou comandament o concepte i practicar-lo abans de passar al següent nivell. - Utilitzem aquesta estructura a les nostres lliçons: Introducció, Nous conceptes i ordres, anem a treballar, trencaclosques i qüestionaris. + Utilitzem aquesta estructura a les nostres lliçons: Introducció, Nous conceptes i comandes, anem a treballar, puzles i qüestionaris. - title: "Diapositives" text: | When giving instructions you might want to use our slides. Our slides are available on the 'For teachers' page. There is a set of slides for each level. In the slides all the new commands for that level are explained. We have aimed to explain why these changes are nessecary or how the new commands come in handy. @@ -140,29 +140,29 @@ sections: text: | You can start your lessons by activating your students' prior knowledge: What do they already know about the subject, what did they learn in the previous lesson and which mistakes did they make that they've now learned from? This way all the previously learned commands and frequently made mistakes are fresh in your students' memories, when you start introducing the new lesson. - - title: "Introducció de nous conceptes i ordres" + - title: "Introducció de nous conceptes i comandes" text: | - Els nous conceptes i ordres poden ser molt difícils d'entendre completament per a alguns estudiants. - És per això que és important modelar l'ús adequat de les noves ordres als vostres alumnes. + Els nous conceptes i comandes poden ser molt difícils d'entendre completament per a alguns estudiants. + És per això que és important modelar l'ús adequat de les noves comandes als vostres alumnes. Especialment als nivells inferiors, on alguns estudiants no tenen cap experiència en programació, pot ser difícil per a ells entendre els nous conceptes abstractes. Mostrar molts exemples fa que un concepte abstracte (per exemple: 'Què és una variable?') més reconeixible i més fàcil d'entendre ('Mira, la variable mascota es va convertir en gos'). Hem preparat unes presentacions que et poden ajudar amb això. - title: "Anem a treballar" text: | - Cada nivell conté diferents aventures que pots trobar a les pestanyes roses. La primera pestanya rosa explica les noves ordres d'aquest nivell. + Cada nivell conté diferents aventures que pots trobar a les pestanyes roses. La primera pestanya rosa explica les noves comandes d'aquest nivell. Les següents pestanyes són aventures que els alumnes poden provar i fer les seves. Les aventures s'organitzen de la més fàcil a la més difícil, així que us recomanem començar per l'esquerra i el vostre camí cap a la dreta. - L'última pestanya "Què és el següent" ofereix un petit resum del que aprendràs al següent nivell. Per descomptat, podeu seleccionar les aventures que voleu que facin els vostres alumnes per a cada nivell. + L'última pestanya "Què és el següent" ofereix un petit resum del qual aprendràs al següent nivell. Per descomptat, podeu seleccionar les aventures que voleu que facin els vostres alumnes per a cada nivell. No sempre han de fer totes les aventures. Cada aventura conté un codi d'exemple, que els estudiants poden provar amb el botó verd. El codi d'exemple es copia al camp de treball, on els estudiants poden provar el codi i ajustar-lo per fer-lo seu. Estimula els teus alumnes a convertir els codis d'exemple en els seus propis projectes afegint les seves pròpies idees i fent la seva pròpia variació de l'aventura. - - title: "Proves i trencaclosques" + - title: "Proves i puzles" text: | Per comprovar si els vostres estudiants han recollit tota la informació nova del nivell, podeu deixar que facin el qüestionari. El qüestionari conté 10 preguntes d'opció múltiple sobre els nous conceptes i el comandament a aquest nivell. Encara no tots els nivells tenen un qüestionari, ja que encara estem construint els qüestionaris. - Alguns nivells també contenen trencaclosques. Els trencaclosques mostren als estudiants un parell de línies de codi que els estudiants han de posar en l'ordre correcte. + Alguns nivells també contenen puzles. Els puzles mostren als estudiants un parell de línies de codi que els estudiants han de posar en l'ordre correcte. - Aquest vídeo mostra els qüestionaris i els trencaclosques. + Aquest vídeo mostra els qüestionaris i els puzles. - title: "Avaluació" text: | Completa la teva lliçó fent una breu avaluació. Què van aprendre els alumnes? Quines dificultats van trobar? @@ -199,7 +199,7 @@ sections: Has trobat l'error? Premeu el botó d'aturada vermell i el depurador s'apagarà. - title: "Llegeix en veu alta" text: | - Voleu que la sortida del vostre programa es llegeixi en veu alta? A continuació, podeu utilitzar la funció de lectura en veu alta que es troba sota el botó "executa el codi" a la pantalla de codificació. + Voleu que la sortida del vostre programa es llegeixi en veu alta? A continuació, podeu utilitzar la funció de lectura en veu alta que es troba sota el botó "executa" a la pantalla de codificació. - title: "Mode programador" text: | Distret per totes les aventures, o vols fer un programa llarg? A continuació, consulteu l'interruptor "Mode de programadors" a la part inferior de la pantalla de codificació. @@ -226,14 +226,14 @@ sections: levels: - level: '1' sections: - - title: "Els estudiants s'obliden d'escriure ordres" + - title: "Els estudiants s'obliden d'escriure comandes" example: error_text: | Per exemple, escriuen una frase sense utilitzar print. error_code: | Hedy no pot imprimir això solution_text: | - Ensenyeu als vostres estudiants a iniciar sempre una línia de codi amb una ordre. + Ensenyeu als vostres estudiants a iniciar sempre una línia de codi amb una comanda. solution_code: | print Hedy can print this! - title: "Students use capitals when typing commands" @@ -318,7 +318,7 @@ sections: - title: "Els estudiants intenten utilitzar la comanda `{echo}` " example: error_text: | - Per a alguns estudiants pot ser frustrant saber que l'ordre `{echo}` ja no funciona. Per això és molt important explicar els avantatges d'utilitzar variables. Per exemple, podeu utilitzar diverses variables en un codi i les podeu posar a qualsevol lloc que vulgueu en una frase! + Per a alguns estudiants pot ser frustrant saber que la comanda`{echo}` ja no funciona. Per això és molt important explicar els avantatges d'utilitzar variables. Per exemple, podeu utilitzar diverses variables en un codi i les podeu posar a qualsevol lloc que vulgueu en una frase! error_code: | resposta {is} {ask} Per què {echo} ja no funciona?! {echo} diff --git a/content/parsons/ca.yaml b/content/parsons/ca.yaml index 969655edb4d..e258aeb73bb 100644 --- a/content/parsons/ca.yaml +++ b/content/parsons/ca.yaml @@ -22,22 +22,22 @@ levels: code: "equips = vermell, groc, blau\n{print} \"Vermell, groc o blau?\"\n{repeat} 5 {times}\n {print} \"Esteu seleccionat a l'equip...\"\n {print} equips {at} {random}\n dormir 2" 1: 1: - story: "Ets client de la fleca Hedy.\nEntres a la fleca i ets benvingut pel forner.\nLi pregunta quin tipus de pastís voleu demanar.\nA continuació, s'està preparant la teva comanda.\n" - code: "{print} Benvingut a la fleca Hedy!\n{ask} Quin tipus de pastís voleu demanar?\n{echo} Així que vols\n{print} La teva comanda s'està preparant!" + story: "Els puzles són exercicis en què les línies de codi ja estan escrites per a tu. Només heu de col·locar les línies en l'ordre correcte. Arrossegueu les línies de codi a la pantalla d'entrada i executeu el codi. Pots fer que el programa funcioni?\n\nEts client de la fleca Hedy.\nEntres a la fleca i el forner et dona la benvinguda.\nEt pregunta quin tipus de pastís vols demanar.\nAleshores et repeteix la teva resposta.\nFinalment, la teva comanda es prepara.\n" + code: "{print} Benvingut a la fleca Hedy!\n{ask} Quin pastís vols?\n{echo} Doncs, tu vols\n{print} La teva comanda s'està preparant!" 2: story: "Ets a la cabina de DJ demanant una cançó. Creeu un programa que us demani si esteu preparats per a la festa i, a continuació, us pregunti quina cançó us agradaria escoltar.\n" - code: "{print} Aquest és DJ Hedy\n{ask} Esteu preparats per a la festa?\n{ask} Quina cançó t'agradaria escoltar?\n{echo} Bona elecció! estimo" + code: "{print} Aquest és DJ Hedy\n{ask} Esteu preparats per a la festa?\n{ask} Quina cançó t'agradaria escoltar?\n{echo} Bona elecció! m'encanta la cançó." 2: 1: story: "Tu i els teus amics veureu Netflix.\nMostra quina pel·lícula estàs a punt de veure i desitja molta diversió als espectadors!\n" code: "{print} És hora d'una nit de Netflix\npeli {is} Sonic the Hedgehog 2\n{print} Veurem peli\n{print} Gaudeix-la!" 2: story: "Aquesta és la botiga web d'una botiga de joguines. Creeu un programa on els clients puguin afegir un article al seu carretó de la compra.\n" - code: "{print} Benvingut a la nostra botiga de joguines\njoguina {is} {ask} Què t'agradaria comprar?\n{print} La joguina s'afegeix a la cistella de la compra.\n{print} Gràcies per comprar amb nosaltres!" + code: "{print} Benvingut a la nostra botiga de joguines\njoguina {is} {ask} Què t'agradaria comprar?\n{print} joguina s'ha afegit a la teva cistella.\n{print} Gràcies per comprar amb nosaltres!" 3: 1: - story: "Comença el nou curs escolar a Hogwarts!\nLa feina del barret de classificació és classificar-te en una de les cases.\nA quina casa us ubicaran?\nEts Gryffindor, Hufflepuff, Ravenclaw o Slytherin?\nDeixeu que el programa esperi un breu període abans de revelar la vostra casa.\n" - code: "{print} El nou curs escolar a Hogwarts comença!\n{print} El barret de classificació està llest per classificar-vos a una casa de Hogwarts.\ncases {is} Gryffindor, Hufflepuf, Ravenclaw, Slytherin\n{sleep} 2\n{print} I són cases {at} {random}" + story: "Comença el nou curs escolar a Hogwarts!\nLa feina del barret que tria és classificar-te en una de les cases.\nA quina casa us ubicaran? Ets un Gryffindor, un Hufflepuff, un Ravenclaw o un Slytherin?\nAbans que el barret que tria reveli la vostra casa, podeu demanar-li que no triï una de les cases.\n" + code: "{print} El barret que tria està llest per classificar-vos a una casa de Hogwarts.\ncases {is} Gryffindor, Hufflepuf, Ravenclaw, Slytherin\ndesagrada {is} {ask} Hi ha alguna casa de la qual no en vulguis formar part?\n{remove} desagrada {from} cases\n{print} No desagrada, eh? Doncs que sigui... cases {at} {random}" 2: story: "Creeu un programa que esculli un àpat a l'atzar per a vosaltres. Fes una llista de menjar i una llista de complements i deixa que el programa decideixi què tindràs!\n" code: "el_menjar {is} pizza, gelat, amanida, sandvitx\nla_cobertura {is} xocolata, formatge, tonyina, ruixats\n{print} El vostre àpat aleatori d'avui és...\n{sleep} 2\n{print} el_menjar {at} {random} amb la_cobertura {at} {random}" diff --git a/content/parsons/es.yaml b/content/parsons/es.yaml index ae6a07f50b2..e81650c0b88 100644 --- a/content/parsons/es.yaml +++ b/content/parsons/es.yaml @@ -52,7 +52,7 @@ levels: casas {is} Gryffindor, Hufflepuf, Ravenclaw, Slytherin aversión {is} {ask} ¿Hay alguna casa de la que no quieras formar parte? {remove} aversión {from} casas - {print} No te disgusta, ¿eh? Mejor que sean... casas {at} {random} + {print} No aversión, ¿eh? Pues mejor que sea... casas {at} {random} 2: story: | Crea un programa que escoja una comida aleatoria para ti. ¡Haz una lista de comidas y una lista de ingredientes y deja que el programa decida que vas a comer! diff --git a/content/quizzes/ca.yaml b/content/quizzes/ca.yaml index 05c1a3b30bb..19cb124c13d 100644 --- a/content/quizzes/ca.yaml +++ b/content/quizzes/ca.yaml @@ -667,7 +667,7 @@ levels: - option: "```\n{print}\n```\n" feedback: Correcte! - option: "```\nhola\n```\n" - feedback: Hola no és una ordre. + feedback: Hola no és una comanda. - option: "```\n{ask}\n```\n" feedback: With `{ask}`, you can ask a question. correct_answer: B @@ -693,9 +693,9 @@ levels: mp_choice_options: - option: 'Falta un `{print}` a la línia 1.' feedback: Correcte! - - option: L'ordre de la línia 2 està mal escrita. + - option: La comanda de la línia 2 està mal escrita. feedback: Im is spelled wrong on purpose; Hedy doesn't understand the apostrophes yet. - - option: "`{echo}` no és una ordre." + - option: "`{echo}` no és una comanda." feedback: "`{echo}` is a command, there's another mistake." - option: Nothing! This is a perfect code! feedback: Wrong, look carefully! @@ -707,7 +707,7 @@ levels: - option: "```\n{print}\n```\n" feedback: No, you would like the answer to be repeated back to you. - option: "```\nHedy\n```\n" - feedback: Hedy no és una ordre. + feedback: Hedy no és una comanda. - option: "```\n{ask}\n```\n" feedback: With `{ask}` you can ask a question. - option: "```\n{echo}\n```\n" diff --git a/content/slides/ca.yaml b/content/slides/ca.yaml index 56cd9a33788..ab5d29e82d5 100644 --- a/content/slides/ca.yaml +++ b/content/slides/ca.yaml @@ -64,7 +64,7 @@ levels: text: "La sortida apareix a la part esquerra.\n\n" 7: header: Programació a Hedy - text: "Iniciem el codi amb el botó Executar codi a sota del codi.\n\n" + text: "Iniciem el codi amb el botó \"Executa\" a sota del codi.\n\n" 9: header: Programació a Hedy text: "La sortida també pot ser un dibuix.\n\n" diff --git a/content/tutorials/ca.yaml b/content/tutorials/ca.yaml index f7f9f8af948..e9391086ebe 100644 --- a/content/tutorials/ca.yaml +++ b/content/tutorials/ca.yaml @@ -6,10 +6,9 @@ intro: al costat per tornar enrere. title: Al següent nivell 11: - title: Trencaclosques - text: Creus que entens prou bé el nivell? Prova els trencaclosques! Obteniu - línies de codi en un ordre incorrecte, arregleu l'ordre perquè el programa - s'executi. + title: Puzles + text: Creus que entens prou bé el nivell? Prova els puzles! Obteniu línies de + codi en un ordre incorrecte, arregleu l'ordre perquè el programa s'executi. 1: title: Benvingut a Hedy! text: En aquest tutorial explicarem pas a pas totes les funcions de Hedy. @@ -38,7 +37,7 @@ intro: 9: title: Explicació del nivell text: La primera pestanya sempre conté l'explicació del nivell. A cada nivell - s'explicaran noves ordres aquí. + s'explicaran noves comandes aquí. 10: title: Aventures text: Les altres pestanyes contenen aventures, que podeu codificar per a cada diff --git a/translations/ca/LC_MESSAGES/messages.po b/translations/ca/LC_MESSAGES/messages.po index dafad44cdb7..c6233c4985e 100644 --- a/translations/ca/LC_MESSAGES/messages.po +++ b/translations/ca/LC_MESSAGES/messages.po @@ -8,8 +8,8 @@ msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "POT-Creation-Date: 2023-09-22 21:29+0200\n" -"PO-Revision-Date: 2023-09-23 08:40+0000\n" -"Last-Translator: Anonymous \n" +"PO-Revision-Date: 2023-10-01 00:35+0000\n" +"Last-Translator: aniollidon \n" "Language-Team: none\n" "Language: ca\n" "MIME-Version: 1.0\n" @@ -19,17 +19,11 @@ msgstr "" "X-Generator: Weblate 5.1-dev\n" "Generated-By: Babel 2.11.0\n" -#, fuzzy msgid "Access Before Assign" -msgstr "" -"You tried to use the variable {name} on line {access_line_number}, but " -"you set it on line {definition_line_number}. Set a variable before using " -"it." +msgstr "Has intentat utilitzar la variable {name} a la línia {access_line_number}, però l'ha definit a la línia {definition_line_number}. Defineix una variable abans d'utilitzar-la." msgid "Cyclic Var Definition" -msgstr "" -"El nom {variable} ha de ser cridat abans de que el puguis usar a la dreta" -" de l'ordre {is}." +msgstr "El nom {variable} ha de ser definit abans d'utilitzar-lo a la dreta de la comanda {is}." msgid "Has Blanks" msgstr "" @@ -42,33 +36,19 @@ msgstr "" "d'introduir text després de {incomplete_command}." msgid "Incomplete Repeat" -msgstr "" -"Sembla que se t'ha oblidat usar una ordre amb l'ordre {repeat} que has " -"usat a la línia {line_number}." +msgstr "Sembla que t'has oblidat d'utilitzar una comanda amb la comanda {repeat} que està a la línia {line_number}." -#, fuzzy msgid "Invalid" -msgstr "" -"{invalid_command} is not a Hedy level {level} command. Did you mean " -"{guessed_command}?" +msgstr "{invalid_command} no és una comanda de nivell {level} Hedy. Volies dir {guessed_command}?" msgid "Invalid Argument" -msgstr "" -"No pots utilitzar l'ordre {command} amb {invalid_argument}. Prova de " -"canviar {invalid_argument} per {allowed_types}." +msgstr "No pots utilitzar la comanda {command} amb {invalid_argument}. Prova de canviar {invalid_argument} per {allowed_types}." -#, fuzzy msgid "Invalid Argument Type" -msgstr "" -"You cannot use {command} with {invalid_argument} because it is " -"{invalid_type}. Try changing {invalid_argument} to {allowed_types}." +msgstr "No pots utilitzar {command} amb {invalid_argument} perquè és {invalid_type}. Prova de canviar {invalid_argument} per {allowed_types}." -#, fuzzy msgid "Invalid At Command" -msgstr "" -"The {at} command may not be used from level 16 onward. You can use square" -" brackets to use an element from a list, for example `friends[i]`, " -"`lucky_numbers[{random}]`." +msgstr "La comanda {at} no es pot utilitzar a partir del nivell 16. Podeu utilitzar claudàtors per utilitzar un element d'una llista, per exemple `amics[i]`, `numeros_de la sort[{random}]`." msgid "Invalid Space" msgstr "" @@ -82,52 +62,29 @@ msgstr "" "canviar {invalid_argument} per {invalid_type_2} o {invalid_argument_2} " "per {invalid_type}." -#, fuzzy msgid "Locked Language Feature" -msgstr "" -"You are using {concept}! That is awesome, but {concept} is not unlocked " -"yet! It will be unlocked in a later level." +msgstr "Estàs utilitzant {concept}! És genial, però {concept} no està desbloquejat encara!, es desbloquejarà a nivells posteriors." -#, fuzzy msgid "Lonely Echo" -msgstr "" -"You used an {echo} before an {ask}, or an {echo} without an {ask}. Place " -"an {ask} before the {echo}." +msgstr "Has fet servir {echo} abans que {ask}, o has fet servir {echo} sense {ask}. Situa {ask} abans d'{echo}." -#, fuzzy msgid "Lonely Text" -msgstr "" -"It looks like you forgot to use a command with the text you used in line " -"{line_number}" +msgstr "Sembla que t'has oblidat d'utilitzar una comanda al text de la línia {line_number}" msgid "Missing Command" -msgstr "Sembla que t'has oblidat d'usar una ordre a la línia {line_number}." +msgstr "Sembla que t'has oblidat d'usar una comanda a la línia {line_number}." -#, fuzzy msgid "Missing Inner Command" -msgstr "" -"It looks like you forgot to use a command with the {command} statement " -"you used on line {line_number}." +msgstr "Sembla que t'has oblidat d'utilitzar una comanda a la declaració {command} que has fet a la línia {line_number}." -#, fuzzy msgid "No Indentation" -msgstr "" -"You used too few spaces in line {line_number}. You used {leading_spaces} " -"spaces, which is not enough. Start every new block with {indent_size} " -"spaces more than the line before." +msgstr "Has utilitzat massa pocs espais a la línia {line_number}. N'has posat {leading_spaces}, i no són suficients. Inicia cada nou bloc amb {indent_size} espais més que la línia d'abans." -#, fuzzy msgid "Parse" -msgstr "" -"The code you entered is not valid Hedy code. There is a mistake on line " -"{location[0]}, at position {location[1]}. You typed {character_found}, " -"but that is not allowed." +msgstr "El codi que heu introduït no és un codi Hedy vàlid. Hi ha un error a la línia {location[0]}, a la posició {location[1]}. Apareix el caràcter {character_found} que no està permès." -#, fuzzy msgid "Pressit Missing Else" -msgstr "" -"You forgot to add what happens when you press a different key, add an " -"{else} to your code" +msgstr "T'has oblidat d'afegir el que passa quan prems una tecla diferent, afegiu un {else} al vostre codi" msgid "Too Big" msgstr "" @@ -135,71 +92,38 @@ msgstr "" " can only process {max_lines} lines in this level. Make your program " "smaller and try again." -#, fuzzy msgid "Unexpected Indentation" -msgstr "" -"You used too many spaces in line {line_number}. You used {leading_spaces}" -" spaces, which is too much. Start every new block with {indent_size} " -"spaces more than the line before." +msgstr "Has utilitzat massa espais a la línia {line_number}. N'has posat {leading_spaces}, i són massa. Inicia cada nou bloc amb {indent_size} espais més que la línia d'abans." -#, fuzzy msgid "Unquoted Assignment" -msgstr "" -"From this level, you need to place texts to the right of the {is} between" -" quotes. You forgot that for the text {text}." +msgstr "A partir d'aquest nivell, cal col·locar els textos de la dreta de {is} entre cometes. Te n'has oblidat al text {text}." -#, fuzzy msgid "Unquoted Equality Check" -msgstr "" -"If you want to check if a variable is equal to multiple words, the words " -"should be surrounded by quotation marks!" +msgstr "Si vols comprovar si una variable és igual a diverses paraules, les paraules han d'estar envoltades de cometes!" -#, fuzzy msgid "Unquoted Text" -msgstr "" -"Be careful. If you {ask} or {print} something, the text should start and " -"finish with a quotation mark. You forgot that for the text " -"{unquotedtext}." +msgstr "Ves amb compte! Si utilitzes les comandes {ask} o {print}, el text posterior s'haurà d'envoltar amb cometes. Te n'has oblidat al text {unquotedtext}." -#, fuzzy msgid "Unsupported Float" -msgstr "" -"Non-integer numbers are not supported yet but they will be in a few " -"levels. For now change {value} to an integer." +msgstr "Els nombres no enters encara no estan disponibles, però ho estaran d'aquí pocs nivells. Per ara canvia {value} a un enter." -#, fuzzy msgid "Unsupported String Value" -msgstr "Text values cannot contain {invalid_value}." +msgstr "Els valors de text no poden contenir {invalid_value}." -#, fuzzy msgid "Var Undefined" -msgstr "" -"You tried to use the variable {name}, but you didn't set it. It is also " -"possible that you were trying to use the word {name} but forgot quotation" -" marks." +msgstr "Has intentat utilitzar la variable {nom}, però no l'has definit. També pot ser que intentessis utilitzar la paraula {nom}, però t'hagis oblidat de les cometes." -#, fuzzy msgid "Wrong Level" -msgstr "" -"That was correct Hedy code, but not at the right level. You wrote " -"{offending_keyword} for level {working_level}. Tip: {tip}" +msgstr "Això era codi Hedy correcte, però no pertany a aquest nivell. Has escrit {offending_keyword} que funcionaria al {working_level}. Consell: {tip}" -#, fuzzy msgid "account_overview" -msgstr "Account overview" +msgstr "Visió general del compte" msgid "accounts_created" msgstr "Els comptes s'han creat correctament." -#, fuzzy msgid "accounts_intro" -msgstr "" -"On this page you can create accounts for multiple students at once. These" -" are automatically added to the current class, so make sure the class " -"shown above is the right one! Every username needs to be unique in the " -"entire Hedy system. You can use 'Postfix classname' to add your class " -"name to all accounts. If you manually enter passwords, these need to be " -"at least 6 characters." +msgstr "En aquesta pàgina pots crear comptes per a diversos estudiants alhora. S'afegiran automàticament a la classe actual. Així doncs, assegureu-vos que la classe que es mostra a dalt sigui la correcta! Cada nom d'usuari ha de ser únic a tot el sistema Hedy. Podeu prémer \"Afegir sufix classe\" per afegir el vostre nom de classe a tots els comptes. Si introduïu les contrasenyes manualment, aquestes hauran de tenir almenys 6 caràcters." msgid "achievement_earned" msgstr "Has aconseguit un èxit!" @@ -207,9 +131,8 @@ msgstr "Has aconseguit un èxit!" msgid "achievements" msgstr "assoliments" -#, fuzzy msgid "achievements_check_icon_alt" -msgstr "Achievement check icon" +msgstr "Icona de comprovació d'assoliment" msgid "achievements_logo_alt" msgstr "Icona d'assoliments" @@ -235,59 +158,38 @@ msgstr "Ja tens una aventura amb aquest nom." msgid "adventure_empty" msgstr "No has introduït un nom d'aventura!" -#, fuzzy msgid "adventure_exp_1" -msgstr "" -"Type your adventure of choice on the right-hand side. After creating your" -" adventure you can include it in one of your classes under " -"\"customizations\". If you want to include a command in your adventure " -"please use code anchors like this:" +msgstr "Escriu la teva aventura a la dreta. Després de crear-la, pots incloure-la en una de les teves classes a \"Personalitzacions\". Per incloure una comanda a l'aventura utilitzeu ancoratges de codi com aquest:" -#, fuzzy msgid "adventure_exp_2" -msgstr "" -"If you want to show actual code snippets, for example to give student a " -"template or example of the code. Please use pre anchors like this:" +msgstr "Si vols pots mostrar fragments de codi i donar a l'estudiant una plantilla o un exemple del codi. Per fer-ho utilitzeu preancoratges com aquest:" -#, fuzzy msgid "adventure_exp_3" -msgstr "" -"Make sure you always surround keywords with { }, then they are recognized" -" correctly. You can use the \"preview\" button to view a styled version " -"of your adventure. To view the adventure on a dedicated page, select " -"\"view\" from the teachers page." +msgstr "Assegura't d'envoltar sempre les paraules clau amb { }, de manera que es reconeguin correctament. Pots utilitzar el botó \"Vista prèvia\" per veure la versió amb estil de la teva aventura. Per veure l'aventura en una pàgina independent, seleccioneu \"visualitzar\" des de la pàgina de professors." -#, fuzzy msgid "adventure_id_invalid" -msgstr "This adventure id is invalid." +msgstr "L'ID d'aventura no és vàlid." -#, fuzzy msgid "adventure_length" -msgstr "Your adventure has to be at least 20 characters." +msgstr "L'aventura ha de contenir com a mínim 20 caràcters." -#, fuzzy msgid "adventure_name_invalid" -msgstr "This adventure name is invalid." +msgstr "El nom d'aventura no és vàlid." -#, fuzzy msgid "adventure_prompt" -msgstr "Please enter the name of the adventure" +msgstr "Si us plau, introdueix el nom de l'aventura" -#, fuzzy msgid "adventure_terms" -msgstr "I agree that my adventure might be made publicly available on Hedy." +msgstr "Estic d'acord amb el fet que la meva aventura estigui disponible públicament a Hedy." -#, fuzzy msgid "adventure_updated" -msgstr "The adventure has been updated!" +msgstr "L'aventura s'ha actualitzat!" -#, fuzzy msgid "adventures" -msgstr "Available Adventures" +msgstr "Aventures disponibles" -#, fuzzy msgid "adventures_restored" -msgstr "The default adventures have been restored!" +msgstr "Les aventures per defecte han estat restaurades." msgid "ago" msgstr "fa {timestamp}" @@ -295,9 +197,8 @@ msgstr "fa {timestamp}" msgid "agree_invalid" msgstr "Has d'acceptar els termes de privacitat." -#, fuzzy msgid "agree_with" -msgstr "I agree to the" +msgstr "Accepto les" msgid "ajax_error" msgstr "Hi ha hagut un error, si us plau torna-ho a intentar." @@ -305,24 +206,20 @@ msgstr "Hi ha hagut un error, si us plau torna-ho a intentar." msgid "all" msgstr "Tot" -#, fuzzy msgid "all_class_highscores" -msgstr "All students visible in class highscores" +msgstr "Fer visible tot l'alumnat al rànquing de la classe" msgid "already_account" msgstr "Ja tens un compte?" -#, fuzzy msgid "already_program_running" -msgstr "There is already a program running, finish that one first." +msgstr "Ja hi ha un programa en execució, finalitza'l primer." -#, fuzzy msgid "already_teacher" -msgstr "You already have a teacher account." +msgstr "Ja tens un compte de professorat." -#, fuzzy msgid "already_teacher_request" -msgstr "You already have a pending teacher request." +msgstr "Teniu una sol·licitud de professor pendent." msgid "amount_created" msgstr "programes creats" @@ -336,11 +233,8 @@ msgstr "programes enviats" msgid "are_you_sure" msgstr "Estàs segur? No pots desfer aquesta acció." -#, fuzzy msgid "ask_needs_var" -msgstr "" -"Starting in level 2, {ask} needs to be used with a variable. Example: " -"name {is} {ask} What are you called?" +msgstr "A partir del nivell 2, cal utilitzar {ask} amb una variable. Exemple: nom {is} {ask} Com et dius?" msgid "back_to_class" msgstr "Torna a la classe" @@ -348,9 +242,8 @@ msgstr "Torna a la classe" msgid "back_to_teachers_page" msgstr "Tornar a la pàgina de professors" -#, fuzzy msgid "become_a_sponsor" -msgstr "Become a sponsor" +msgstr "Fes-te patrocinador" msgid "birth_year" msgstr "Any de naixement" @@ -361,46 +254,35 @@ msgstr "per" msgid "cancel" msgstr "Cancel·lar" -#, fuzzy msgid "cant_parse_exception" -msgstr "Couldn't parse the program" +msgstr "No s'ha pogut analitzar el programa" -#, fuzzy msgid "catch_index_exception" -msgstr "" -"You tried to access the list {list_name} but it is either empty or the " -"index is not there." +msgstr "Has provat d'accedir a la llista {list_name}, però està buida o falta l'índex." -#, fuzzy msgid "certificate" -msgstr "Certificate of Completion" +msgstr "Certificat de finalització" -#, fuzzy msgid "certified_teacher" -msgstr "Certified teacher" +msgstr "Professor certificat" msgid "change_password" msgstr "Canvia la contrasenya" -#, fuzzy msgid "cheatsheet_title" -msgstr "Cheatsheet" +msgstr "Xuleta" -#, fuzzy msgid "class_already_joined" -msgstr "You are already a student of class" +msgstr "Ja ets alumne de la classe" -#, fuzzy msgid "class_customize_success" -msgstr "Class successfully customized." +msgstr "Classe personalitzada amb èxit." -#, fuzzy msgid "class_live" -msgstr "Live statistics" +msgstr "Estadístiques en viu" -#, fuzzy msgid "class_name_duplicate" -msgstr "You already have a class with this name." +msgstr "Ja teniu una classe amb aquest nom." msgid "class_name_empty" msgstr "No has introduït el nom de la classe!" @@ -408,13 +290,11 @@ msgstr "No has introduït el nom de la classe!" msgid "class_name_invalid" msgstr "Aquest nom de la classe no és vàlid." -#, fuzzy msgid "class_name_prompt" -msgstr "Please enter the name of the new class" +msgstr "Si us plau, introdueix el nom de la nova classe" -#, fuzzy msgid "class_overview" -msgstr "Class overview" +msgstr "Visió general de la classe" msgid "close" msgstr "Tanca" @@ -422,20 +302,17 @@ msgstr "Tanca" msgid "comma" msgstr "una coma" -#, fuzzy msgid "command_not_available_yet_exception" -msgstr "Command not available yet" +msgstr "La comanda encara no està disponible" -#, fuzzy msgid "command_unavailable_exception" -msgstr "Command not correct anymore" +msgstr "La comanda ja no és correcta" msgid "commands" -msgstr "Ordres" +msgstr "Comandes" -#, fuzzy msgid "common_errors" -msgstr "Common errors" +msgstr "Errors freqüents" msgid "congrats_message" msgstr "Felicitats, {username}, has completat Hedy!" @@ -443,28 +320,23 @@ msgstr "Felicitats, {username}, has completat Hedy!" msgid "content_invalid" msgstr "Aquesta aventura no és vàlida." -#, fuzzy msgid "contributor" -msgstr "Contributor" +msgstr "Contribuïdor" -#, fuzzy msgid "copy_clipboard" -msgstr "Successfully copied to clipboard" +msgstr "Copiat amb èxit al porta-retalls" -#, fuzzy msgid "copy_join_link" -msgstr "Copy join link" +msgstr "Copia l'enllaç d'unió" -#, fuzzy msgid "copy_link_success" -msgstr "Join link successfully copied to clipboard" +msgstr "Enllaç d'unió copiat amb èxit al porta-retalls" msgid "copy_link_to_share" msgstr "Copia l'enllaç per compartir" -#, fuzzy msgid "copy_mail_link" -msgstr "Please copy and paste this link into a new tab:" +msgstr "Si us plau, còpia i enganxa aquest enllaç a una nova pestanya:" msgid "correct_answer" msgstr "La resposta correcta és" @@ -472,9 +344,8 @@ msgstr "La resposta correcta és" msgid "country" msgstr "País" -#, fuzzy msgid "country_invalid" -msgstr "Please select a valid country." +msgstr "Seleccioneu un país vàlid." msgid "country_title" msgstr "País" @@ -494,9 +365,8 @@ msgstr "Crear aventura" msgid "create_class" msgstr "Crea una nova classe" -#, fuzzy msgid "create_multiple_accounts" -msgstr "Create multiple accounts" +msgstr "Crea múltiples comptes" msgid "create_public_profile" msgstr "Crear perfil públic" @@ -507,30 +377,23 @@ msgstr "Vols crear-ne un?" msgid "create_student_account" msgstr "Crear un compte" -#, fuzzy msgid "create_student_account_explanation" -msgstr "You can save your own programs with an account." +msgstr "Pots guardar els teus programes si tens un compte." -#, fuzzy msgid "create_teacher_account" -msgstr "Create a teacher account" +msgstr "Crea un compte de professorat" -#, fuzzy msgid "create_teacher_account_explanation" -msgstr "" -"With a teacher account, you can save your programs and see the results of" -" your students." +msgstr "Amb un compte de professorat, pots guardar els teus programes i veure els resultats dels teus alumnes." -#, fuzzy msgid "creator" -msgstr "Creator" +msgstr "Creador" msgid "current_password" msgstr "Contrasenya actual" -#, fuzzy msgid "customization_deleted" -msgstr "Customizations successfully deleted." +msgstr "Personalitzacions esborrades correctament." msgid "customize_adventure" msgstr "Personalitza l'aventura" @@ -538,403 +401,293 @@ msgstr "Personalitza l'aventura" msgid "customize_class" msgstr "Personalitza la classe" -#, fuzzy msgid "dash" -msgstr "a dash" +msgstr "un guió" -#, fuzzy msgid "default_403" -msgstr "Looks like you aren't authorized..." +msgstr "Sembla no estàs autoritzat..." -#, fuzzy msgid "default_404" -msgstr "We could not find that page..." +msgstr "No hem pogut trobar aquesta pàgina..." -#, fuzzy msgid "default_500" -msgstr "Something went wrong..." +msgstr "Alguna cosa ha anat malament..." -#, fuzzy msgid "delete" -msgstr "Delete" +msgstr "Suprimeix" -#, fuzzy msgid "delete_adventure_prompt" -msgstr "Are you sure you want to remove this adventure?" +msgstr "Segur que vols suprimir aquesta aventura?" -#, fuzzy msgid "delete_class_prompt" -msgstr "Are you sure you want to delete the class?" +msgstr "Segur que vols suprimir la classe?" -#, fuzzy msgid "delete_confirm" -msgstr "Are you sure you want to delete the program?" +msgstr "Segur que vols suprimir el programa?" -#, fuzzy msgid "delete_invite" -msgstr "Delete invitation" +msgstr "Suprimeix la invitació" -#, fuzzy msgid "delete_invite_prompt" -msgstr "Are you sure you want to remove this class invitation?" +msgstr "Segur que vols suprimir aquesta invitació de classe?" -#, fuzzy msgid "delete_public" -msgstr "Delete public profile" +msgstr "Suprimeix el perfil públic" -#, fuzzy msgid "delete_success" -msgstr "Program deleted successfully." +msgstr "Programa suprimit amb èxit." -#, fuzzy msgid "destroy_profile" -msgstr "Delete profile" +msgstr "Suprimeix el perfil" -#, fuzzy msgid "developers_mode" -msgstr "Programmer's mode" +msgstr "Mode programador" -#, fuzzy msgid "directly_available" -msgstr "Directly open" +msgstr "Obrir directament" -#, fuzzy msgid "disable" -msgstr "Disable" +msgstr "Desactiva" -#, fuzzy msgid "disabled" -msgstr "Disabled" +msgstr "Desactivat" -#, fuzzy msgid "disabled_button_locked" -msgstr "Your teacher hasn't unlocked this level yet" +msgstr "El teu professor encara no ha desbloquejat aquest nivell" -#, fuzzy msgid "disabled_button_quiz" -msgstr "Your quiz score is below the threshold, try again!" +msgstr "La vostra puntuació és inferior al llindar de desbloqueig, torna-ho a provar!" -#, fuzzy msgid "discord_server" -msgstr "Discord server" +msgstr "Servidor Discord" -#, fuzzy msgid "distinguished_user" -msgstr "Distinguished user" +msgstr "Usuari distingit" -#, fuzzy msgid "double quotes" -msgstr "double quotes" +msgstr "cometes dobles" -#, fuzzy msgid "download" -msgstr "Download" +msgstr "Descàrrega" -#, fuzzy msgid "download_login_credentials" -msgstr "Do you want to download the login credentials after the accounts creation?" +msgstr "Vols descarregar les credencials d'inici de sessió després de la creació dels comptes?" -#, fuzzy msgid "duplicate" -msgstr "Duplicate" +msgstr "Duplica" -#, fuzzy msgid "echo_and_ask_mismatch_exception" -msgstr "Echo and ask mismatch" +msgstr "Desajust entre `{echo}` i `{ask}`" -#, fuzzy msgid "echo_out" -msgstr "" -"Starting in level 2 {echo} is no longer needed. You can repeat an answer " -"with {ask} and {print} now. Example: name is {ask} What are you called? " -"{print} hello name" +msgstr "A partir del nivell 2 `{echo}` ja no serà necessari. Ara pots repetir la resposta amb `{ask}` i `{print}`. Exemple: `nom {is} {ask} Com et dius? {print} Hola nom`" -#, fuzzy msgid "edit_code_button" -msgstr "Edit code" +msgstr "Edita el codi" -#, fuzzy msgid "email" -msgstr "Email" +msgstr "Correu electrònic" -#, fuzzy msgid "email_invalid" -msgstr "Please enter a valid email." +msgstr "Si us plau, introdueix un correu electrònic vàlid." -#, fuzzy msgid "end_quiz" -msgstr "Quiz end" +msgstr "Fi del qüestionari" -#, fuzzy msgid "english" -msgstr "English" +msgstr "Anglès" -#, fuzzy msgid "enter" -msgstr "Enter" +msgstr "Introdueix" -#, fuzzy msgid "enter_password" -msgstr "Enter a new password for" +msgstr "Introdueix una nova contrasenya per" -#, fuzzy msgid "enter_text" -msgstr "Enter your answer here..." +msgstr "Introdueix la teva resposta aquí..." -#, fuzzy msgid "error_logo_alt" -msgstr "Error logo" +msgstr "Logotip d'error" -#, fuzzy msgid "exclamation mark" -msgstr "an exclamation mark" +msgstr "un signe d'exclamació" -#, fuzzy msgid "exercise" -msgstr "Exercise" +msgstr "Exercici" -#, fuzzy msgid "exercise_doesnt_exist" -msgstr "This exercise doesn't exist" +msgstr "Aquest exercici no existeix" -#, fuzzy msgid "exists_email" -msgstr "That email is already in use." +msgstr "Aquest correu electrònic ja està en ús." -#, fuzzy msgid "exists_username" -msgstr "That username is already in use." +msgstr "Aquest usuari ja està en ús." -#, fuzzy msgid "experience_invalid" -msgstr "Please select a valid experience, choose (Yes, No)." +msgstr "Si us plau, selecciona una experiència vàlida, escull (Sí, No)." -#, fuzzy msgid "expiration_date" -msgstr "Expiration date" +msgstr "Data de caducitat" -#, fuzzy msgid "explore_explanation" -msgstr "" -"On this page you can look through programs created by other Hedy users. " -"You can filter on both a Hedy level and adventure. Click on \"View " -"program\" to open a program and run it. Programs with a red header " -"contain a mistake. You can still open the program, but running it will " -"result in an error. You can of course try to fix it! If the creator has a" -" public profile you can click their username to visit their profile. " -"There you will find all their shared programs and much more!" +msgstr "En aquesta pàgina pots consultar els programes creats per altres usuaris de Hedy. Pots filtrar tant a nivell Hedy com a aventura. Feu clic a \"Veure programa\" per obrir un programa i executar-lo. Els programes amb una capçalera vermella contenen un error. Encara podràs obrir-lo, però en executar-lo provocarà un error. Si vols pots intentar arreglar-ho! Si el creador té un perfil públic, pots fer clic al seu nom d'usuari per visitar el seu perfil. Allà trobaràs tots els seus programes compartits i molt més!" -#, fuzzy msgid "explore_programs" -msgstr "Explore programs" +msgstr "Explora programes" -#, fuzzy msgid "explore_programs_logo_alt" -msgstr "Explore programs icon" +msgstr "Icona d'explorar programes" -#, fuzzy msgid "favorite_program" -msgstr "Favorite program" +msgstr "Programa preferit" -#, fuzzy msgid "favourite_confirm" -msgstr "Are you sure you want to set this program as your favourite?" +msgstr "Segur que vols definir aquest programa com el teu preferit?" -#, fuzzy msgid "favourite_program" -msgstr "Favourite program" +msgstr "Programa preferit" -#, fuzzy msgid "favourite_program_invalid" -msgstr "Your chosen favourite program is invalid." +msgstr "El programa preferit que has escollit és invàlid." -#, fuzzy msgid "favourite_success" -msgstr "Your program is set as favourite." +msgstr "El teu programa està configurat com a preferit." -#, fuzzy msgid "female" -msgstr "Female" +msgstr "Dona" -#, fuzzy msgid "float" -msgstr "a number" +msgstr "un número" -#, fuzzy msgid "for_teachers" -msgstr "For teachers" +msgstr "Per al professorat" -#, fuzzy msgid "forgot_password" -msgstr "Forgot your password?" +msgstr "Has oblidat la contrasenya?" -#, fuzzy msgid "from_another_teacher" -msgstr "From another teacher" +msgstr "D'un altre professor" -#, fuzzy msgid "from_magazine_website" -msgstr "From a magazine or website" +msgstr "Des d'una revista o web" -#, fuzzy msgid "from_video" -msgstr "From a video" +msgstr "Des d'un vídeo" -#, fuzzy msgid "fun_statistics_msg" -msgstr "Here are some fun statistics!" +msgstr "Aquí teniu algunes estadístiques divertides!" -#, fuzzy msgid "gender" -msgstr "Gender" +msgstr "Gènere" -#, fuzzy msgid "gender_invalid" -msgstr "Please select a valid gender, choose (Female, Male, Other)." +msgstr "Si us plau, selecciona un gènere vàlid, tria (Dona, Home o Altre)." -#, fuzzy msgid "general" msgstr "General" -#, fuzzy msgid "general_settings" -msgstr "General settings" +msgstr "Configuració general" -#, fuzzy msgid "generate_passwords" -msgstr "Generate passwords" +msgstr "Genera contrasenyes" -#, fuzzy msgid "get_certificate" -msgstr "Get your certificate!" +msgstr "Aconsegueix el teu certificat!" -#, fuzzy msgid "give_link_to_teacher" -msgstr "Give the following link to your teacher:" +msgstr "Fes arribar el següent enllaç al teu professor:" -#, fuzzy msgid "go_back_to_main" -msgstr "Go back to main page" +msgstr "Torna a la pàgina principal" -#, fuzzy msgid "go_to_question" -msgstr "Go to question" +msgstr "Ves a la pregunta" -#, fuzzy msgid "go_to_quiz_result" -msgstr "Go to quiz result" +msgstr "Ves al resultat del qüestionari" -#, fuzzy msgid "goto_profile" -msgstr "Go to my profile" +msgstr "Ves al meu perfil" -#, fuzzy msgid "grid_overview" -msgstr "Overview of programs per adventure" +msgstr "Visió general dels programes per aventura" -#, fuzzy msgid "hand_in" -msgstr "Hand in" +msgstr "Entrega" -#, fuzzy msgid "hand_in_exercise" -msgstr "Hand in exercise" +msgstr "Entrega l'exercici" -#, fuzzy msgid "heard_about_hedy" -msgstr "How have you heard about Hedy?" +msgstr "Com t'has assabentat d'Hedy?" -#, fuzzy msgid "heard_about_invalid" -msgstr "Please select a valid way you heard about us." +msgstr "Si us plau, seleccioni una forma vàlida de com es va assabentar de nosaltres." -#, fuzzy msgid "hedy_achievements" -msgstr "Hedy achievements" +msgstr "Assoliments Hedy" -#, fuzzy msgid "hedy_choice_title" -msgstr "Hedy's Choice" +msgstr "L'elecció d'Hedy" -#, fuzzy msgid "hedy_logo_alt" -msgstr "Hedy logo" +msgstr "Logotip d'Hedy" -#, fuzzy msgid "hedy_on_github" -msgstr "Hedy on Github" +msgstr "Hedy a Github" -#, fuzzy msgid "hedy_tutorial_logo_alt" -msgstr "Hedy tutorial icon" +msgstr "Icona del tutorial d'Hedy" msgid "hello_logo" -msgstr "Hola!" +msgstr "hola" -#, fuzzy msgid "hello_world" -msgstr "Hello world!" +msgstr "Hola món!" -#, fuzzy msgid "hidden" -msgstr "Hidden" +msgstr "Ocult" -#, fuzzy msgid "hide_cheatsheet" -msgstr "Hide cheatsheet" +msgstr "Amaga la xuleta" -#, fuzzy msgid "hide_keyword_switcher" -msgstr "Hide keyword switcher" +msgstr "Amaga el commutador de paraules clau" -#, fuzzy msgid "hide_parsons" -msgstr "Hide puzzle" +msgstr "Amaga el puzzle" -#, fuzzy msgid "hide_quiz" -msgstr "Hide quiz" +msgstr "Amaga el qüestionari" -#, fuzzy msgid "highest_level_reached" -msgstr "Highest level reached" +msgstr "Màxim nivell assolit" -#, fuzzy msgid "highest_quiz_score" -msgstr "Highest quiz score" +msgstr "Puntuació més alta del qüestionari" -#, fuzzy msgid "highscore_explanation" -msgstr "" -"On this page you can view the current Highscores, based on the amount of " -"achievements gathered. View the ranking for either all users, your " -"country or your class. Click on a username to view their public profile." +msgstr "En aquesta pàgina podeu veure les puntuacions més altes actuals, en funció de la quantitat d'assoliments obtinguts. Consulta la classificació de tots els usuaris, del teu país o de la teva classe. Feu clic a un nom d'usuari per veure el seu perfil públic." -#, fuzzy msgid "highscore_no_public_profile" -msgstr "" -"You don't have a public profile and are therefore not listed on the " -"highscores. Do you wish to create one?" +msgstr "No tens perfil públic i, per tant, no apareixes a les puntuacions. Vols crear-ne un?" -#, fuzzy msgid "highscores" -msgstr "Highscores" +msgstr "Puntuacions" -#, fuzzy msgid "hint" -msgstr "Hint?" +msgstr "Pista?" -#, fuzzy msgid "ill_work_some_more" -msgstr "I'll work on it a little longer" +msgstr "Hi treballaré una mica més" -#, fuzzy msgid "image_invalid" -msgstr "The image you chose image is invalid." +msgstr "La imatge que has escollit no és vàlida." -#, fuzzy msgid "incomplete_command_exception" -msgstr "Incomplete Command" +msgstr "Comanda incompleta" #, fuzzy msgid "incorrect_handling_of_quotes_exception" @@ -1056,33 +809,26 @@ msgstr "Last Name" msgid "leave_class" msgstr "Leave class" -#, fuzzy msgid "level" -msgstr "Level" +msgstr "Nivell" -#, fuzzy msgid "level_accessible" -msgstr "Level is open to students" +msgstr "El nivell està obert als estudiants" -#, fuzzy msgid "level_disabled" -msgstr "Level disabled" +msgstr "Nivell desactivat" -#, fuzzy msgid "level_future" -msgstr "This level will open automatically after the opening date" +msgstr "Aquest nivell s'obrirà automàticament el " -#, fuzzy msgid "level_invalid" -msgstr "This Hedy level in invalid." +msgstr "Aquest nivell d'Hedy no és vàlid." -#, fuzzy msgid "level_not_class" -msgstr "This level has not been made available in your class yet" +msgstr "Aquest nivell encara no està disponible a la vostra classe" -#, fuzzy msgid "level_title" -msgstr "Level" +msgstr "Nivell" #, fuzzy msgid "link" @@ -1100,17 +846,14 @@ msgstr "Live Dashboard" msgid "logged_in_to_share" msgstr "You must be logged in to save and share a program." -#, fuzzy msgid "login" -msgstr "Log in" +msgstr "Inicia sessió" -#, fuzzy msgid "login_long" -msgstr "Log in to your account" +msgstr "Inicia sessió al teu compte" -#, fuzzy msgid "login_to_save_your_work" -msgstr "Log in to save your work" +msgstr "Inicia sessió per desar la teva feina" #, fuzzy msgid "logout" @@ -1170,43 +913,26 @@ msgstr "" msgid "mail_reset_password_subject" msgstr "Your Hedy password has been reset" -#, fuzzy msgid "mail_welcome_teacher_body" msgstr "" -"Welcome!\n" -"Congratulations on your brand new Hedy teacher's account. Welcome to the " -"world wide community of Hedy teachers!\n" +"Benvingut/da!\n" +"Enhorabona pel teu nou compte de professorat d'Hedy. Benvingut a la comunitat mundial de professors Hedy!\n" "\n" -"What teacher's accounts can do\n" -"There are a number of extra options unlocked for you now.\n" +"Què poden fer els comptes del professor\n" +"Hi ha una sèrie d'opcions addicionals desbloquejades per a tu ara.\n" "\n" -"1. Extra explanation is available in the teacher's manual.\n" -"2. With your teacher account, you can create classes. Your students can " -"than join your classes and you can see their progress. Classes are made " -"and managed though the for teachers page.\n" -"3. You can fully customize your classes, for example you can open and " -"close levels, enable or disable adventures and author your own " -"adventures!\n" +"1. Hi ha una explicació addicional disponible al manual del professor.\n" +"2. Amb el teu compte de professorat, pots crear classes. Els vostres estudiants poden unir-se a les vostres classes i podreu veure el seu progrés. Les classes es fan i es gestionen mitjançant la pàgina per a professorat.\n" +"3. Pots personalitzar completament les teves classes, per exemple pots obrir i tancar nivells, activar o desactivar aventures i crear les teves pròpies aventures!\n" "\n" -"Join our online community!\n" -"All Hedy teachers, programmers and other fans are welcome to join our Discord server. This is the " -"ideal place to chat about Hedy: we have channels where you can show your " -"cool projects and lessons, channels to report bugs, and channels to chat " -"with other teachers and with the Hedy team.\n" +"Uneix-te a la nostra comunitat en línia!\n" +"Tots els professors, programadors i altres fans d'Hedy poden unir-se al nostre servidor de Discord. Aquest és el lloc ideal per xerrar sobre Hedy: tenim canals on mostrar els teus projectes i lliçons interessants, canals per informar d'errors i canals per xerrar amb altres professors i amb l'equip de Hedy.\n" "\n" -"How to ask for help \n" -"If anything is unclear, you can let us know on Discord, or send us an email.\n" +"Com demanar ajuda \n" +"Si alguna cosa no està clara, pots fer-nos-ho saber a Discord o enviar-nos un correu electrònic.\n" "\n" -"How to report bugs\n" -"In Discord, we have a channel for reporting bugs, called #bugs. That is " -"the perfect place to let us know about issues you are running into. If " -"you know how to use GitHub, you can create an issue" -" there.\n" +"Com informar d'errors\n" +"A Discord, tenim un canal per informar d'errors, anomenat #bugs. Aquest és el lloc perfecte per informar-nos dels problemes amb què us trobeu. Si sabeu com utilitzar GitHub, podeu crear un problema allà.\n" #, fuzzy msgid "mail_welcome_teacher_subject" @@ -1226,9 +952,8 @@ msgstr "Welcome to Hedy" msgid "mailing_title" msgstr "Subscribe to the Hedy newsletter" -#, fuzzy msgid "main_subtitle" -msgstr "Textual programming for the classroom" +msgstr "Programació textual per a l’aula" #, fuzzy msgid "main_title" @@ -1276,9 +1001,8 @@ msgstr "My public profile" msgid "name" msgstr "Name" -#, fuzzy msgid "nav_explore" -msgstr "Explore" +msgstr "Explora" #, fuzzy msgid "nav_hedy" @@ -1288,9 +1012,8 @@ msgstr "Hedy" msgid "nav_learn_more" msgstr "Learn more" -#, fuzzy msgid "nav_start" -msgstr "Home" +msgstr "Inici" #, fuzzy msgid "nested blocks" @@ -1320,9 +1043,8 @@ msgstr "Next step >>>" msgid "no" msgstr "No" -#, fuzzy msgid "no_account" -msgstr "No account?" +msgstr "No tens compte?" #, fuzzy msgid "no_accounts" @@ -1332,11 +1054,8 @@ msgstr "There are no accounts to create." msgid "no_certificate" msgstr "This user hasn't earned the Hedy Certificate of Completion" -#, fuzzy msgid "no_more_flat_if" -msgstr "" -"Starting in level 8, the code after {if} needs to be placed on the next " -"line and start with 4 spaces." +msgstr "A partir del nivell 8, el codi posterior a {if} s'ha de col·locar a la línia següent i començar amb 4 espais." #, fuzzy msgid "no_programs" @@ -1362,9 +1081,8 @@ msgstr "No such Hedy class." msgid "no_such_highscore" msgstr "Highscores" -#, fuzzy msgid "no_such_level" -msgstr "No such Hedy level!" +msgstr "No existeix aquest nivell d'Hedy!" #, fuzzy msgid "no_such_program" @@ -1544,9 +1262,8 @@ msgstr "Personal text" msgid "personal_text_invalid" msgstr "Your personal text is invalid." -#, fuzzy msgid "postfix_classname" -msgstr "Postfix classname" +msgstr "Afegir sufix classe" #, fuzzy msgid "preferred_keyword_language" @@ -1674,13 +1391,11 @@ msgstr "Quiz score" msgid "quiz_tab" msgstr "Quiz" -#, fuzzy msgid "quiz_threshold_not_reached" -msgstr "Quiz threshold not reached to unlock this level" +msgstr "No s'ha superat el llindar del qüestionari per a desbloquejar aquest nivell" -#, fuzzy msgid "read_code_label" -msgstr "Read aloud" +msgstr "Llegeix en veu alta" #, fuzzy msgid "recent" @@ -1690,9 +1405,8 @@ msgstr "My recent programs" msgid "recover_password" msgstr "Request a password reset" -#, fuzzy msgid "regress_button" -msgstr "Go back to level {level}" +msgstr "Torna al nivell {level}" #, fuzzy msgid "remove" @@ -1774,567 +1488,421 @@ msgstr "You're not allowed to view this adventure!" msgid "retrieve_class_error" msgstr "Only teachers can retrieve classes" -#, fuzzy msgid "run_code_button" -msgstr "Run code" +msgstr "Executa" -#, fuzzy msgid "runs_over_time" -msgstr "Runs over time" +msgstr "S'executa en el temps" -#, fuzzy msgid "save" -msgstr "Save" +msgstr "Guarda" -#, fuzzy msgid "save_parse_warning" -msgstr "This program contains an error, are you sure you want to save it?" +msgstr "Aquest programa conté un error, segur que el vols guardar?" -#, fuzzy msgid "save_prompt" -msgstr "" -"You need to have an account to save your program. Would you like to login" -" now?" +msgstr "Cal tenir un compte per guardar el programa. Vols iniciar sessió?" -#, fuzzy msgid "save_success_detail" -msgstr "Program saved successfully." +msgstr "Programa salvat amb èxit." -#, fuzzy msgid "score" -msgstr "Score" +msgstr "Puntuació" -#, fuzzy msgid "search" -msgstr "Search..." +msgstr "Cercar..." -#, fuzzy msgid "search_button" -msgstr "Search" +msgstr "Cerca" -#, fuzzy msgid "see_certificate" -msgstr "See {username} certificate!" +msgstr "Veure certificat de {username}!" -#, fuzzy msgid "select" -msgstr "Select" +msgstr "Selecciona" -#, fuzzy msgid "select_adventures" -msgstr "Select adventures" +msgstr "Selecciona i ordena aventures" -#, fuzzy msgid "self_removal_prompt" -msgstr "Are you sure you want to leave this class?" +msgstr "Segur vols abandonar aquesta classe?" -#, fuzzy msgid "send_password_recovery" -msgstr "Send me a password recovery link" +msgstr "Envia'm un enllaç de recuperació de contrasenya" -#, fuzzy msgid "sent_by" -msgstr "This invitation is sent by" +msgstr "Aquesta invitació ha sigut enviada per" -#, fuzzy msgid "sent_password_recovery" -msgstr "" -"You should soon receive an email with instructions on how to reset your " -"password." +msgstr "Ben aviat rebràs correu electrònic amb les instruccions per reinicialitzar la teva contrasenya." -#, fuzzy msgid "settings" -msgstr "My personal settings" +msgstr "La meva configuració personal" -#, fuzzy msgid "share" -msgstr "Share" +msgstr "Comparteix" -#, fuzzy msgid "share_by_giving_link" -msgstr "Show your program to other people by giving them the link below:" +msgstr "Mostra el teu programa a altres persones donant-los el següent enllaç:" -#, fuzzy msgid "share_confirm" -msgstr "Are you sure you want to make the program public?" +msgstr "Segur que vols fer públic el programa?" -#, fuzzy msgid "share_success_detail" -msgstr "Program shared successfully." +msgstr "Programa compartit amb èxit." -#, fuzzy msgid "share_your_program" -msgstr "Share your program" +msgstr "Comparteix el teu programa" -#, fuzzy msgid "signup_student_or_teacher" -msgstr "Are you a student or a teacher?" +msgstr "Ets estudiant o professor?" -#, fuzzy msgid "single quotes" -msgstr "a single quote" +msgstr "un apòstrof" -#, fuzzy msgid "slash" -msgstr "a slash" +msgstr "una barra" -#, fuzzy msgid "social_media" -msgstr "Social media" +msgstr "Xarxes socials" -#, fuzzy msgid "something_went_wrong_keyword_parsing" -msgstr "" -"There is a mistake in your adventure, are all keywords correctly " -"surrounded with { }?" +msgstr "Hi ha un error a la teva aventura, totes les paraules clau estan correctament envoltades amb { }?" -#, fuzzy msgid "space" -msgstr "a space" +msgstr "un espai" -#, fuzzy msgid "star" -msgstr "a star" +msgstr "un asterisc" -#, fuzzy msgid "start_hedy_tutorial" -msgstr "Start hedy tutorial" +msgstr "Inici tutorial Hedy" -#, fuzzy msgid "start_programming" -msgstr "Start programming" +msgstr "Comença a programar" -#, fuzzy msgid "start_programming_logo_alt" -msgstr "Start programming icon" +msgstr "Icona de començar a programar" -#, fuzzy msgid "start_quiz" -msgstr "Start quiz" +msgstr "Comença el qüestionari" -#, fuzzy msgid "start_teacher_tutorial" -msgstr "Start teacher tutorial" +msgstr "Comença el tutorial del professor" -#, fuzzy msgid "step_title" -msgstr "Assignment" +msgstr "Tasca" -#, fuzzy msgid "stop_code_button" -msgstr "Stop program" +msgstr "Para el programa" -#, fuzzy msgid "string" msgstr "text" -#, fuzzy msgid "student_already_in_class" -msgstr "This student is already in your class." +msgstr "Aquest alumne ja es troba a la vostra classe." -#, fuzzy msgid "student_already_invite" -msgstr "This student already has a pending invitation." +msgstr "Aquest alumne ja té una invitació pendent." msgid "student_details" msgstr "" -#, fuzzy msgid "student_list" -msgstr "Student list" +msgstr "Llistat d'alumnes" -#, fuzzy msgid "student_not_existing" -msgstr "This username doesn't exist." +msgstr "Aquest nom d'usuari no existeix." -#, fuzzy msgid "student_signup_header" -msgstr "Student" +msgstr "Alumne" -#, fuzzy msgid "students" -msgstr "students" +msgstr "alumnat" -#, fuzzy msgid "submission_time" -msgstr "Handed in at" +msgstr "Entregat fa" -#, fuzzy msgid "submit_answer" -msgstr "Answer question" +msgstr "Respon la pregunta" -#, fuzzy msgid "submit_program" -msgstr "Submit" +msgstr "Lliura" -#, fuzzy msgid "submit_warning" -msgstr "Are you sure you want to submit this program?" +msgstr "Estàs segur que vols lliurar aquest programa?" -#, fuzzy msgid "submitted" -msgstr "Submitted" +msgstr "Lliurat" -#, fuzzy msgid "submitted_header" -msgstr "This is a submitted program and can't be altered." +msgstr "Aquest és un programa ja lliurat i no pot ser modificat." -#, fuzzy msgid "subscribe" -msgstr "Subscribe" +msgstr "Subscriu-te" -#, fuzzy msgid "subscribe_newsletter" -msgstr "Subscribe to the newsletter" +msgstr "Subscriu-te al butlletí" -#, fuzzy msgid "surname" -msgstr "First Name" +msgstr "Nom" -#, fuzzy msgid "teacher" -msgstr "Teacher" +msgstr "Professor" -#, fuzzy msgid "teacher_account_request" -msgstr "You have a pending teacher account request" +msgstr "Tens una sol·licitud de compte de professorat pendent" -#, fuzzy msgid "teacher_account_success" -msgstr "You successfully requested a teacher account." +msgstr "Has sol·licitat un compte de professorat amb èxit." -#, fuzzy msgid "teacher_invalid" -msgstr "Your teacher value is invalid." +msgstr "El valor professor no és vàlid." -#, fuzzy msgid "teacher_invitation_require_login" -msgstr "" -"To set up your profile as a teacher, we will need you to log in. If you " -"don't have an account, please create one." +msgstr "Per a configurar el teu perfil com a professor, cal que t'autentifiquis primer. Si no tens un compte, crea'n un." -#, fuzzy msgid "teacher_manual" -msgstr "Teacher manual" +msgstr "Manual del professor" -#, fuzzy msgid "teacher_signup_header" -msgstr "Teacher" +msgstr "Professor" -#, fuzzy msgid "teacher_tutorial_logo_alt" -msgstr "Teacher tutorial icon" +msgstr "Icona del tutorial del professor" -#, fuzzy msgid "teacher_welcome" -msgstr "" -"Welcome to Hedy! Your are now the proud owner of a teachers account which" -" allows you to create classes and invite students." +msgstr "Benvinguda a Hedy! El teu compte s'ha actualitzat a compte de professorat. Això et permetrà crear classes i convidar alumnes." -#, fuzzy msgid "template_code" msgstr "" -"This is the explanation of my adventure!\n" +"Aquesta és l'explicació de la meva aventura!\n" "\n" -"This way I can show a command: {print}\n" +"D'aquesta manera puc mostrar una comanda: {print}\n" "\n" -"But sometimes I might want to show a piece of code, like this:\n" +"Però de vegades podria voler mostrar una peça de codi, així:\n" "
\n"
-"{ask} What's your name?\n"
-"{echo} so your name is \n"
+"{ask} Quin és el teu nom?\n"
+"{echo} El teu nom és \n"
 "
" -#, fuzzy msgid "this_turns_in_assignment" -msgstr "This turns in your assignment to your teacher." +msgstr "Això entrega la teva tasca al teu professor." -#, fuzzy msgid "title" -msgstr "Title" +msgstr "Títol" -#, fuzzy msgid "title_achievements" -msgstr "Hedy - My achievements" +msgstr "Hedy - Els meus assoliments" -#, fuzzy msgid "title_admin" -msgstr "Hedy - Administrator page" +msgstr "Hedy - Pàgina d'administrador" -#, fuzzy msgid "title_class grid_overview" -msgstr "Hedy - Grid overview" +msgstr "Hedy - Visió general en quadricula" -#, fuzzy msgid "title_class live_statistics" -msgstr "Hedy - Live Statistics" +msgstr "Hedy - Estadístiques en viu" -#, fuzzy msgid "title_class logs" -msgstr "Programs" +msgstr "Hedy - Registres" -#, fuzzy msgid "title_class statistics" -msgstr "My statistics" +msgstr "Les meves estadístiques" -#, fuzzy msgid "title_class-overview" -msgstr "Hedy - Class overview" +msgstr "Hedy - Visió general de la classe" -#, fuzzy msgid "title_customize-adventure" -msgstr "Hedy - Customize adventure" +msgstr "Hedy - Personalitza l'aventura" -#, fuzzy msgid "title_customize-class" -msgstr "Hedy - Customize class" +msgstr "Hedy - Personalitza la classe" -#, fuzzy msgid "title_explore" -msgstr "Hedy - Explore" +msgstr "Hedy - Explora" -#, fuzzy msgid "title_for-teacher" -msgstr "Hedy - For teachers" +msgstr "Hedy - Per a professorat" -#, fuzzy msgid "title_join-class" -msgstr "Hedy - Join class" +msgstr "Hedy - Uneix-te a la classe" -#, fuzzy msgid "title_landing-page" -msgstr "Welcome to Hedy!" +msgstr "Benvingut a Hedy!" -#, fuzzy msgid "title_learn-more" -msgstr "Hedy - Learn more" +msgstr "Hedy - Més informació" -#, fuzzy msgid "title_login" -msgstr "Hedy - Login" +msgstr "Hedy - Iniciar Sessió" -#, fuzzy msgid "title_my-profile" -msgstr "Hedy - My account" +msgstr "Hedy - El meu compte" -#, fuzzy msgid "title_privacy" -msgstr "Hedy - Privacy terms" +msgstr "Hedy - Condicions de privacitat" -#, fuzzy msgid "title_programs" -msgstr "Hedy - My programs" +msgstr "Hedy - Els meus programes" -#, fuzzy msgid "title_recover" -msgstr "Hedy - Recover account" +msgstr "Hedy - Recupera compte" -#, fuzzy msgid "title_reset" -msgstr "Hedy - Reset password" +msgstr "Hedy - Restablir la contrasenya" -#, fuzzy msgid "title_signup" -msgstr "Hedy - Create an account" +msgstr "Hedy - Crea un compte" -#, fuzzy msgid "title_start" -msgstr "Hedy - Textual programming made easy" +msgstr "Hedy - La programació textual feta fàcil" -#, fuzzy msgid "title_view-adventure" -msgstr "Hedy - View adventure" +msgstr "Hedy - Veure l'aventura" -#, fuzzy msgid "token_invalid" -msgstr "Your token is invalid." +msgstr "El teu token és invàlid." -#, fuzzy msgid "translate_error" -msgstr "" -"Something went wrong while translating the code. Try running the code to " -"see if it has an error. Code with errors can not be translated." +msgstr "Alguna ha anat malament durant la traducció del codi. Prova d'executar-lo a veure si té un error. Quan el codi té un error no es pot traduir." -#, fuzzy msgid "translating_hedy" -msgstr "Translating Hedy" +msgstr "Traduint Hedy" -#, fuzzy msgid "translator" -msgstr "Translator" +msgstr "Traductor" -#, fuzzy msgid "try_it" -msgstr "Try it" +msgstr "Prova-ho" -#, fuzzy msgid "tutorial" msgstr "Tutorial" -#, fuzzy msgid "tutorial_code_snippet" msgstr "" -"{print} Hello world!\n" -"{print} I'm learning Hedy with the tutorial!" +"{print} Hola món!\n" +"{print} Estic aprenent Hedy amb d'ajuda del tutorial!" -#, fuzzy msgid "tutorial_message_not_found" -msgstr "We couldn't find the requested tutorial step..." +msgstr "No hem pogut trobar el pas sol·licitat del tutorial..." -#, fuzzy msgid "tutorial_title_not_found" -msgstr "Tutorial step not found" +msgstr "Pas del tutorial no trobat" -#, fuzzy msgid "unauthorized" -msgstr "You don't have access rights for this page" +msgstr "No tens permisos per accedir a aquesta pàgina" -#, fuzzy msgid "unique_usernames" -msgstr "All usernames need to be unique." +msgstr "Tots els noms d'usuari han de ser únics." -#, fuzzy msgid "unlock_thresholds" -msgstr "Unlock level thresholds" +msgstr "Desbloqueja els llindars de nivell" -#, fuzzy msgid "unsaved_class_changes" -msgstr "There are unsaved changes, are you sure you want to leave this page?" +msgstr "Hi ha canvis no guardats, segur que voleu sortir d'aquesta pàgina?" -#, fuzzy msgid "unshare" -msgstr "Unshare" +msgstr "Deixa de compartir" -#, fuzzy msgid "unshare_confirm" -msgstr "Are you sure you want to make the program private?" +msgstr "Segur que vols fer el programa privat?" -#, fuzzy msgid "unshare_success_detail" -msgstr "Program unshared successfully." +msgstr "El programa s'ha deixat de compatir." -#, fuzzy msgid "update_adventure_prompt" -msgstr "Are you sure you want to update this adventure?" +msgstr "Estàs segur que vols actualitzar aquesta aventura?" -#, fuzzy msgid "update_profile" -msgstr "Update profile" +msgstr "Actualitza el perfil" -#, fuzzy msgid "update_public" -msgstr "Update public profile" +msgstr "Actualitza el perfil públic" -#, fuzzy msgid "updating_indicator" -msgstr "Updating" +msgstr "Actualitzant" -#, fuzzy msgid "use_of_blanks_exception" -msgstr "Use of blanks in programs" +msgstr "Ús d'espais en blanc als programes" -#, fuzzy msgid "use_of_nested_functions_exception" -msgstr "Use of nested functions" +msgstr "Ús de funcions imbricades" -#, fuzzy msgid "user" -msgstr "user" +msgstr "usuari" -#, fuzzy msgid "user_inexistent" -msgstr "This user doesn't exist" +msgstr "Aquest usuari no existeix" -#, fuzzy msgid "user_not_private" -msgstr "This user either doesn't exist or doesn't have a public profile" +msgstr "Aquest usuari no existeix o no té perfil públic" -#, fuzzy msgid "username" -msgstr "Username" +msgstr "Nom d'usuari" -#, fuzzy msgid "username_empty" -msgstr "You didn't enter an username!" +msgstr "No has introduït un nom d'usuari!" -#, fuzzy msgid "username_invalid" -msgstr "Your username is invalid." +msgstr "El teu nom d'usuari no és vàlid." -#, fuzzy msgid "username_special" -msgstr "Username cannot contain `:` or `@`." +msgstr "El nom d'usuari no pot contenir `:` or `@`." -#, fuzzy msgid "username_three" -msgstr "Username must contain at least three characters." +msgstr "El nom d'usuari ha de contenir almenys tres caràcters." -#, fuzzy msgid "usernames_exist" -msgstr "One or more usernames is already in use." +msgstr "Un o més noms d'usuari ja estan en ús." -#, fuzzy msgid "value" -msgstr "Value" +msgstr "Valor" -#, fuzzy msgid "variables" msgstr "Variables" -#, fuzzy msgid "view_program" -msgstr "View program" +msgstr "Veure el programa" -#, fuzzy msgid "welcome" -msgstr "Welcome" +msgstr "Benvinguda" -#, fuzzy msgid "welcome_back" -msgstr "Welcome back" +msgstr "Benvingut de nou" -#, fuzzy msgid "what_is_your_role" -msgstr "What is your role?" +msgstr "Quin és el teu paper?" -#, fuzzy msgid "what_should_my_code_do" -msgstr "What should my code do?" +msgstr "Què hauria de fer el meu codi?" -#, fuzzy msgid "whole_world" -msgstr "The world" +msgstr "El món" -#, fuzzy msgid "write_first_program" -msgstr "Write your first program!" +msgstr "Escriu el teu primer programa!" -#, fuzzy msgid "year_invalid" -msgstr "Please enter a year between 1900 and {current_year}." +msgstr "Si us plau, introdueix un any entre el 1900 i el {any_actual}." -#, fuzzy msgid "yes" -msgstr "Yes" +msgstr "Sí" -#, fuzzy msgid "your_account" -msgstr "Your profile" +msgstr "El teu perfil" -#, fuzzy msgid "your_class" -msgstr "Your class" +msgstr "La teva classe" -#, fuzzy msgid "your_last_program" -msgstr "Your last saved program" +msgstr "El teu últim programa guardat" -#, fuzzy msgid "your_personal_text" -msgstr "Your personal text..." +msgstr "El teu text personal..." -#, fuzzy msgid "your_program" -msgstr "Your program" +msgstr "El teu programa" #~ msgid "select_own_adventures" #~ msgstr "Select own adventures" diff --git a/translations/es/LC_MESSAGES/messages.po b/translations/es/LC_MESSAGES/messages.po index f5cf113933a..1b0311a85d9 100644 --- a/translations/es/LC_MESSAGES/messages.po +++ b/translations/es/LC_MESSAGES/messages.po @@ -3,8 +3,8 @@ msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2023-09-22 21:29+0200\n" -"PO-Revision-Date: 2023-09-27 14:01+0000\n" -"Last-Translator: Kamborio \n" +"PO-Revision-Date: 2023-10-01 00:34+0000\n" +"Last-Translator: aniollidon \n" "Language-Team: es \n" "Language: es\n" "MIME-Version: 1.0\n" @@ -207,10 +207,7 @@ msgid "adventure_empty" msgstr "¡No has introducido un nombre de aventura!" msgid "adventure_exp_1" -msgstr "" -"Escoge tu aventura a la derecha. Tras crear tu aventura, puedes incluirla en " -"una de tus clases bajo \"Configuración\". Si quieres incluir un comando entu " -"aventura, usa anclas de código tal que así:" +msgstr "Escoge tu aventura a la derecha. Tras crear tu aventura, puedes incluirla en una de tus clases bajo \"Configuración\". Si quieres incluir un comando en tu aventura, usa anclas de código tal que así:" msgid "adventure_exp_2" msgstr "" From 2b849d1a54fe01aa2b4b9a7d6c4950d72b2684bb Mon Sep 17 00:00:00 2001 From: Hosted Weblate Date: Sun, 1 Oct 2023 09:42:04 +0200 Subject: [PATCH 05/15] Update translation files Updated by "Cleanup translation files" hook in Weblate. Update translation files Updated by "Cleanup translation files" hook in Weblate. Co-authored-by: Hosted Weblate Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/ Translate-URL: https://hosted.weblate.org/projects/hedy/slides/ Translation: Hedy/Adventures Translation: Hedy/slides --- content/adventures/ar.yaml | 6 +- content/adventures/bg.yaml | 638 ++++++++++++++++---------------- content/adventures/bn.yaml | 60 ++- content/adventures/ca.yaml | 2 - content/adventures/cs.yaml | 2 - content/adventures/cy.yaml | 2 - content/adventures/da.yaml | 2 - content/adventures/de.yaml | 2 - content/adventures/el.yaml | 46 ++- content/adventures/eo.yaml | 2 - content/adventures/es.yaml | 2 - content/adventures/et.yaml | 2 - content/adventures/fa.yaml | 2 - content/adventures/fi.yaml | 2 - content/adventures/fr.yaml | 2 - content/adventures/fy.yaml | 14 +- content/adventures/he.yaml | 2 - content/adventures/hi.yaml | 40 +- content/adventures/hu.yaml | 206 +++++------ content/adventures/id.yaml | 2 - content/adventures/it.yaml | 60 ++- content/adventures/ja.yaml | 2 - content/adventures/kmr.yaml | 2 - content/adventures/ko.yaml | 2 - content/adventures/nb_NO.yaml | 2 - content/adventures/nl.yaml | 4 +- content/adventures/pa_PK.yaml | 2 - content/adventures/pl.yaml | 2 - content/adventures/pt_BR.yaml | 2 - content/adventures/pt_PT.yaml | 66 ++-- content/adventures/ro.yaml | 2 - content/adventures/ru.yaml | 2 - content/adventures/sq.yaml | 2 - content/adventures/sr.yaml | 2 - content/adventures/sv.yaml | 2 - content/adventures/sw.yaml | 14 +- content/adventures/te.yaml | 2 - content/adventures/th.yaml | 2 - content/adventures/tl.yaml | 2 - content/adventures/tn.yaml | 2 - content/adventures/tr.yaml | 2 - content/adventures/uk.yaml | 2 - content/adventures/ur.yaml | 2 - content/adventures/vi.yaml | 2 - content/adventures/zh_Hans.yaml | 50 ++- content/adventures/zh_Hant.yaml | 2 - content/slides/tr.yaml | 3 - 47 files changed, 590 insertions(+), 685 deletions(-) diff --git a/content/adventures/ar.yaml b/content/adventures/ar.yaml index 6bb3c3006d0..1c72df22579 100644 --- a/content/adventures/ar.yaml +++ b/content/adventures/ar.yaml @@ -156,9 +156,9 @@ adventures: 11: story_text: |2- - `{print}` لا زال يعمل بالطريقة نفسها، ولكن أضفنا شكلاً جديداً من الأمر `{for}`. بامكاننا الان أن نكتب `{for} دورة {in} {range} ١ {to} ٥` وأن نستخدم بعدها المتغير `دورة` في البرنامج. + `{print}` لا زال يعمل بالطريقة نفسها، ولكن أضفنا شكلاً جديداً من الأمر `{for}`. بامكاننا الان أن نكتب `{for} دورة {in} {range} ١ {to} ٥` وأن نستخدم بعدها المتغير `دورة` في البرنامج. - فلنجرب الان ونرى ما سيحدث! تذكر أن تضع الإزاحة بعد استخدام الأوامر `{for}` و `{if}`(هذا يعني وضع اربع فراغات قبل بداية السطر الذي يكون ضمن هذه الأوامر) + فلنجرب الان ونرى ما سيحدث! تذكر أن تضع الإزاحة بعد استخدام الأوامر `{for}` و `{if}`(هذا يعني وضع اربع فراغات قبل بداية السطر الذي يكون ضمن هذه الأوامر) start_code: | {for} دورة {in} {range} ١ {to} ٥ {print} دورة @@ -979,8 +979,6 @@ adventures: start_code: "{print} '5 times 5 is ' 5 * 5" story_text: "## 1 + 1\nIn this level you learn something new: you can now also calculate.\n\nThe plus is easy, you write it like with math: `5 + 5` for example. The minus also works fine, it is `5 - 5`.\n\nThe times is a bit different, because there is no times symbol on your keyboard. Just search, there really isn't!\nThat is why we multiply with the asterisk above 8: `5 * 5`. Read that as \"5 times 5\" that helps you remember it best.\n" example_code: "```\n{print} '5 plus 5 is ' 5 + 5\n{print} '5 minus 5 is ' 5 - 5\n{print} '5 times 5 is ' 5 * 5\n```\n" - story_text_2: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" - example_code_2: "```\nname = Hedy\nanswer = 20 + 4\n```\n" 12: start_code: "{print} 'decimal numbers now need to use a dot'\n{print} 2.5 + 2.5" story_text: "**Decimal numbers**\nSo far, Hedy did not allow for decimal numbers like 1.5, but now we do allow that. Note that computers use the `.` for decimal numbers." diff --git a/content/adventures/bg.yaml b/content/adventures/bg.yaml index 1c4beeddf2b..6870be65d38 100644 --- a/content/adventures/bg.yaml +++ b/content/adventures/bg.yaml @@ -173,12 +173,12 @@ adventures: If the correct answer is never given, the loop never ends! example_code: |2 - ``` - answer = 0 - {while} answer != 25 - answer = {ask} 'What is 5 times 5?' - {print} 'A correct answer has been given' - ``` + ``` + answer = 0 + {while} answer != 25 + answer = {ask} 'What is 5 times 5?' + {print} 'A correct answer has been given' + ``` 16: start_code: |- fruit = ['apple', 'banana', 'cherry'] @@ -188,13 +188,13 @@ adventures: You can use the square brackets as well to point out a place in the lists. example_code: |2 - ``` - friends = ['Ahmed', 'Ben', 'Cayden'] - lucky_numbers = [15, 18, 6] - {for} i {in} {range} 1 {to} 3 - {print} 'the lucky number of ' friends[i] - {print} 'is ' lucky_numbers[i] - ``` + ``` + friends = ['Ahmed', 'Ben', 'Cayden'] + lucky_numbers = [15, 18, 6] + {for} i {in} {range} 1 {to} 3 + {print} 'the lucky number of ' friends[i] + {print} 'is ' lucky_numbers[i] + ``` 17: start_code: |- {for} i {in} {range} 1 {to} 10: @@ -248,13 +248,13 @@ adventures: example_code: |2 - ``` - name is ask Как се нарича главаната героиня? - print name сега навлиза в гората. - print Тя е малко разтревожена. - print Наоколо се долавят странни шумове и звуци. - print name се опасява че гората може би е омагьосана. - ``` + ``` + name is ask Как се нарича главаната героиня? + print name сега навлиза в гората. + print Тя е малко разтревожена. + print Наоколо се долавят странни шумове и звуци. + print name се опасява че гората може би е омагьосана. + ``` start_code: "print Твоята история" story_text_2: "### Exercise\nNow it's time to add variables to your own story that you've made in the previous level.\nGo to 'My programs', look for your level 1 story adventure and copy the code. Paste the code in your input screen in this level.\n\nThis code won't work in this level, because you have not used variables yet.\nChange the `{ask}` commands and `{echo}` commands in your code to the correct form that you've learned in this level.\n\n**Extra** Add a sleep command to your code to build up tension in your story.\n" 7: @@ -273,20 +273,20 @@ adventures: 5: story_text: |2 - В четвърто ниво ще направиш историята си дори по-цветиста и забавна! - Тук ще прибавиш различни възможни завършеци, за да има изненадващ край. + В четвърто ниво ще направиш историята си дори по-цветиста и забавна! + Тук ще прибавиш различни възможни завършеци, за да има изненадващ край. - Представи си, че историята започва така: + Представи си, че историята започва така: - 1. Принцесата се разхожда в гората. - 2. Внезапно насреща й изскача свирепо чудовище. + 1. Принцесата се разхожда в гората. + 2. Внезапно насреща й изскача свирепо чудовище. - 3. **щастлив край**: Тя изважда острата си сабя и чудовището се оттегля от пътя й. - 3. **тъжен край**: Чудовището отваря голямата си паст и поглъща принцесата цяла. + 3. **щастлив край**: Тя изважда острата си сабя и чудовището се оттегля от пътя й. + 3. **тъжен край**: Чудовището отваря голямата си паст и поглъща принцесата цяла. - Сега ще ползваме променливата "име" по-гъвкаво, също както в трето ниво. - Виж как ползваме командите `if` (ако) и `else` (тогава), за да програмираме избирането - на един от двата края на историята. + Сега ще ползваме променливата "име" по-гъвкаво, също както в трето ниво. + Виж как ползваме командите `if` (ако) и `else` (тогава), за да програмираме избирането + на един от двата края на историята. example_code: | ``` @@ -320,7 +320,7 @@ adventures: 3: story_text: |2 - Към историята, която пишеш можеш да добавиш нещо произволно и неочаквано, примерно чудовище, животно или някаква пречка. + Към историята, която пишеш можеш да добавиш нещо произволно и неочаквано, примерно чудовище, животно или някаква пречка. start_code: "print Твоята история" story_text_2: | @@ -338,13 +338,13 @@ adventures: example_code_3: |2 - ``` - {print} His backpack got way too heavy. - {print} Inside were a bottle of water, a flashlight and a brick. - bag {is} water, flashlight, brick - dump {is} {ask} Which item should he dump? - {remove} dump {from} bag - ``` + ``` + {print} His backpack got way too heavy. + {print} Inside were a bottle of water, a flashlight and a brick. + bag {is} water, flashlight, brick + dump {is} {ask} Which item should he dump? + {remove} dump {from} bag + ``` example_code: |- Ето как изглежда: ``` @@ -393,16 +393,16 @@ adventures: example_code: |2 - ``` - verse = 99 - {print} verse ' bottles of beer on the wall' - {print} verse ' bottles of beer' - {print} 'Take one down, pass it around' - verse = verse - 1 - {print} verse ' bottles of beer on the wall' - ``` + ``` + verse = 99 + {print} verse ' bottles of beer on the wall' + {print} verse ' bottles of beer' + {print} 'Take one down, pass it around' + verse = verse - 1 + {print} verse ' bottles of beer on the wall' + ``` - You can now repeat lines 2 to 9 as many times as you want by copying the lines. + You can now repeat lines 2 to 9 as many times as you want by copying the lines. start_code: "{print} 'Baby shark'" story_text_2: "This children's song counts down from 5 little monkeys to 1 monkey.\nIf you copy line 2 - 7 and paste it under the the code, you can sing the whole song!\n" example_code_2: "```\nnumber = 6\nnumber = number - 1\nprint number ' little monkeys jumping on the bed'\nprint 'One fell off and bumped his head'\nprint 'Mama called the doctor and the doctor said'\nprint 'NO MORE MONKEYS JUMPING ON THE BED!'\nsleep\n```\n" @@ -419,12 +419,12 @@ adventures: example_code: |2 - ``` - {repeat} _ _ {print} 'Baby Shark tututudutudu' - {print} 'Baby Shark' - ``` + ``` + {repeat} _ _ {print} 'Baby Shark tututudutudu' + {print} 'Baby Shark' + ``` - After Baby Shark you can of course also program other songs. There are many songs with repetition. + After Baby Shark you can of course also program other songs. There are many songs with repetition. start_code: "{print} 'Baby Shark'" 8: story_text: | @@ -432,15 +432,15 @@ adventures: example_code: |2 - ``` - verse = 99 - {repeat} 99 {times} - {print} verse ' bottles of beer on the wall' - {print} verse ' bottles of beer' - {print} 'Take one down, pass it around' - verse = verse - 1 - {print} verse ' bottles of beer on the wall' - ``` + ``` + verse = 99 + {repeat} 99 {times} + {print} verse ' bottles of beer on the wall' + {print} verse ' bottles of beer' + {print} 'Take one down, pass it around' + verse = verse - 1 + {print} verse ' bottles of beer on the wall' + ``` start_code: "# place your code here" 10: story_text: | @@ -508,16 +508,16 @@ adventures: example_code: |2 - ``` - actions = 'clap your hands', 'stomp your feet', 'shout Hurray!' - {for} action {in} actions - {for} i {in} {range} 1 {to} 2 - {print} 'if youre happy and you know it' - {print} action - {print} 'if youre happy and you know it and you really want to show it' - {print} 'if youre happy and you know it' - {print} action - ``` + ``` + actions = 'clap your hands', 'stomp your feet', 'shout Hurray!' + {for} action {in} actions + {for} i {in} {range} 1 {to} 2 + {print} 'if youre happy and you know it' + {print} action + {print} 'if youre happy and you know it and you really want to show it' + {print} 'if youre happy and you know it' + {print} action + ``` start_code: "# place your code here" 16: story_text: | @@ -593,14 +593,14 @@ adventures: example_code: |2 - ``` - print "Рисуване на фигура" - angle is 90 - turn angle - forward 50 - turn angle - forward 50 - ``` + ``` + print "Рисуване на фигура" + angle is 90 + turn angle + forward 50 + turn angle + forward 50 + ``` start_code: | print Състезание с костенурки! @@ -687,17 +687,17 @@ adventures: story_text: |2 - Докато рисуваш костенурката можеш да добавиш и командата `random`. С нея костенурката ще поеме в произволна посока всеки път. - Ползвай `at random` в комбинация с променлива с повече стойности, не само една. - Ползвай примера отдолу и увеличи листа с още стойности, освен 10, 50, 90, 150, 250. + Докато рисуваш костенурката можеш да добавиш и командата `random`. С нея костенурката ще поеме в произволна посока всеки път. + Ползвай `at random` в комбинация с променлива с повече стойности, не само една. + Ползвай примера отдолу и увеличи листа с още стойности, освен 10, 50, 90, 150, 250. example_code: |2 - ``` - ъгли is 10, 50, 90, 150, 250 - turn ъгли at random - forward 25 - ``` + ``` + ъгли is 10, 50, 90, 150, 250 + turn ъгли at random + forward 25 + ``` start_code: | print Състезание с костенурки! @@ -755,11 +755,11 @@ adventures: 5: story_text: |2 - С командата `if` ще създадем възможност за повече избор в програмата ни. - Можеш да програмираш реакция на системата по определен избор. + С командата `if` ще създадем възможност за повече избор в програмата ни. + Можеш да програмираш реакция на системата по определен избор. - Можеш ли да довършиш примерния код по-долу с думите 'Какъв лош късмет..' когато ти си наред да миеш? - И не забравяй да ползваш кавички около текста! + Можеш ли да довършиш примерния код по-долу с думите 'Какъв лош късмет..' когато ти си наред да миеш? + И не забравяй да ползваш кавички около текста! example_code: | ``` @@ -773,12 +773,12 @@ adventures: 4: story_text: |2 - Сега ползвай кавички, за да подобриш графика на миячите на чинии. - Този път в кода има пропуски, отбелязани с черта за подчертаване '_'. + Сега ползвай кавички, за да подобриш графика на миячите на чинии. + Този път в кода има пропуски, отбелязани с черта за подчертаване '_'. - Можеш ли да замениш 'празните места' с подходящ код - дума или символ? + Можеш ли да замениш 'празните места' с подходящ код - дума или символ? - Съвет: не забравяй да ползваш кавички около текста! + Съвет: не забравяй да ползваш кавички около текста! example_code: | ``` @@ -1129,27 +1129,27 @@ adventures: example_code: |2 - ``` - {print} 'Welcome to Hedys restaurant!' - people = {ask} 'How many people will be joining us today?' - {print} 'Great!' - price = 0 - {repeat} people {times} - food = {ask} 'What would you like to order?' - {print} food - {if} food {is} fries - price = price + 3 - sauce = {ask} 'What kind of sauce would you like with your fries?' - {if} sauce {is} no - {print} 'no sauce' - {else} - price = price + 1 - {print} 'with ' sauce - {if} food {is} pizza - price = price + 4 - {print} 'That will be ' price ' dollar' - {print} 'Enjoy your meal!' - ``` + ``` + {print} 'Welcome to Hedys restaurant!' + people = {ask} 'How many people will be joining us today?' + {print} 'Great!' + price = 0 + {repeat} people {times} + food = {ask} 'What would you like to order?' + {print} food + {if} food {is} fries + price = price + 3 + sauce = {ask} 'What kind of sauce would you like with your fries?' + {if} sauce {is} no + {print} 'no sauce' + {else} + price = price + 1 + {print} 'with ' sauce + {if} food {is} pizza + price = price + 4 + {print} 'That will be ' price ' dollar' + {print} 'Enjoy your meal!' + ``` start_code: "# place your code here" 10: story_text: | @@ -1157,16 +1157,16 @@ adventures: example_code: |2 - ``` - courses = appetizer, main course, dessert - {for} course {in} courses - food = {ask} 'What would you like to eat as your ' course '?' - {print} food ' will be your ' course - ``` + ``` + courses = appetizer, main course, dessert + {for} course {in} courses + food = {ask} 'What would you like to eat as your ' course '?' + {print} food ' will be your ' course + ``` story_text_2: |2 - Of course, you could also order for multiple people! + Of course, you could also order for multiple people! example_code_2: | ``` courses = appetizer, main course, dessert @@ -1183,21 +1183,21 @@ adventures: example_code: |2 - ``` - {print} 'Welcome to Restaurant Hedy!' - people = {ask} 'For how many people would you like to order?' - {for} i {in} {range} 1 {to} people - {print} 'Order number ' i - food = {ask} 'What would you like to eat?' - {print} food - {if} food {is} fries - sauce = {ask} 'What kind of sauce would you like with that?' - {print} sauce - drinks = {ask} 'What would you like to drink?' - {print} drinks - price = 4 * people - {print} 'That will be ' price ' dollars, please!' - ``` + ``` + {print} 'Welcome to Restaurant Hedy!' + people = {ask} 'For how many people would you like to order?' + {for} i {in} {range} 1 {to} people + {print} 'Order number ' i + food = {ask} 'What would you like to eat?' + {print} food + {if} food {is} fries + sauce = {ask} 'What kind of sauce would you like with that?' + {print} sauce + drinks = {ask} 'What would you like to drink?' + {print} drinks + price = 4 * people + {print} 'That will be ' price ' dollars, please!' + ``` start_code: "# place your code here" 12: story_text: | @@ -1205,20 +1205,20 @@ adventures: example_code: |2 - ``` - price = 0 - food = {ask} 'What would you like to order?' - drink = {ask} 'What would you like to drink?' - {if} food {is} 'hamburger' - price = price + 6.50 - {if} food {is} 'pizza' - price = price + 5.75 - {if} drink {is} 'water' - price = price + 1.20 - {if} drink {is} 'soda' - price = price + 2.35 - {print} 'That will be ' price ' dollar, please' - ``` + ``` + price = 0 + food = {ask} 'What would you like to order?' + drink = {ask} 'What would you like to drink?' + {if} food {is} 'hamburger' + price = price + 6.50 + {if} food {is} 'pizza' + price = price + 5.75 + {if} drink {is} 'water' + price = price + 1.20 + {if} drink {is} 'soda' + price = price + 2.35 + {print} 'That will be ' price ' dollar, please' + ``` start_code: "# place your code here" 13: story_text: | @@ -1227,15 +1227,15 @@ adventures: example_code: |2 - ``` - price = 10 - food = {ask} 'What would you like to eat?' - drinks = {ask} 'What would you like to drink?' - {if} food {is} 'sandwich' {and} drinks {is} 'juice' - {print} 'Thats our discount menu' - price = price - 3 - {print} 'That will be ' price ' dollars' - ``` + ``` + price = 10 + food = {ask} 'What would you like to eat?' + drinks = {ask} 'What would you like to drink?' + {if} food {is} 'sandwich' {and} drinks {is} 'juice' + {print} 'Thats our discount menu' + price = price - 3 + {print} 'That will be ' price ' dollars' + ``` start_code: "# place your code here" 15: story_text: | @@ -1244,15 +1244,15 @@ adventures: example_code: |2 - ``` - {print} 'Welcome at McHedy' - more = 'yes' - {while} more == 'yes' - order = {ask} 'What would you like to order?' - {print} order - more = {ask} 'Would you like to order anything {else}?' - {print} 'Thank you!' - ``` + ``` + {print} 'Welcome at McHedy' + more = 'yes' + {while} more == 'yes' + order = {ask} 'What would you like to order?' + {print} order + more = {ask} 'Would you like to order anything {else}?' + {print} 'Thank you!' + ``` start_code: "# place your code here" fortune: name: Fortune teller @@ -1312,20 +1312,20 @@ adventures: - ``` - {print} How did I get here? - {print} I remember my friend telling me to go into the old mansion... - {print} and suddenly everything went black. - {print} But how did I end up on the floor...? - {print} My head hurts like Ive been hit by a baseball bat! - {print} What's that sound? - {print} Oh no! I feel like Im not alone in this house! - {print} I need to get out of here! - {print} There are 3 doors in front of me.. - {ask} Which door should i pick? - {echo} I choose door - {print} ...? - ``` + ``` + {print} How did I get here? + {print} I remember my friend telling me to go into the old mansion... + {print} and suddenly everything went black. + {print} But how did I end up on the floor...? + {print} My head hurts like Ive been hit by a baseball bat! + {print} What's that sound? + {print} Oh no! I feel like Im not alone in this house! + {print} I need to get out of here! + {print} There are 3 doors in front of me.. + {ask} Which door should i pick? + {echo} I choose door + {print} ...? + ``` story_text_2: | Can you finish the scary story? Or make up your own haunted house story? start_code: "{print} How did I get here?" @@ -1334,16 +1334,16 @@ adventures: In this haunted house you can choose your monsters with emojis. Of course you could also use words. example_code: |2 - ``` - monster_1 {is} 👻 - monster_2 {is} 🤡 - monster_3 {is} 👶 - {print} You enter the haunted house. - {print} Suddenly you see a monster_1 - {print} You run into the other room, but a monster_2 is waiting there for you! - {print} Oh no! Quickly get to the kitchen. - {print} But as you enter monster_3 attacks you! - ``` + ``` + monster_1 {is} 👻 + monster_2 {is} 🤡 + monster_3 {is} 👶 + {print} You enter the haunted house. + {print} Suddenly you see a monster_1 + {print} You run into the other room, but a monster_2 is waiting there for you! + {print} Oh no! Quickly get to the kitchen. + {print} But as you enter monster_3 attacks you! + ``` start_code: "monster1 {is} _" story_text_2: "### Exercise\nIn the example above the monsters are predetermined. So each time you run your code, the output is the same.\nCan you add `{ask}` commands to make the haunted house interactive and have the players choose the monsters they come across?\n" example_code_2: "```\nmonster_1 {is} _\nmonster_2 {is} _\nmonster_3 {is} _\n{print} You enter the haunted house.\n{print} Suddenly you see a monster_1\n{print} You run into the other room, but a monster_2 is waiting there for you!\n{print} Oh no! Quickly get to the kitchen.\n{print} But as you enter monster_3 attacks you!\n```\n" @@ -1379,18 +1379,18 @@ adventures: example_code: |2 - ``` - {print} 'Escape from the haunted house!' - {print} 'There are 3 doors in front of you...' - doors {is} 1, 2, 3 - monsters {is} werewolf, mummy, vampire, zombie - chosen_door {is} {ask} 'Which door do you choose?' - {print} 'You chose door...' chosen_door - {sleep} - correct_door {is} doors {at} {random} - {if} chosen_door {is} correct_door {print} 'Great! Youve escaped!' - {else} {print} 'Oh no! You are being eaten by a...' monsters {at} {random} - ``` + ``` + {print} 'Escape from the haunted house!' + {print} 'There are 3 doors in front of you...' + doors {is} 1, 2, 3 + monsters {is} werewolf, mummy, vampire, zombie + chosen_door {is} {ask} 'Which door do you choose?' + {print} 'You chose door...' chosen_door + {sleep} + correct_door {is} doors {at} {random} + {if} chosen_door {is} correct_door {print} 'Great! Youve escaped!' + {else} {print} 'Oh no! You are being eaten by a...' monsters {at} {random} + ``` start_code: "# place your code here" 9: @@ -1402,26 +1402,26 @@ adventures: example_code: |2 - ``` - {print} 'Escape from the Haunted House!' - player = alive - doors = 1, 2, 3 - monsters = zombie, vampire, giant spider - {repeat} 3 {times} - {if} player {is} alive - correct_door {is} doors {at} {random} - {print} 'There are 3 doors in front of you...' - chosen_door = {ask} 'Which door do you choose?' - {if} chosen_door {is} correct_door - {print} 'No monsters here!' - {else} - {print} 'You are eaten by a ' monsters {at} {random} - player = dead - {else} - {print} 'GAME OVER' - {if} player {is} alive - {print} 'Great! You survived!' - ``` + ``` + {print} 'Escape from the Haunted House!' + player = alive + doors = 1, 2, 3 + monsters = zombie, vampire, giant spider + {repeat} 3 {times} + {if} player {is} alive + correct_door {is} doors {at} {random} + {print} 'There are 3 doors in front of you...' + chosen_door = {ask} 'Which door do you choose?' + {if} chosen_door {is} correct_door + {print} 'No monsters here!' + {else} + {print} 'You are eaten by a ' monsters {at} {random} + player = dead + {else} + {print} 'GAME OVER' + {if} player {is} alive + {print} 'Great! You survived!' + ``` start_code: "{print} 'Escape from the haunted house!'" 11: story_text: | @@ -1429,27 +1429,27 @@ adventures: example_code: |2 - ``` - {print} 'Escape from the Haunted House!' - player {is} alive - doors = 1, 2, 3 - monsters = zombie, vampire, giant spider - {for} i {in} {range} 1 {to} 3 - {if} player {is} alive - correct_door = doors {at} {random} - {print} 'Room ' i - {print} 'There are 3 doors in front of you...' - chosendoor = {ask} 'Which door do you choose?' - {if} chosendoor {is} correct_door - {print} 'No monsters here!' - {else} - {print} 'You are eaten by a ' monsters {at} {random} - player = dead - {else} - {print} 'GAME OVER' - {if} player {is} alive - {print} 'Great! You survived!' - ``` + ``` + {print} 'Escape from the Haunted House!' + player {is} alive + doors = 1, 2, 3 + monsters = zombie, vampire, giant spider + {for} i {in} {range} 1 {to} 3 + {if} player {is} alive + correct_door = doors {at} {random} + {print} 'Room ' i + {print} 'There are 3 doors in front of you...' + chosendoor = {ask} 'Which door do you choose?' + {if} chosendoor {is} correct_door + {print} 'No monsters here!' + {else} + {print} 'You are eaten by a ' monsters {at} {random} + player = dead + {else} + {print} 'GAME OVER' + {if} player {is} alive + {print} 'Great! You survived!' + ``` start_code: "{print} 'Escape from the haunted house!'" 14: story_text: | @@ -1457,28 +1457,28 @@ adventures: example_code: |2 - ``` - {print} 'Escape from the haunted house' - lives = 3 - doors = 1, 2, 3 - monsters = 'the wicked witch', 'a zombie', 'a sleeping 3 headed dog' - {for} i {in} {range} 1 {to} 10 - {if} lives > 0 - good_door = doors {at} {random} - monster = monsters {at} {random} - chosen_door = {ask} 'Which door do you choose?' - {if} good_door == chosen_door - {print} 'You have chosen the correct door' - {else} - {print} 'You see...' monster - {if} monster == 'a sleeping 3 headed dog' - {print} 'Pffieuw.... Its asleep' - {else} - {print} 'You lose one life' - lives = lives -1 - {else} - {print} 'GAME OVER' - ``` + ``` + {print} 'Escape from the haunted house' + lives = 3 + doors = 1, 2, 3 + monsters = 'the wicked witch', 'a zombie', 'a sleeping 3 headed dog' + {for} i {in} {range} 1 {to} 10 + {if} lives > 0 + good_door = doors {at} {random} + monster = monsters {at} {random} + chosen_door = {ask} 'Which door do you choose?' + {if} good_door == chosen_door + {print} 'You have chosen the correct door' + {else} + {print} 'You see...' monster + {if} monster == 'a sleeping 3 headed dog' + {print} 'Pffieuw.... Its asleep' + {else} + {print} 'You lose one life' + lives = lives -1 + {else} + {print} 'GAME OVER' + ``` start_code: "# place your code here" 16: story_text: | @@ -1488,32 +1488,32 @@ adventures: example_code: |2 - ``` - numbers = [1, 2, 3] - i = numbers[{random}] - hint = ['growling', 'a cackling laugh', 'fluttering batwings'] - monsters = ['zombie', 'witch', 'vampire'] - bad_fate = ['Your brain is eaten', 'You are forever cursed', 'You are bitten'] - good_fate = ['You throw the ham. The zombie is distracted and starts eating it.', 'You set the curtains on fire. The witch flees out of fear for the fire', 'The vampire hates garlic and flees'] - weapons = ['ham', 'lighter', 'garlic'] - {print} 'You are standing in front of an old mansion' - {print} 'Something is not right here' - {print} 'You hear ' hint[i] - {print} 'You are going to explore it' - {print} 'You enter the kitchen and see a lighter, a raw ham and a garlic.' - your_weapon = {ask} 'What do you bring with you?' - {print} 'With your ' your_weapon ' you enter the living room' - {print} 'There you find a ' monsters[i] - needed_weapon = weapons[i] - {if} your_weapon == needed_weapon - {print} 'You use your ' your_weapon - {print} good_fate[i] - {print} 'YOU WIN!' - {else} - {print} 'You have chosen the wrong weapon...' - {print} bad_fate[i] - {print} 'GAME OVER' - ``` + ``` + numbers = [1, 2, 3] + i = numbers[{random}] + hint = ['growling', 'a cackling laugh', 'fluttering batwings'] + monsters = ['zombie', 'witch', 'vampire'] + bad_fate = ['Your brain is eaten', 'You are forever cursed', 'You are bitten'] + good_fate = ['You throw the ham. The zombie is distracted and starts eating it.', 'You set the curtains on fire. The witch flees out of fear for the fire', 'The vampire hates garlic and flees'] + weapons = ['ham', 'lighter', 'garlic'] + {print} 'You are standing in front of an old mansion' + {print} 'Something is not right here' + {print} 'You hear ' hint[i] + {print} 'You are going to explore it' + {print} 'You enter the kitchen and see a lighter, a raw ham and a garlic.' + your_weapon = {ask} 'What do you bring with you?' + {print} 'With your ' your_weapon ' you enter the living room' + {print} 'There you find a ' monsters[i] + needed_weapon = weapons[i] + {if} your_weapon == needed_weapon + {print} 'You use your ' your_weapon + {print} good_fate[i] + {print} 'YOU WIN!' + {else} + {print} 'You have chosen the wrong weapon...' + {print} bad_fate[i] + {print} 'GAME OVER' + ``` start_code: "# place your code here" piggybank: default_save_name: Piggy Bank @@ -1547,15 +1547,15 @@ adventures: Make your own program to practice your vocabulary in a new language. example_code: |2 - ``` - {print} 'Learn French!' - cat {is} {ask} '🐱' - {if} cat {is} chat {print} 'Terrific!' - {else} {print} 'No, cat is chat' - frog {is} {ask} '🐸' - {if} frog {is} grenouille {print} 'Super!' - {else} {print} 'No, frog is grenouille' - ``` + ``` + {print} 'Learn French!' + cat {is} {ask} '🐱' + {if} cat {is} chat {print} 'Terrific!' + {else} {print} 'No, cat is chat' + frog {is} {ask} '🐸' + {if} frog {is} grenouille {print} 'Super!' + {else} {print} 'No, frog is grenouille' + ``` start_code: "# place your code here" 16: story_text: | @@ -1563,20 +1563,20 @@ adventures: example_code: |2 - ``` - french_words = ['bonjour', 'ordinateur', 'pomme de terre'] - translation = ['hello', 'computer', 'potato'] - score = 0 - {for} i {in} {range} 1 {to} 3 - answer = {ask} 'What does ' french_words[i] ' mean?' - correct = translation[i] - {if} answer == correct - {print} 'Correct!' - score = score + 1 - {else} - {print} 'Wrong, ' french_words[i] ' means ' translation[i] - {print} 'You gave ' score ' correct answers.' - ``` + ``` + french_words = ['bonjour', 'ordinateur', 'pomme de terre'] + translation = ['hello', 'computer', 'potato'] + score = 0 + {for} i {in} {range} 1 {to} 3 + answer = {ask} 'What does ' french_words[i] ' mean?' + correct = translation[i] + {if} answer == correct + {print} 'Correct!' + score = score + 1 + {else} + {print} 'Wrong, ' french_words[i] ' means ' translation[i] + {print} 'You gave ' score ' correct answers.' + ``` start_code: "# place your code here" secret: name: SuperSpy @@ -1890,8 +1890,6 @@ adventures: start_code: "{print} '5 times 5 is ' 5 * 5" story_text: "## 1 + 1\nIn this level you learn something new: you can now also calculate.\n\nThe plus is easy, you write it like with math: `5 + 5` for example. The minus also works fine, it is `5 - 5`.\n\nThe times is a bit different, because there is no times symbol on your keyboard. Just search, there really isn't!\nThat is why we multiply with the asterisk above 8: `5 * 5`. Read that as \"5 times 5\" that helps you remember it best.\n" example_code: "```\n{print} '5 plus 5 is ' 5 + 5\n{print} '5 minus 5 is ' 5 - 5\n{print} '5 times 5 is ' 5 * 5\n```\n" - story_text_2: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" - example_code_2: "```\nname = Hedy\nanswer = 20 + 4\n```\n" 12: start_code: "{print} 'decimal numbers now need to use a dot'\n{print} 2.5 + 2.5" story_text: "**Decimal numbers**\nSo far, Hedy did not allow for decimal numbers like 1.5, but now we do allow that. Note that computers use the `.` for decimal numbers." diff --git a/content/adventures/bn.yaml b/content/adventures/bn.yaml index ac670dedfbd..4f7b9197fa9 100644 --- a/content/adventures/bn.yaml +++ b/content/adventures/bn.yaml @@ -949,7 +949,7 @@ adventures: Can you make the code so that you get the total score for 8 dice? To do that, you have to cut and paste some lines of the code. example_code_2: |2 - Did you manage to calculate the score for 8 dice? That required a lot of cutting and pasting, right? We are going to make that easier in level 7! + Did you manage to calculate the score for 8 dice? That required a lot of cutting and pasting, right? We are going to make that easier in level 7! start_code: "{print} 'What will the die indicate this time?'" 7: story_text: | @@ -1024,9 +1024,9 @@ adventures: 3: story_text: |2 - In this level we can enter lists and choose things from them. - You first make a list with `{is}`. Then you can let the computer choose something from the list with `{at} {random}`. - For example, you can let the computer pick from rock, paper and scissors. + In this level we can enter lists and choose things from them. + You first make a list with `{is}`. Then you can let the computer choose something from the list with `{at} {random}`. + For example, you can let the computer pick from rock, paper and scissors. example_code: | ``` @@ -1383,20 +1383,20 @@ adventures: example_code: |2 - You can make a simple restaurant code, like this: - ``` - {print} 'Welcome to Hedys restaurant' - {print} 'Here is our menu:' - {print} 'Our main courses are pizza, lasagne, or spaghetti' - main = {ask} 'Which main course would you like?' - price = 0 - {if} main {is} pizza price = 10 - {if} main {is} lasagne price = 12 - {if} main {is} spaghetti price = 8 - {print} 'You have ordered ' main - {print} 'That will be ' price ' dollars, please' - {print} 'Thank you, enjoy your meal!' - ``` + You can make a simple restaurant code, like this: + ``` + {print} 'Welcome to Hedys restaurant' + {print} 'Here is our menu:' + {print} 'Our main courses are pizza, lasagne, or spaghetti' + main = {ask} 'Which main course would you like?' + price = 0 + {if} main {is} pizza price = 10 + {if} main {is} lasagne price = 12 + {if} main {is} spaghetti price = 8 + {print} 'You have ordered ' main + {print} 'That will be ' price ' dollars, please' + {print} 'Thank you, enjoy your meal!' + ``` start_code: "# place your code here" 7: story_text: | @@ -1467,7 +1467,7 @@ adventures: ``` story_text_2: |2 - Of course, you could also order for multiple people! + Of course, you could also order for multiple people! example_code_2: | ``` courses = appetizer, main course, dessert @@ -1580,16 +1580,16 @@ adventures: In this level you can use a variable and the `{at} {random}` command to really let Hedy choose an answer for you. Check out this code for instance: example_code: |2 - In this example the player can {ask} Hedy a yes-no question and Hedy will pick a random answer for you. - ``` - {print} I’m Hedy the fortune teller! - question {is} {ask} What do you want to know? - {print} This is what you want to know: question - answers {is} yes, no, maybe - {print} My crystal ball says... - {sleep} 2 - {print} answers {at} {random} - ``` + In this example the player can {ask} Hedy a yes-no question and Hedy will pick a random answer for you. + ``` + {print} I’m Hedy the fortune teller! + question {is} {ask} What do you want to know? + {print} This is what you want to know: question + answers {is} yes, no, maybe + {print} My crystal ball says... + {sleep} 2 + {print} answers {at} {random} + ``` story_text_2: | Now, Hedy can only answer yes, no or maybe. Can you give Hedy more answer options, like 'definitely' or '{ask} again'. start_code: "# place your code here" @@ -2715,8 +2715,6 @@ adventures: start_code: "{print} '5 times 5 is ' 5 * 5" story_text: "## 1 + 1\nIn this level you learn something new: you can now also calculate.\n\nThe plus is easy, you write it like with math: `5 + 5` for example. The minus also works fine, it is `5 - 5`.\n\nThe times is a bit different, because there is no times symbol on your keyboard. Just search, there really isn't!\nThat is why we multiply with the asterisk above 8: `5 * 5`. Read that as \"5 times 5\" that helps you remember it best.\n" example_code: "```\n{print} '5 plus 5 is ' 5 + 5\n{print} '5 minus 5 is ' 5 - 5\n{print} '5 times 5 is ' 5 * 5\n```\n" - story_text_2: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" - example_code_2: "```\nname = Hedy\nanswer = 20 + 4\n```\n" 12: start_code: "{print} 'decimal numbers now need to use a dot'\n{print} 2.5 + 2.5" story_text: "**Decimal numbers**\nSo far, Hedy did not allow for decimal numbers like 1.5, but now we do allow that. Note that computers use the `.` for decimal numbers।" diff --git a/content/adventures/ca.yaml b/content/adventures/ca.yaml index 079b8eee3c9..8691064f321 100644 --- a/content/adventures/ca.yaml +++ b/content/adventures/ca.yaml @@ -721,8 +721,6 @@ adventures: start_code: "{print} '5 times 5 is ' 5 * 5" story_text: "## 1 + 1\nIn this level you learn something new: you can now also calculate.\n\nThe plus is easy, you write it like with math: `5 + 5` for example. The minus also works fine, it is `5 - 5`.\n\nThe times is a bit different, because there is no times symbol on your keyboard. Just search, there really isn't!\nThat is why we multiply with the asterisk above 8: `5 * 5`. Read that as \"5 times 5\" that helps you remember it best.\n" example_code: "```\n{print} '5 plus 5 is ' 5 + 5\n{print} '5 minus 5 is ' 5 - 5\n{print} '5 times 5 is ' 5 * 5\n```\n" - story_text_2: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" - example_code_2: "```\nname = Hedy\nanswer = 20 + 4\n```\n" 12: story_text: "**Decimal numbers**\nSo far, Hedy did not allow for decimal numbers like 1.5, but now we do allow that. Note that computers use the `.` for decimal numbers." example_code: "```\n{print} 'Two and a half plus two and a half is...'\n{print} 2.5 + 2.5\n```\n" diff --git a/content/adventures/cs.yaml b/content/adventures/cs.yaml index b54f16d6000..03a925431d5 100644 --- a/content/adventures/cs.yaml +++ b/content/adventures/cs.yaml @@ -972,8 +972,6 @@ adventures: start_code: "{print} '5 times 5 is ' 5 * 5" story_text: "## 1 + 1\nIn this level you learn something new: you can now also calculate.\n\nThe plus is easy, you write it like with math: `5 + 5` for example. The minus also works fine, it is `5 - 5`.\n\nThe times is a bit different, because there is no times symbol on your keyboard. Just search, there really isn't!\nThat is why we multiply with the asterisk above 8: `5 * 5`. Read that as \"5 times 5\" that helps you remember it best.\n" example_code: "```\n{print} '5 plus 5 is ' 5 + 5\n{print} '5 minus 5 is ' 5 - 5\n{print} '5 times 5 is ' 5 * 5\n```\n" - story_text_2: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" - example_code_2: "```\nname = Hedy\nanswer = 20 + 4\n```\n" 12: start_code: "{print} 'decimal numbers now need to use a dot'\n{print} 2.5 + 2.5" story_text: "**Decimal numbers**\nSo far, Hedy did not allow for decimal numbers like 1.5, but now we do allow that. Note that computers use the `.` for decimal numbers." diff --git a/content/adventures/cy.yaml b/content/adventures/cy.yaml index e01073a2697..273a8ca5ea7 100644 --- a/content/adventures/cy.yaml +++ b/content/adventures/cy.yaml @@ -896,8 +896,6 @@ adventures: start_code: "{print} '5 times 5 is ' 5 * 5" story_text: "## 1 + 1\nIn this level you learn something new: you can now also calculate.\n\nThe plus is easy, you write it like with math: `5 + 5` for example. The minus also works fine, it is `5 - 5`.\n\nThe times is a bit different, because there is no times symbol on your keyboard. Just search, there really isn't!\nThat is why we multiply with the asterisk above 8: `5 * 5`. Read that as \"5 times 5\" that helps you remember it best.\n" example_code: "```\n{print} '5 plus 5 is ' 5 + 5\n{print} '5 minus 5 is ' 5 - 5\n{print} '5 times 5 is ' 5 * 5\n```\n" - story_text_2: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" - example_code_2: "```\nname = Hedy\nanswer = 20 + 4\n```\n" 12: start_code: "{print} 'decimal numbers now need to use a dot'\n{print} 2.5 + 2.5" story_text: "**Decimal numbers**\nSo far, Hedy did not allow for decimal numbers like 1.5, but now we do allow that. Note that computers use the `.` for decimal numbers." diff --git a/content/adventures/da.yaml b/content/adventures/da.yaml index 751802ff614..211beaeb448 100644 --- a/content/adventures/da.yaml +++ b/content/adventures/da.yaml @@ -904,8 +904,6 @@ adventures: start_code: "{print} '5 times 5 is ' 5 * 5" story_text: "## 1 + 1\nIn this level you learn something new: you can now also calculate.\n\nThe plus is easy, you write it like with math: `5 + 5` for example. The minus also works fine, it is `5 - 5`.\n\nThe times is a bit different, because there is no times symbol on your keyboard. Just search, there really isn't!\nThat is why we multiply with the asterisk above 8: `5 * 5`. Read that as \"5 times 5\" that helps you remember it best.\n" example_code: "```\n{print} '5 plus 5 is ' 5 + 5\n{print} '5 minus 5 is ' 5 - 5\n{print} '5 times 5 is ' 5 * 5\n```\n" - story_text_2: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" - example_code_2: "```\nname = Hedy\nanswer = 20 + 4\n```\n" 12: start_code: "{print} 'decimal numbers now need to use a dot'\n{print} 2.5 + 2.5" story_text: "**Decimal numbers**\nSo far, Hedy did not allow for decimal numbers like 1.5, but now we do allow that. Note that computers use the `.` for decimal numbers." diff --git a/content/adventures/de.yaml b/content/adventures/de.yaml index d378e9cf103..ba7d2a17236 100644 --- a/content/adventures/de.yaml +++ b/content/adventures/de.yaml @@ -2613,8 +2613,6 @@ adventures: start_code: "{print} '5 times 5 is ' 5 * 5" story_text: "## 1 + 1\nIn this level you learn something new: you can now also calculate.\n\nThe plus is easy, you write it like with math: `5 + 5` for example. The minus also works fine, it is `5 - 5`.\n\nThe times is a bit different, because there is no times symbol on your keyboard. Just search, there really isn't!\nThat is why we multiply with the asterisk above 8: `5 * 5`. Read that as \"5 times 5\" that helps you remember it best.\n" example_code: "```\n{print} '5 plus 5 is ' 5 + 5\n{print} '5 minus 5 is ' 5 - 5\n{print} '5 times 5 is ' 5 * 5\n```\n" - story_text_2: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" - example_code_2: "```\nname = Hedy\nanswer = 20 + 4\n```\n" 12: start_code: "{print} 'decimal numbers now need to use a dot'\n{print} 2.5 + 2.5" story_text: "**Decimal numbers**\nSo far, Hedy did not allow for decimal numbers like 1.5, but now we do allow that. Note that computers use the `.` for decimal numbers." diff --git a/content/adventures/el.yaml b/content/adventures/el.yaml index d0059b54405..a252d9af9a5 100644 --- a/content/adventures/el.yaml +++ b/content/adventures/el.yaml @@ -292,8 +292,8 @@ adventures: 7: story_text: |2 - Σε μια ιστορία, κάποιος μπορεί να αναφέρει διάφορες λέξεις πολλές φορές. Για παράδειγμα, όταν κάποιος φωνάζει βοήθεια ή τραγουδά ένα τραγούδι. - Μπορείς να βάλεις μια τέτοια επανάληψη στην ιστορία σου στο επίπεδο 5 με την `repeat`. + Σε μια ιστορία, κάποιος μπορεί να αναφέρει διάφορες λέξεις πολλές φορές. Για παράδειγμα, όταν κάποιος φωνάζει βοήθεια ή τραγουδά ένα τραγούδι. + Μπορείς να βάλεις μια τέτοια επανάληψη στην ιστορία σου στο επίπεδο 5 με την `repeat`. example_code: | ``` @@ -329,13 +329,13 @@ adventures: 4: story_text: |2 - Θα παρατήρησες πως υπάρχει ακόμα ένα σφάλμα στο επίπεδο 2. + Θα παρατήρησες πως υπάρχει ακόμα ένα σφάλμα στο επίπεδο 2. - Δοκίμασες να κάνεις μια πρόταση χρησιμοποιώντας τη λέξη name; Δηλαδή, `print το name μου είναι name`. + Δοκίμασες να κάνεις μια πρόταση χρησιμοποιώντας τη λέξη name; Δηλαδή, `print το name μου είναι name`. - Αυτό δε δούλεψε σωστά! Τότε θα έχεις σαν αποτέλεσμα: το Γιάννης μου είναι Γιάννης. Αυτό μπορεί να λυθεί στο επίπεδο 3. + Αυτό δε δούλεψε σωστά! Τότε θα έχεις σαν αποτέλεσμα: το Γιάννης μου είναι Γιάννης. Αυτό μπορεί να λυθεί στο επίπεδο 3. - Θα πρέπει να χρησιμοποιήσεις εισαγωγικά για οτιδήποτε θα εμφανίσεις. + Θα πρέπει να χρησιμοποιήσεις εισαγωγικά για οτιδήποτε θα εμφανίσεις. example_code: | ``` @@ -351,9 +351,9 @@ adventures: 3: story_text: |2 - Μπορείς επίσης να προσθέσεις κάτι τυχαίο στην ιστορία σου. Οποιοδήποτε τέρας, ζώο ή άλλο εμπόδιο. + Μπορείς επίσης να προσθέσεις κάτι τυχαίο στην ιστορία σου. Οποιοδήποτε τέρας, ζώο ή άλλο εμπόδιο. - Αυτό πάει κάπως έτσι. + Αυτό πάει κάπως έτσι. start_code: "print Η ιστορία σου" example_code: | ``` @@ -731,11 +731,11 @@ adventures: 3: story_text: |2 - Στο επίπεδο 2 μπορούμε να εισάγουμε λίστες και να επιλέξουμε πράγματα από αυτές. + Στο επίπεδο 2 μπορούμε να εισάγουμε λίστες και να επιλέξουμε πράγματα από αυτές. - Αρχικά θα φτιάξεις μια λίστα με την `is`. Ύστερα μπορείς να αφήσεις τον υπολογιστή να επιλέξει κάτι από τη λίστα με την `at random` (τυχαία). + Αρχικά θα φτιάξεις μια λίστα με την `is`. Ύστερα μπορείς να αφήσεις τον υπολογιστή να επιλέξει κάτι από τη λίστα με την `at random` (τυχαία). - Για παράδειγμα, μπορείς να αφήσεις τον υπολογιστή να επιλέξει ανάμεσα σε πέτρα, ψαλίδι και χαρτί. + Για παράδειγμα, μπορείς να αφήσεις τον υπολογιστή να επιλέξει ανάμεσα σε πέτρα, ψαλίδι και χαρτί. example_code: | ``` @@ -862,17 +862,17 @@ adventures: start_code: "# place your code here" example_code: |2- - ``` - print Καλωσήλθατε στο εστιατόριο της Hedy! - print Σήμερα σερβίρουμε πίτσα ή λαζάνια. - food is ask Τί θα θέλατε να φάτε; - print Καλή επιλογή! Αυτό το φαγητό είναι το αγαπημένο μου! - topping is ask Θα θέλατε κρέας ή λαχανικά μαζί με αυτό; - print food with topping ετοιμάζεται! - drinks is ask Τί θα θέλατε να πιείς με αυτό; - print Σας ευχαριστώ για την παραγγελία. - print Το φαγητό και τα ποτά σας θα είναι έτοιμα αμέσως! - ``` + ``` + print Καλωσήλθατε στο εστιατόριο της Hedy! + print Σήμερα σερβίρουμε πίτσα ή λαζάνια. + food is ask Τί θα θέλατε να φάτε; + print Καλή επιλογή! Αυτό το φαγητό είναι το αγαπημένο μου! + topping is ask Θα θέλατε κρέας ή λαχανικά μαζί με αυτό; + print food with topping ετοιμάζεται! + drinks is ask Τί θα θέλατε να πιείς με αυτό; + print Σας ευχαριστώ για την παραγγελία. + print Το φαγητό και τα ποτά σας θα είναι έτοιμα αμέσως! + ``` story_text_2: "### Exercise\nCan you make this code more elaborate? For example by adding drinks to the order? Or...?\n" 3: story_text: | @@ -1507,8 +1507,6 @@ adventures: start_code: "{print} '5 times 5 is ' 5 * 5" story_text: "## 1 + 1\nIn this level you learn something new: you can now also calculate.\n\nThe plus is easy, you write it like with math: `5 + 5` for example. The minus also works fine, it is `5 - 5`.\n\nThe times is a bit different, because there is no times symbol on your keyboard. Just search, there really isn't!\nThat is why we multiply with the asterisk above 8: `5 * 5`. Read that as \"5 times 5\" that helps you remember it best.\n" example_code: "```\n{print} '5 plus 5 is ' 5 + 5\n{print} '5 minus 5 is ' 5 - 5\n{print} '5 times 5 is ' 5 * 5\n```\n" - story_text_2: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" - example_code_2: "```\nname = Hedy\nanswer = 20 + 4\n```\n" description: Introducing maths default_save_name: maths name: maths diff --git a/content/adventures/eo.yaml b/content/adventures/eo.yaml index 4c389e4601f..4d68de91740 100644 --- a/content/adventures/eo.yaml +++ b/content/adventures/eo.yaml @@ -869,11 +869,9 @@ adventures: maths: levels: 6: - example_code_2: "```\nname = Hedy\nanswer = 20 + 4\n```\n" start_code: "{print} '5 times 5 is ' 5 * 5" story_text: "## 1 + 1\nIn this level you learn something new: you can now also calculate.\n\nThe plus is easy, you write it like with math: `5 + 5` for example. The minus also works fine, it is `5 - 5`.\n\nThe times is a bit different, because there is no times symbol on your keyboard. Just search, there really isn't!\nThat is why we multiply with the asterisk above 8: `5 * 5`. Read that as \"5 times 5\" that helps you remember it best.\n" example_code: "```\n{print} '5 plus 5 is ' 5 + 5\n{print} '5 minus 5 is ' 5 - 5\n{print} '5 times 5 is ' 5 * 5\n```\n" - story_text_2: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" 12: start_code: "{print} 'decimal numbers now need to use a dot'\n{print} 2.5 + 2.5" story_text: "**Decimal numbers**\nSo far, Hedy did not allow for decimal numbers like 1.5, but now we do allow that. Note that computers use the `.` for decimal numbers." diff --git a/content/adventures/es.yaml b/content/adventures/es.yaml index d49f5c2c2aa..6d1e4a0d9f0 100644 --- a/content/adventures/es.yaml +++ b/content/adventures/es.yaml @@ -1627,8 +1627,6 @@ adventures: start_code: "{print} '5 veces 5 es ' 5 * 5" story_text: "## 1 + 1\nEn este nivel aprenderás algo nuevo: ahora también puedes calcular.\n\nLa suma es fácil, se escribe como en matemáticas: `5 + 5` por ejemplo. La resta funciona igual, es `5 - 5`.\n\nLa multiplicación es un poco diferente, porque no hay símbolo de multiplicar en tu teclado. 'Sólo busca, no hay realmente!\nEso es porque multiplicamos con el asterisco sobre el 8: `5 * 5`. Léelo como \"5 veces 5\" para recordarlo mejor.\n" example_code: "```\n{print} '5 más 5 es ' 5 + 5\n{print} '5 menos 5 es ' 5 - 5\n{print} '5 veces 5 es ' 5 * 5\n```\n" - story_text_2: "¡También podemos hacer un cambio al cambiar una palabra en una variable! Ahora puedes usar `=` en vez de `{is}` cuando almacenamos un nombre o número en una variable, tal que así:\n" - example_code_2: "```\nnombre = Hedy\nrespuesta = 20 + 4\n```\n" 12: start_code: "{print} 'los números decimales ahora tienen que usar un punto'\n{print} 2.5 + 2.5" story_text: "**Números decimales**\nHasta ahora, Hedy no permitía números decimales como 1.5, pero ahora permitimos eso. Ten en cuenta que los ordenadores usan el `.` para los números decimales." diff --git a/content/adventures/et.yaml b/content/adventures/et.yaml index 36c052fc6bb..49ba999b178 100644 --- a/content/adventures/et.yaml +++ b/content/adventures/et.yaml @@ -905,8 +905,6 @@ adventures: start_code: "{print} '5 times 5 is ' 5 * 5" story_text: "## 1 + 1\nIn this level you learn something new: you can now also calculate.\n\nThe plus is easy, you write it like with math: `5 + 5` for example. The minus also works fine, it is `5 - 5`.\n\nThe times is a bit different, because there is no times symbol on your keyboard. Just search, there really isn't!\nThat is why we multiply with the asterisk above 8: `5 * 5`. Read that as \"5 times 5\" that helps you remember it best.\n" example_code: "```\n{print} '5 plus 5 is ' 5 + 5\n{print} '5 minus 5 is ' 5 - 5\n{print} '5 times 5 is ' 5 * 5\n```\n" - example_code_2: "```\nname = Hedy\nanswer = 20 + 4\n```\n" - story_text_2: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" 12: start_code: "{print} 'decimal numbers now need to use a dot'\n{print} 2.5 + 2.5" story_text: "**Decimal numbers**\nSo far, Hedy did not allow for decimal numbers like 1.5, but now we do allow that. Note that computers use the `.` for decimal numbers." diff --git a/content/adventures/fa.yaml b/content/adventures/fa.yaml index e81ae0e9a13..ba81c619809 100644 --- a/content/adventures/fa.yaml +++ b/content/adventures/fa.yaml @@ -910,8 +910,6 @@ adventures: start_code: "{print} '5 times 5 is ' 5 * 5" story_text: "## 1 + 1\nIn this level you learn something new: you can now also calculate.\n\nThe plus is easy, you write it like with math: `5 + 5` for example. The minus also works fine, it is `5 - 5`.\n\nThe times is a bit different, because there is no times symbol on your keyboard. Just search, there really isn't!\nThat is why we multiply with the asterisk above 8: `5 * 5`. Read that as \"5 times 5\" that helps you remember it best.\n" example_code: "```\n{print} '5 plus 5 is ' 5 + 5\n{print} '5 minus 5 is ' 5 - 5\n{print} '5 times 5 is ' 5 * 5\n```\n" - story_text_2: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" - example_code_2: "```\nname = Hedy\nanswer = 20 + 4\n```\n" 12: start_code: "{print} 'decimal numbers now need to use a dot'\n{print} 2.5 + 2.5" story_text: "**Decimal numbers**\nSo far, Hedy did not allow for decimal numbers like 1.5, but now we do allow that. Note that computers use the `.` for decimal numbers." diff --git a/content/adventures/fi.yaml b/content/adventures/fi.yaml index c80607b391d..02fbf658391 100644 --- a/content/adventures/fi.yaml +++ b/content/adventures/fi.yaml @@ -812,8 +812,6 @@ adventures: start_code: "{print} '5 times 5 is ' 5 * 5" story_text: "## 1 + 1\nIn this level you learn something new: you can now also calculate.\n\nThe plus is easy, you write it like with math: `5 + 5` for example. The minus also works fine, it is `5 - 5`.\n\nThe times is a bit different, because there is no times symbol on your keyboard. Just search, there really isn't!\nThat is why we multiply with the asterisk above 8: `5 * 5`. Read that as \"5 times 5\" that helps you remember it best.\n" example_code: "```\n{print} '5 plus 5 is ' 5 + 5\n{print} '5 minus 5 is ' 5 - 5\n{print} '5 times 5 is ' 5 * 5\n```\n" - story_text_2: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" - example_code_2: "```\nname = Hedy\nanswer = 20 + 4\n```\n" 12: start_code: "{print} 'decimal numbers now need to use a dot'\n{print} 2.5 + 2.5" story_text: "**Decimal numbers**\nSo far, Hedy did not allow for decimal numbers like 1.5, but now we do allow that. Note that computers use the `.` for decimal numbers." diff --git a/content/adventures/fr.yaml b/content/adventures/fr.yaml index 1f6593d892c..6ea91a167ec 100644 --- a/content/adventures/fr.yaml +++ b/content/adventures/fr.yaml @@ -2608,8 +2608,6 @@ adventures: start_code: "{print} \"5 fois 5 est \" 5 * 5" story_text: "## 1 + 1\nDans ce niveau tu apprends quelque chose de nouveau : tu peux maintenant faire des calculs.\n\nL'addition est facile, tu écris comme en math : `5 + 5` par exemple. Le moins aussi fonctionne bien, c'est `5 - 5`.\n\nLa multiplication est un peu différente parce qu'il n'y a pas la croix de la multiplication sur ton clavier. Cherche là, elle n'y est pas !\nVoilà pourquoi on multiplie avec l'étoile : `5 * 5`. Lit le « 5 fois 5 » pour t'aider à t'en souvenir plus facilement.\n" example_code: "```\n{print} \"5 plus 5 fait \" 5 + 5\n{print} \"5 moins 5 fait \" 5 - 5\n{print} \"5 fois 5 fait \" 5 * 5\n```\n" - story_text_2: "Nous faisons aussi un changement pour enregistrer un mot dans une variable ! Tu peux maintenant utiliser `=` à la place de `{is}` quand tu enregistres un nom ou un nombre dans une variable, comme ceci :\n" - example_code_2: "```\nnom = Hedy\nréponse = 20 + 4\n```\n" 12: start_code: "{print} \"Les nombres décimaux ont maintenant besoin d'utiliser un point\"\n{print} 2.5 + 2.5" story_text: "**Nombres décimaux**\nJusqu'à présent, Hedy ne te permettait pas d'utiliser les nombres décimaux comme 1.5, mais maintenant nous les autorisons. Attention, les langages de programmation utilisent le point pour les nombres décimaux et non la virgule." diff --git a/content/adventures/fy.yaml b/content/adventures/fy.yaml index d9ecc777f7d..15c153044ac 100644 --- a/content/adventures/fy.yaml +++ b/content/adventures/fy.yaml @@ -348,12 +348,12 @@ adventures: example_code_2: |2 - {print} He hears a sound - animals {is} 🐿, 🦔, 🦇, 🦉 - animal {is} {ask} What do you think it is? - {add} animal {to_list} animals - {print} it was a animals {at} {random} - ``` + {print} He hears a sound + animals {is} 🐿, 🦔, 🦇, 🦉 + animal {is} {ask} What do you think it is? + {add} animal {to_list} animals + {print} it was a animals {at} {random} + ``` story_text_3: | This is an example of the `{remove}` command in your story example_code_3: | @@ -1119,8 +1119,6 @@ adventures: description: Introducing maths levels: 6: - story_text_2: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" - example_code_2: "```\nname = Hedy\nanswer = 20 + 4\n```\n" start_code: "{print} '5 times 5 is ' 5 * 5" story_text: "## 1 + 1\nIn this level you learn something new: you can now also calculate.\n\nThe plus is easy, you write it like with math: `5 + 5` for example. The minus also works fine, it is `5 - 5`.\n\nThe times is a bit different, because there is no times symbol on your keyboard. Just search, there really isn't!\nThat is why we multiply with the asterisk above 8: `5 * 5`. Read that as \"5 times 5\" that helps you remember it best.\n" example_code: "```\n{print} '5 plus 5 is ' 5 + 5\n{print} '5 minus 5 is ' 5 - 5\n{print} '5 times 5 is ' 5 * 5\n```\n" diff --git a/content/adventures/he.yaml b/content/adventures/he.yaml index 569a26b395e..0f660011fd9 100644 --- a/content/adventures/he.yaml +++ b/content/adventures/he.yaml @@ -901,8 +901,6 @@ adventures: start_code: "{print} '5 times 5 is ' 5 * 5" story_text: "## 1 + 1\nIn this level you learn something new: you can now also calculate.\n\nThe plus is easy, you write it like with math: `5 + 5` for example. The minus also works fine, it is `5 - 5`.\n\nThe times is a bit different, because there is no times symbol on your keyboard. Just search, there really isn't!\nThat is why we multiply with the asterisk above 8: `5 * 5`. Read that as \"5 times 5\" that helps you remember it best.\n" example_code: "```\n{print} '5 plus 5 is ' 5 + 5\n{print} '5 minus 5 is ' 5 - 5\n{print} '5 times 5 is ' 5 * 5\n```\n" - story_text_2: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" - example_code_2: "```\nname = Hedy\nanswer = 20 + 4\n```\n" 12: start_code: "{print} 'decimal numbers now need to use a dot'\n{print} 2.5 + 2.5" story_text: "**Decimal numbers**\nSo far, Hedy did not allow for decimal numbers like 1.5, but now we do allow that. Note that computers use the `.` for decimal numbers." diff --git a/content/adventures/hi.yaml b/content/adventures/hi.yaml index fee1623b358..11a01169dcc 100644 --- a/content/adventures/hi.yaml +++ b/content/adventures/hi.yaml @@ -828,7 +828,7 @@ adventures: Can you make the code so that you get the total score for 8 dice? To do that, you have to cut and paste some lines of the code. example_code_2: |2 - Did you manage to calculate the score for 8 dice? That required a lot of cutting and pasting, right? We are going to make that easier in level 7! + Did you manage to calculate the score for 8 dice? That required a lot of cutting and pasting, right? We are going to make that easier in level 7! start_code: "{print} 'What will the die indicate this time?'" 15: story_text: | @@ -925,9 +925,9 @@ adventures: 3: story_text: |2 - In this level we can enter lists and choose things from them. - You first make a list with `{is}`. Then you can let the computer choose something from the list with `{at} {random}`. - For example, you can let the computer pick from rock, paper and scissors. + In this level we can enter lists and choose things from them. + You first make a list with `{is}`. Then you can let the computer choose something from the list with `{at} {random}`. + For example, you can let the computer pick from rock, paper and scissors. start_code: '{print} Welcome to your own rock scissors paper!' example_code: | ``` @@ -1230,20 +1230,20 @@ adventures: example_code: |2 - You can make a simple restaurant code, like this: - ``` - {print} 'Welcome to Hedys restaurant' - {print} 'Here is our menu:' - {print} 'Our main courses are pizza, lasagne, or spaghetti' - main = {ask} 'Which main course would you like?' - price = 0 - {if} main {is} pizza price = 10 - {if} main {is} lasagne price = 12 - {if} main {is} spaghetti price = 8 - {print} 'You have ordered ' main - {print} 'That will be ' price ' dollars, please' - {print} 'Thank you, enjoy your meal!' - ``` + You can make a simple restaurant code, like this: + ``` + {print} 'Welcome to Hedys restaurant' + {print} 'Here is our menu:' + {print} 'Our main courses are pizza, lasagne, or spaghetti' + main = {ask} 'Which main course would you like?' + price = 0 + {if} main {is} pizza price = 10 + {if} main {is} lasagne price = 12 + {if} main {is} spaghetti price = 8 + {print} 'You have ordered ' main + {print} 'That will be ' price ' dollars, please' + {print} 'Thank you, enjoy your meal!' + ``` start_code: "# place your code here" 7: story_text: | @@ -1314,7 +1314,7 @@ adventures: ``` story_text_2: |2 - Of course, you could also order for multiple people! + Of course, you could also order for multiple people! example_code_2: | ``` courses = appetizer, main course, dessert @@ -2401,8 +2401,6 @@ adventures: start_code: "{print} '5 times 5 is ' 5 * 5" story_text: "## 1 + 1\nIn this level you learn something new: you can now also calculate.\n\nThe plus is easy, you write it like with math: `5 + 5` for example. The minus also works fine, it is `5 - 5`.\n\nThe times is a bit different, because there is no times symbol on your keyboard. Just search, there really isn't!\nThat is why we multiply with the asterisk above 8: `5 * 5`. Read that as \"5 times 5\" that helps you remember it best.\n" example_code: "```\n{print} '5 plus 5 is ' 5 + 5\n{print} '5 minus 5 is ' 5 - 5\n{print} '5 times 5 is ' 5 * 5\n```\n" - story_text_2: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" - example_code_2: "```\nname = Hedy\nanswer = 20 + 4\n```\n" 12: start_code: "{print} 'decimal numbers now need to use a dot'\n{print} 2.5 + 2.5" story_text: "**Decimal numbers**\nSo far, Hedy did not allow for decimal numbers like 1.5, but now we do allow that. Note that computers use the `.` for decimal numbers।" diff --git a/content/adventures/hu.yaml b/content/adventures/hu.yaml index db3e525b904..ecf264783e7 100644 --- a/content/adventures/hu.yaml +++ b/content/adventures/hu.yaml @@ -269,8 +269,8 @@ adventures: start_code: print A te történeted story_text: |2 - Hozzáadhatsz valami véletlenszerűt is a történetéhez. Bármilyen szörnyet, állatot vagy - más akadályt. + Hozzáadhatsz valami véletlenszerűt is a történetéhez. Bármilyen szörnyet, állatot vagy + más akadályt. example_code: | ``` @@ -282,12 +282,12 @@ adventures: example_code_2: |2 - {print} He hears a sound - animals {is} 🐿, 🦔, 🦇, 🦉 - animal {is} {ask} What do you think it is? - {add} animal {to_list} animals - {print} it was a animals {at} {random} - ``` + {print} He hears a sound + animals {is} 🐿, 🦔, 🦇, 🦉 + animal {is} {ask} What do you think it is? + {add} animal {to_list} animals + {print} it was a animals {at} {random} + ``` story_text_3: | This is an example of the `{remove}` command in your story example_code_3: | @@ -497,12 +497,12 @@ adventures: start_code: print 'Ki mosogat?' story_text: |2- - Az idézőjelek segítségével szebbé teheted a mosogatás tervezését. - Ezúttal a minta kód nem egészen teljes. - Ki tudod egészíteni a kódot a helyes parancsok vagy karakterek pontokra történő - beírásával? - Minden üres helyet egy paranccsal kell kicserélni. - Tipp: Ne felejtsd el az idézőjeleket. + Az idézőjelek segítségével szebbé teheted a mosogatás tervezését. + Ezúttal a minta kód nem egészen teljes. + Ki tudod egészíteni a kódot a helyes parancsok vagy karakterek pontokra történő + beírásával? + Minden üres helyet egy paranccsal kell kicserélni. + Tipp: Ne felejtsd el az idézőjeleket. example_code: |- ``` emberek is anya, apa, Edit, Gizi @@ -983,21 +983,21 @@ adventures: example_code: |2- - ``` - print Üdvözöljük a Hedy's Random étteremben! - print Az egyetlen étterem amely véletlenszerűen kiválasztja az étkezést és annak árát az Ön számára! - eloetelek is saláta, leves, sajt - foetel is pizza, kelbimbó, spagetti - desszertek is brownie, fagylalt, francia sajtok - ital is kóla, sör, víz - arak is 1000 forint, 2000 forint, 3000 forint - print A következővel indul: eloetelek at random - print Ezután kiszolgáljuk: foetel at random - print És desszertként: desszertek at random - print Igyon egy italt - print Ez lesz: arak at random - print Köszönöm és élvezze az étkezést! - ``` + ``` + print Üdvözöljük a Hedy's Random étteremben! + print Az egyetlen étterem amely véletlenszerűen kiválasztja az étkezést és annak árát az Ön számára! + eloetelek is saláta, leves, sajt + foetel is pizza, kelbimbó, spagetti + desszertek is brownie, fagylalt, francia sajtok + ital is kóla, sör, víz + arak is 1000 forint, 2000 forint, 3000 forint + print A következővel indul: eloetelek at random + print Ezután kiszolgáljuk: foetel at random + print És desszertként: desszertek at random + print Igyon egy italt + print Ez lesz: arak at random + print Köszönöm és élvezze az étkezést! + ``` story_text_2: "Does your costumer have any allergies or do they dislike certain dishes? Then you can use the `{remove}`command to remove it from your menu.\n" example_code_2: "```\n{print} Mystery milkshake\nflavors {is} strawberry, chocolate, vanilla\nallergies {is} {ask} Are you allergic to any falvors?\n{remove} allergies {from} flavors\n{print} You get a flavors {at} {random} milkshake\n```\n" 15: @@ -1228,15 +1228,15 @@ adventures: example_code: |2- - ``` - print 'Hedy a jósnő vagyok!' - print 'Feltehetsz 3 kérdést.' - valasz is igen, nem, talán - repeat 3 times - kerdes is ask 'Mit akarsz tudni?' - print kerdes - print 'A kristálygömböm azt mondja...' valasz at random - ``` + ``` + print 'Hedy a jósnő vagyok!' + print 'Feltehetsz 3 kérdést.' + valasz is igen, nem, talán + repeat 3 times + kerdes is ask 'Mit akarsz tudni?' + print kerdes + print 'A kristálygömböm azt mondja...' valasz at random + ``` 7: story_text: |- Az 6. szinten a `repeat` paranccsal beállíthatod, hogy a gép egyszerre több jóslatot mondjon. @@ -1255,13 +1255,13 @@ adventures: print 'Feltehetsz 3 kérdést!' example_code: |2- - ``` - print 'Hedy, a jósnő vagyok!' - print 'Feltehetsz 3 kérdést!' - repeat 3 times kerdes is ask 'Mit akarsz tudni?' - valasz is igen, nem, talan - repeat 3 times print 'A kristálygömböm azt mondja... ' valasz at random - ``` + ``` + print 'Hedy, a jósnő vagyok!' + print 'Feltehetsz 3 kérdést!' + repeat 3 times kerdes is ask 'Mit akarsz tudni?' + valasz is igen, nem, talan + repeat 3 times print 'A kristálygömböm azt mondja... ' valasz at random + ``` 6: story_text: |- A 5. szinten jövendőmondóként használhatod a matematikát előrejelzéseidben. Ez lehetővé teszi (buta) képletek kitalálását a jövő kiszámításához. @@ -1272,30 +1272,30 @@ adventures: print 'Meg tudom jósolni, hány gyermeked lesz, ha felnősz!' example_code: |2- - ``` - print 'Hedy, a jósnő vagyok!' - print 'Meg tudom jósolni, hány gyermeked lesz, ha felnősz!' - kor is ask 'Hány éves vagy?' - testver is ask 'Hány testvéred van?' - magassag is ask 'Hány cm magas vagy?' - gyerekek is magassag / kor - gyerekek is gyerekek - testver - print 'Neked ...' - print gyerekek ' gyereked lesz!' - ``` - - Ha az előző példa nem volt elég buta a számodra, akkor nézd meg ezt! - - ``` - print 'Hedy vagyok a buta jósnő!' - print 'Meg tudom jósolni, milyen okos vagy!' - foci is ask '1-10-es skálás mennyire szereted a focit?' - banan is ask 'Hány banánt ettél a héten?' - higienia is ask 'Hányszor mostad meg a kezed ma?' - eredmeny is banan + higienia - eredmeny is eredmeny * foci - print 'Te ' eredmeny ' százalék okos vagy.' - ``` + ``` + print 'Hedy, a jósnő vagyok!' + print 'Meg tudom jósolni, hány gyermeked lesz, ha felnősz!' + kor is ask 'Hány éves vagy?' + testver is ask 'Hány testvéred van?' + magassag is ask 'Hány cm magas vagy?' + gyerekek is magassag / kor + gyerekek is gyerekek - testver + print 'Neked ...' + print gyerekek ' gyereked lesz!' + ``` + + Ha az előző példa nem volt elég buta a számodra, akkor nézd meg ezt! + + ``` + print 'Hedy vagyok a buta jósnő!' + print 'Meg tudom jósolni, milyen okos vagy!' + foci is ask '1-10-es skálás mennyire szereted a focit?' + banan is ask 'Hány banánt ettél a héten?' + higienia is ask 'Hányszor mostad meg a kezed ma?' + eredmeny is banan + higienia + eredmeny is eredmeny * foci + print 'Te ' eredmeny ' százalék okos vagy.' + ``` 5: story_text: |- A 4. szinten megtanulod (titokban) az esélyeket a magad javára billenteni a jósnő használata során! @@ -1313,12 +1313,12 @@ adventures: start_code: print 'Szia, Hedy, a jósnő vagyok!' example_code: |2- - ``` - print 'Szia, Hedy, a jósnő vagyok' - print 'Meg tudom jósolni, nyersz-e a lottón holnap!' - szemely is ask 'Ki vagy te?' - if szemely is Hedy print 'Bizonyosan nyerni fogsz!' else print 'Balszerencse! Valaki más nyer!' - ``` + ``` + print 'Szia, Hedy, a jósnő vagyok' + print 'Meg tudom jósolni, nyersz-e a lottón holnap!' + szemely is ask 'Ki vagy te?' + if szemely is Hedy print 'Bizonyosan nyerni fogsz!' else print 'Balszerencse! Valaki más nyer!' + ``` 4: start_code: print 'Szia, Hedy, a jósnő vagyok!' story_text: |- @@ -1332,13 +1332,13 @@ adventures: example_code: |2- - ``` - print 'Szia, Hedy, a jósnő vagyok!' - kerdes is ask 'Mit akarsz tudni?' - print 'Ez az amit tudni akarsz: ' kerdes - valasz is igen, nem, talan - print 'A kristálygömböm azt mondja... ' valasz at random - ``` + ``` + print 'Szia, Hedy, a jósnő vagyok!' + kerdes is ask 'Mit akarsz tudni?' + print 'Ez az amit tudni akarsz: ' kerdes + valasz is igen, nem, talan + print 'A kristálygömböm azt mondja... ' valasz at random + ``` 3: start_code: print Szia Hedy a jósnő vagyok! story_text: |- @@ -1402,26 +1402,26 @@ adventures: start_code: print 'Szabadulj ki a kísértetházból' example_code: |2- - ``` - print 'Szabadulj ki a kísértetházból' - jatekos is elo - ajtok is 1, 2, 3 - szornyek is vampir, zombi, oriaspok - for i in range 1 to 3 - if jatekos is elo - helyesajto is ajtok at random - print 'Három ajtó van előtted...' - valasztottajto is ask 'Melyik ajtót választod?' - if valasztottajto is helyesajto - print 'Itt nincs szörny!' - else - print 'Megevett a(z) ' szornyek at random - jatekos is halott - else - print 'GAME OVER' - if jatekos is elo - print 'Nagyszerű! Túlélted!' - ``` + ``` + print 'Szabadulj ki a kísértetházból' + jatekos is elo + ajtok is 1, 2, 3 + szornyek is vampir, zombi, oriaspok + for i in range 1 to 3 + if jatekos is elo + helyesajto is ajtok at random + print 'Három ajtó van előtted...' + valasztottajto is ask 'Melyik ajtót választod?' + if valasztottajto is helyesajto + print 'Itt nincs szörny!' + else + print 'Megevett a(z) ' szornyek at random + jatekos is halott + else + print 'GAME OVER' + if jatekos is elo + print 'Nagyszerű! Túlélted!' + ``` 5: story_text: |- Eddig a szintig a kísértetjárta ház játék mindig arra kérte a játékost, hogy válasszon egy ajtót, de ahogy észrevettétek, nem igazán kellett helyesen válaszolniuk. @@ -1797,9 +1797,7 @@ adventures: levels: 6: start_code: "{print} '5 times 5 is ' 5 * 5" - example_code_2: "```\nname = Hedy\nanswer = 20 + 4\n```\n" example_code: "```\n{print} '5 plus 5 is ' 5 + 5\n{print} '5 minus 5 is ' 5 - 5\n{print} '5 times 5 is ' 5 * 5\n```\n" - story_text_2: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" story_text: "## 1 + 1\nIn this level you learn something new: you can now also calculate.\n\nThe plus is easy, you write it like with math: `5 + 5` for example. The minus also works fine, it is `5 - 5`.\n\nThe times is a bit different, because there is no times symbol on your keyboard. Just search, there really isn't!\nThat is why we multiply with the asterisk above 8: `5 * 5`. Read that as \"5 times 5\" that helps you remember it best.\n" 12: start_code: "{print} 'decimal numbers now need to use a dot'\n{print} 2.5 + 2.5" diff --git a/content/adventures/id.yaml b/content/adventures/id.yaml index c7d15b2cb1f..15b0ad4788b 100644 --- a/content/adventures/id.yaml +++ b/content/adventures/id.yaml @@ -1823,8 +1823,6 @@ adventures: start_code: "{print} '5 times 5 is ' 5 * 5" story_text: "## 1 + 1\nIn this level you learn something new: you can now also calculate.\n\nThe plus is easy, you write it like with math: `5 + 5` for example. The minus also works fine, it is `5 - 5`.\n\nThe times is a bit different, because there is no times symbol on your keyboard. Just search, there really isn't!\nThat is why we multiply with the asterisk above 8: `5 * 5`. Read that as \"5 times 5\" that helps you remember it best.\n" example_code: "```\n{print} '5 plus 5 is ' 5 + 5\n{print} '5 minus 5 is ' 5 - 5\n{print} '5 times 5 is ' 5 * 5\n```\n" - story_text_2: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" - example_code_2: "```\nname = Hedy\nanswer = 20 + 4\n```\n" 12: start_code: "{print} 'decimal numbers now need to use a dot'\n{print} 2.5 + 2.5" story_text: "**Decimal numbers**\nSo far, Hedy did not allow for decimal numbers like 1.5, but now we do allow that. Note that computers use the `.` for decimal numbers." diff --git a/content/adventures/it.yaml b/content/adventures/it.yaml index 43b1d265260..409ea8e2497 100644 --- a/content/adventures/it.yaml +++ b/content/adventures/it.yaml @@ -1064,7 +1064,7 @@ adventures: Can you make the code so that you get the total score for 8 dice? To do that, you have to cut and paste some lines of the code. example_code_2: |2 - Did you manage to calculate the score for 8 dice? That required a lot of cutting and pasting, right? We are going to make that easier in level 7! + Did you manage to calculate the score for 8 dice? That required a lot of cutting and pasting, right? We are going to make that easier in level 7! start_code: "{print} 'What will the die indicate this time?'" 7: story_text: | @@ -1139,9 +1139,9 @@ adventures: 3: story_text: |2 - In this level we can enter lists and choose things from them. - You first make a list with `{is}`. Then you can let the computer choose something from the list with `{at} {random}`. - For example, you can let the computer pick from rock, paper and scissors. + In this level we can enter lists and choose things from them. + You first make a list with `{is}`. Then you can let the computer choose something from the list with `{at} {random}`. + For example, you can let the computer pick from rock, paper and scissors. example_code: | ``` @@ -1498,20 +1498,20 @@ adventures: example_code: |2 - You can make a simple restaurant code, like this: - ``` - {print} 'Welcome to Hedys restaurant' - {print} 'Here is our menu:' - {print} 'Our main courses are pizza, lasagne, or spaghetti' - main = {ask} 'Which main course would you like?' - price = 0 - {if} main {is} pizza price = 10 - {if} main {is} lasagne price = 12 - {if} main {is} spaghetti price = 8 - {print} 'You have ordered ' main - {print} 'That will be ' price ' dollars, please' - {print} 'Thank you, enjoy your meal!' - ``` + You can make a simple restaurant code, like this: + ``` + {print} 'Welcome to Hedys restaurant' + {print} 'Here is our menu:' + {print} 'Our main courses are pizza, lasagne, or spaghetti' + main = {ask} 'Which main course would you like?' + price = 0 + {if} main {is} pizza price = 10 + {if} main {is} lasagne price = 12 + {if} main {is} spaghetti price = 8 + {print} 'You have ordered ' main + {print} 'That will be ' price ' dollars, please' + {print} 'Thank you, enjoy your meal!' + ``` start_code: "# scrivi il tuo codice qui" 7: story_text: | @@ -1582,7 +1582,7 @@ adventures: ``` story_text_2: |2 - Of course, you could also order for multiple people! + Of course, you could also order for multiple people! example_code_2: | ``` courses = appetizer, main course, dessert @@ -1695,16 +1695,16 @@ adventures: In this level you can use a variable and the `{at} {random}` command to really let Hedy choose an answer for you. Check out this code for instance: example_code: |2 - In this example the player can {ask} Hedy a yes-no question and Hedy will pick a random answer for you. - ``` - {print} I’m Hedy the fortune teller! - question {is} {ask} What do you want to know? - {print} This is what you want to know: question - answers {is} yes, no, maybe - {print} My crystal ball says... - {sleep} 2 - {print} answers {at} {random} - ``` + In this example the player can {ask} Hedy a yes-no question and Hedy will pick a random answer for you. + ``` + {print} I’m Hedy the fortune teller! + question {is} {ask} What do you want to know? + {print} This is what you want to know: question + answers {is} yes, no, maybe + {print} My crystal ball says... + {sleep} 2 + {print} answers {at} {random} + ``` story_text_2: | Now, Hedy can only answer yes, no or maybe. Can you give Hedy more answer options, like 'definitely' or '{ask} again'. start_code: "# scrivi il tuo codice qui" @@ -2839,8 +2839,6 @@ adventures: start_code: "{print} '5 times 5 is ' 5 * 5" story_text: "## 1 + 1\nIn this level you learn something new: you can now also calculate.\n\nThe plus is easy, you write it like with math: `5 + 5` for example. The minus also works fine, it is `5 - 5`.\n\nThe times is a bit different, because there is no times symbol on your keyboard. Just search, there really isn't!\nThat is why we multiply with the asterisk above 8: `5 * 5`. Read that as \"5 times 5\" that helps you remember it best.\n" example_code: "```\n{print} '5 plus 5 is ' 5 + 5\n{print} '5 minus 5 is ' 5 - 5\n{print} '5 times 5 is ' 5 * 5\n```\n" - story_text_2: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" - example_code_2: "```\nname = Hedy\nanswer = 20 + 4\n```\n" 12: start_code: "{print} 'decimal numbers now need to use a dot'\n{print} 2.5 + 2.5" story_text: "**Decimal numbers**\nSo far, Hedy did not allow for decimal numbers like 1.5, but now we do allow that. Note that computers use the `.` for decimal numbers." diff --git a/content/adventures/ja.yaml b/content/adventures/ja.yaml index 2200632b71c..9e35142265d 100644 --- a/content/adventures/ja.yaml +++ b/content/adventures/ja.yaml @@ -737,8 +737,6 @@ adventures: start_code: "{print} '5 times 5 is ' 5 * 5" story_text: "## 1 + 1\nIn this level you learn something new: you can now also calculate.\n\nThe plus is easy, you write it like with math: `5 + 5` for example. The minus also works fine, it is `5 - 5`.\n\nThe times is a bit different, because there is no times symbol on your keyboard. Just search, there really isn't!\nThat is why we multiply with the asterisk above 8: `5 * 5`. Read that as \"5 times 5\" that helps you remember it best.\n" example_code: "```\n{print} '5 plus 5 is ' 5 + 5\n{print} '5 minus 5 is ' 5 - 5\n{print} '5 times 5 is ' 5 * 5\n```\n" - story_text_2: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" - example_code_2: "```\nname = Hedy\nanswer = 20 + 4\n```\n" 12: start_code: "{print} 'decimal numbers now need to use a dot'\n{print} 2.5 + 2.5" story_text: "**Decimal numbers**\nSo far, Hedy did not allow for decimal numbers like 1.5, but now we do allow that. Note that computers use the `.` for decimal numbers." diff --git a/content/adventures/kmr.yaml b/content/adventures/kmr.yaml index ba3cec15b96..03ca2fba302 100644 --- a/content/adventures/kmr.yaml +++ b/content/adventures/kmr.yaml @@ -905,8 +905,6 @@ adventures: start_code: "{print} '5 times 5 is ' 5 * 5" story_text: "## 1 + 1\nIn this level you learn something new: you can now also calculate.\n\nThe plus is easy, you write it like with math: `5 + 5` for example. The minus also works fine, it is `5 - 5`.\n\nThe times is a bit different, because there is no times symbol on your keyboard. Just search, there really isn't!\nThat is why we multiply with the asterisk above 8: `5 * 5`. Read that as \"5 times 5\" that helps you remember it best.\n" example_code: "```\n{print} '5 plus 5 is ' 5 + 5\n{print} '5 minus 5 is ' 5 - 5\n{print} '5 times 5 is ' 5 * 5\n```\n" - story_text_2: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" - example_code_2: "```\nname = Hedy\nanswer = 20 + 4\n```\n" 12: start_code: "{print} 'decimal numbers now need to use a dot'\n{print} 2.5 + 2.5" story_text: "**Decimal numbers**\nSo far, Hedy did not allow for decimal numbers like 1.5, but now we do allow that. Note that computers use the `.` for decimal numbers." diff --git a/content/adventures/ko.yaml b/content/adventures/ko.yaml index 0ead937c2b9..b758fc1b345 100644 --- a/content/adventures/ko.yaml +++ b/content/adventures/ko.yaml @@ -935,8 +935,6 @@ adventures: start_code: "{print} '5 times 5 is ' 5 * 5" story_text: "## 1 + 1\n이 레벨에서 새로운 것을 배울 수 있습니다. 이제 계산도 할 수 있습니다.\n\n좋은 점은 쉽다. 예를 들어 수학으로 `5 + 5`처럼 쓴다. 마이너스도 `5 - 5`로 잘 맞는다.\n\n여러분의 키보드에 기호가 없기 때문에 시대는 조금 다릅니다. 그냥 검색해보세요, 정말로 없습니다!\n그래서 우리는 위의 별표 8에 `5 * 5`를 곱한다. 이를 가장 잘 기억할 수 있도록 도와주는 5 곱하기 5로 읽어보라.\n" example_code: "```\n{print} '5 plus 5 is ' 5 + 5\n{print} '5 minus 5 is ' 5 - 5\n{print} '5 times 5 is ' 5 * 5\n```\n" - story_text_2: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" - example_code_2: "```\nname = Hedy\nanswer = 20 + 4\n```\n" 12: start_code: "{print} 'decimal numbers now need to use a dot'\n{print} 2.5 + 2.5" story_text: "**Decimal numbers**\nSo far, Hedy did not allow for decimal numbers like 1.5, but now we do allow that. Note that computers use the `.` for decimal numbers." diff --git a/content/adventures/nb_NO.yaml b/content/adventures/nb_NO.yaml index 82795e74f73..e6e37b0fcc9 100644 --- a/content/adventures/nb_NO.yaml +++ b/content/adventures/nb_NO.yaml @@ -880,11 +880,9 @@ adventures: name: maths levels: 6: - story_text_2: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" start_code: "{print} '5 times 5 is ' 5 * 5" story_text: "## 1 + 1\nIn this level you learn something new: you can now also calculate.\n\nThe plus is easy, you write it like with math: `5 + 5` for example. The minus also works fine, it is `5 - 5`.\n\nThe times is a bit different, because there is no times symbol on your keyboard. Just search, there really isn't!\nThat is why we multiply with the asterisk above 8: `5 * 5`. Read that as \"5 times 5\" that helps you remember it best.\n" example_code: "```\n{print} '5 plus 5 is ' 5 + 5\n{print} '5 minus 5 is ' 5 - 5\n{print} '5 times 5 is ' 5 * 5\n```\n" - example_code_2: "```\nname = Hedy\nanswer = 20 + 4\n```\n" 12: start_code: "{print} 'decimal numbers now need to use a dot'\n{print} 2.5 + 2.5" story_text: "**Decimal numbers**\nSo far, Hedy did not allow for decimal numbers like 1.5, but now we do allow that. Note that computers use the `.` for decimal numbers." diff --git a/content/adventures/nl.yaml b/content/adventures/nl.yaml index 277d25c40fe..f823012338a 100644 --- a/content/adventures/nl.yaml +++ b/content/adventures/nl.yaml @@ -1638,7 +1638,7 @@ adventures: ``` start_code: "# Schrijf jouw code hier" 13: - story_text: | + story_text: |2 ### Opdracht 1 Maak het sommenoefenprogramma nu extra moeilijk. De speler moet twee sommen achter elkaar goed hebben. Maak de codes op de streepjes af. @@ -2850,8 +2850,6 @@ adventures: {print} '5 keer 5 is ' 5 * 5 {print} '5 gedeeld door 5 is ' 5 / 5 ``` - story_text_2: "We gaan het opslaan van een variabele veranderen! Vanaf nu mag je `=` gebruiken in plaats van `{is}` om een woord of een getal in een variabele op te slaan, dat ziet er zo uit:\n" - example_code_2: "```\nnaam = Hedy\nantwoord = 20 + 4\n```\n" 12: start_code: |- {print} 'kommagetallen gebruiken een punt' diff --git a/content/adventures/pa_PK.yaml b/content/adventures/pa_PK.yaml index 58350792511..ec024f03bc0 100644 --- a/content/adventures/pa_PK.yaml +++ b/content/adventures/pa_PK.yaml @@ -896,8 +896,6 @@ adventures: start_code: "{print} '5 times 5 is ' 5 * 5" story_text: "## 1 + 1\nIn this level you learn something new: you can now also calculate.\n\nThe plus is easy, you write it like with math: `5 + 5` for example. The minus also works fine, it is `5 - 5`.\n\nThe times is a bit different, because there is no times symbol on your keyboard. Just search, there really isn't!\nThat is why we multiply with the asterisk above 8: `5 * 5`. Read that as \"5 times 5\" that helps you remember it best.\n" example_code: "```\n{print} '5 plus 5 is ' 5 + 5\n{print} '5 minus 5 is ' 5 - 5\n{print} '5 times 5 is ' 5 * 5\n```\n" - story_text_2: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" - example_code_2: "```\nname = Hedy\nanswer = 20 + 4\n```\n" 12: start_code: "{print} 'decimal numbers now need to use a dot'\n{print} 2.5 + 2.5" story_text: "**Decimal numbers**\nSo far, Hedy did not allow for decimal numbers like 1.5, but now we do allow that. Note that computers use the `.` for decimal numbers." diff --git a/content/adventures/pl.yaml b/content/adventures/pl.yaml index 30e9670d4f8..b21f75d6adc 100644 --- a/content/adventures/pl.yaml +++ b/content/adventures/pl.yaml @@ -1004,8 +1004,6 @@ adventures: start_code: "{print} '5 times 5 is ' 5 * 5" story_text: "## 1 + 1\nIn this level you learn something new: you can now also calculate.\n\nThe plus is easy, you write it like with math: `5 + 5` for example. The minus also works fine, it is `5 - 5`.\n\nThe times is a bit different, because there is no times symbol on your keyboard. Just search, there really isn't!\nThat is why we multiply with the asterisk above 8: `5 * 5`. Read that as \"5 times 5\" that helps you remember it best.\n" example_code: "```\n{print} '5 plus 5 is ' 5 + 5\n{print} '5 minus 5 is ' 5 - 5\n{print} '5 times 5 is ' 5 * 5\n```\n" - story_text_2: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" - example_code_2: "```\nname = Hedy\nanswer = 20 + 4\n```\n" 12: start_code: "{print} 'decimal numbers now need to use a dot'\n{print} 2.5 + 2.5" story_text: "**Decimal numbers**\nSo far, Hedy did not allow for decimal numbers like 1.5, but now we do allow that. Note that computers use the `.` for decimal numbers." diff --git a/content/adventures/pt_BR.yaml b/content/adventures/pt_BR.yaml index e88cfecea9c..a48395739da 100644 --- a/content/adventures/pt_BR.yaml +++ b/content/adventures/pt_BR.yaml @@ -1061,8 +1061,6 @@ adventures: start_code: "{print} '5 times 5 is ' 5 * 5" story_text: "## 1 + 1\nIn this level you learn something new: you can now also calculate.\n\nThe plus is easy, you write it like with math: `5 + 5` for example. The minus also works fine, it is `5 - 5`.\n\nThe times is a bit different, because there is no times symbol on your keyboard. Just search, there really isn't!\nThat is why we multiply with the asterisk above 8: `5 * 5`. Read that as \"5 times 5\" that helps you remember it best.\n" example_code: "```\n{print} '5 plus 5 is ' 5 + 5\n{print} '5 minus 5 is ' 5 - 5\n{print} '5 times 5 is ' 5 * 5\n```\n" - story_text_2: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" - example_code_2: "```\nname = Hedy\nanswer = 20 + 4\n```\n" 12: start_code: "{print} 'decimal numbers now need to use a dot'\n{print} 2.5 + 2.5" story_text: "**Decimal numbers**\nSo far, Hedy did not allow for decimal numbers like 1.5, but now we do allow that. Note that computers use the `.` for decimal numbers." diff --git a/content/adventures/pt_PT.yaml b/content/adventures/pt_PT.yaml index 1ae555a0a8a..fd901bbf6f2 100644 --- a/content/adventures/pt_PT.yaml +++ b/content/adventures/pt_PT.yaml @@ -271,32 +271,32 @@ adventures: example_code: |2 - ``` - animais is coruja, cobra, raposa - print Agora consegue ouvir o barulho de uma animais at random - ``` + ``` + animais is coruja, cobra, raposa + print Agora consegue ouvir o barulho de uma animais at random + ``` story_text_2: | The command `{add}` can also come in handy in your story. For example example_code_2: |2 - {print} He hears a sound - animals {is} 🐿, 🦔, 🦇, 🦉 - animal {is} {ask} What do you think it is? - {add} animal {to_list} animals - {print} it was a animals {at} {random} - ``` + {print} He hears a sound + animals {is} 🐿, 🦔, 🦇, 🦉 + animal {is} {ask} What do you think it is? + {add} animal {to_list} animals + {print} it was a animals {at} {random} + ``` story_text_3: | This is an example of the `{remove}` command in your story example_code_3: |2 - ``` - {print} His backpack got way too heavy. - {print} Inside were a bottle of water, a flashlight and a brick. - bag {is} water, flashlight, brick - dump {is} {ask} Which item should he dump? - {remove} dump {from} bag - ``` + ``` + {print} His backpack got way too heavy. + {print} Inside were a bottle of water, a flashlight and a brick. + bag {is} water, flashlight, brick + dump {is} {ask} Which item should he dump? + {remove} dump {from} bag + ``` start_code: "print 'A tua história será escrita aqui!'" 12: story_text: "In this level you can use the quotation marks to save multiple words in a variable.\n" @@ -750,20 +750,20 @@ adventures: example_code: |2 - You can make a simple restaurant code, like this: - ``` - {print} 'Welcome to Hedys restaurant' - {print} 'Here is our menu:' - {print} 'Our main courses are pizza, lasagne, or spaghetti' - main = {ask} 'Which main course would you like?' - price = 0 - {if} main {is} pizza price = 10 - {if} main {is} lasagne price = 12 - {if} main {is} spaghetti price = 8 - {print} 'You have ordered ' main - {print} 'That will be ' price ' dollars, please' - {print} 'Thank you, enjoy your meal!' - ``` + You can make a simple restaurant code, like this: + ``` + {print} 'Welcome to Hedys restaurant' + {print} 'Here is our menu:' + {print} 'Our main courses are pizza, lasagne, or spaghetti' + main = {ask} 'Which main course would you like?' + price = 0 + {if} main {is} pizza price = 10 + {if} main {is} lasagne price = 12 + {if} main {is} spaghetti price = 8 + {print} 'You have ordered ' main + {print} 'That will be ' price ' dollars, please' + {print} 'Thank you, enjoy your meal!' + ``` start_code: "# place your code here" 7: story_text: | @@ -834,7 +834,7 @@ adventures: ``` story_text_2: |2 - Of course, you could also order for multiple people! + Of course, you could also order for multiple people! example_code_2: | ``` courses = appetizer, main course, dessert @@ -1544,8 +1544,6 @@ adventures: start_code: "{print} '5 times 5 is ' 5 * 5" story_text: "## 1 + 1\nIn this level you learn something new: you can now also calculate.\n\nThe plus is easy, you write it like with math: `5 + 5` for example. The minus also works fine, it is `5 - 5`.\n\nThe times is a bit different, because there is no times symbol on your keyboard. Just search, there really isn't!\nThat is why we multiply with the asterisk above 8: `5 * 5`. Read that as \"5 times 5\" that helps you remember it best.\n" example_code: "```\n{print} '5 plus 5 is ' 5 + 5\n{print} '5 minus 5 is ' 5 - 5\n{print} '5 times 5 is ' 5 * 5\n```\n" - story_text_2: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" - example_code_2: "```\nname = Hedy\nanswer = 20 + 4\n```\n" 12: start_code: "{print} 'decimal numbers now need to use a dot'\n{print} 2.5 + 2.5" story_text: "**Decimal numbers**\nSo far, Hedy did not allow for decimal numbers like 1.5, but now we do allow that. Note that computers use the `.` for decimal numbers." diff --git a/content/adventures/ro.yaml b/content/adventures/ro.yaml index fbb2a26c6a8..246c0b3ad13 100644 --- a/content/adventures/ro.yaml +++ b/content/adventures/ro.yaml @@ -972,8 +972,6 @@ adventures: start_code: "{print} '5 times 5 is ' 5 * 5" story_text: "## 1 + 1\nIn this level you learn something new: you can now also calculate.\n\nThe plus is easy, you write it like with math: `5 + 5` for example. The minus also works fine, it is `5 - 5`.\n\nThe times is a bit different, because there is no times symbol on your keyboard. Just search, there really isn't!\nThat is why we multiply with the asterisk above 8: `5 * 5`. Read that as \"5 times 5\" that helps you remember it best.\n" example_code: "```\n{print} '5 plus 5 is ' 5 + 5\n{print} '5 minus 5 is ' 5 - 5\n{print} '5 times 5 is ' 5 * 5\n```\n" - story_text_2: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" - example_code_2: "```\nname = Hedy\nanswer = 20 + 4\n```\n" 12: start_code: "{print} 'decimal numbers now need to use a dot'\n{print} 2.5 + 2.5" story_text: "**Decimal numbers**\nSo far, Hedy did not allow for decimal numbers like 1.5, but now we do allow that. Note that computers use the `.` for decimal numbers." diff --git a/content/adventures/ru.yaml b/content/adventures/ru.yaml index 12be32613be..70a3f968e89 100644 --- a/content/adventures/ru.yaml +++ b/content/adventures/ru.yaml @@ -890,8 +890,6 @@ adventures: start_code: "{print} '5 times 5 is ' 5 * 5" story_text: "## 1 + 1\nIn this level you learn something new: you can now also calculate.\n\nThe plus is easy, you write it like with math: `5 + 5` for example. The minus also works fine, it is `5 - 5`.\n\nThe times is a bit different, because there is no times symbol on your keyboard. Just search, there really isn't!\nThat is why we multiply with the asterisk above 8: `5 * 5`. Read that as \"5 times 5\" that helps you remember it best.\n" example_code: "```\n{print} '5 plus 5 is ' 5 + 5\n{print} '5 minus 5 is ' 5 - 5\n{print} '5 times 5 is ' 5 * 5\n```\n" - story_text_2: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" - example_code_2: "```\nname = Hedy\nanswer = 20 + 4\n```\n" name: maths description: Introducing maths default_save_name: maths diff --git a/content/adventures/sq.yaml b/content/adventures/sq.yaml index a1452ad4ee2..a4411e45565 100644 --- a/content/adventures/sq.yaml +++ b/content/adventures/sq.yaml @@ -926,8 +926,6 @@ adventures: start_code: "{print} '5 times 5 is ' 5 * 5" story_text: "## 1 + 1\nIn this level you learn something new: you can now also calculate.\n\nThe plus is easy, you write it like with math: `5 + 5` for example. The minus also works fine, it is `5 - 5`.\n\nThe times is a bit different, because there is no times symbol on your keyboard. Just search, there really isn't!\nThat is why we multiply with the asterisk above 8: `5 * 5`. Read that as \"5 times 5\" that helps you remember it best.\n" example_code: "```\n{print} '5 plus 5 is ' 5 + 5\n{print} '5 minus 5 is ' 5 - 5\n{print} '5 times 5 is ' 5 * 5\n```\n" - story_text_2: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" - example_code_2: "```\nname = Hedy\nanswer = 20 + 4\n```\n" 12: start_code: "{print} 'decimal numbers now need to use a dot'\n{print} 2.5 + 2.5" story_text: "**Decimal numbers**\nSo far, Hedy did not allow for decimal numbers like 1.5, but now we do allow that. Note that computers use the `.` for decimal numbers." diff --git a/content/adventures/sr.yaml b/content/adventures/sr.yaml index 7089e247827..8bc93f3e774 100644 --- a/content/adventures/sr.yaml +++ b/content/adventures/sr.yaml @@ -896,8 +896,6 @@ adventures: start_code: "{print} '5 times 5 is ' 5 * 5" story_text: "## 1 + 1\nIn this level you learn something new: you can now also calculate.\n\nThe plus is easy, you write it like with math: `5 + 5` for example. The minus also works fine, it is `5 - 5`.\n\nThe times is a bit different, because there is no times symbol on your keyboard. Just search, there really isn't!\nThat is why we multiply with the asterisk above 8: `5 * 5`. Read that as \"5 times 5\" that helps you remember it best.\n" example_code: "```\n{print} '5 plus 5 is ' 5 + 5\n{print} '5 minus 5 is ' 5 - 5\n{print} '5 times 5 is ' 5 * 5\n```\n" - story_text_2: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" - example_code_2: "```\nname = Hedy\nanswer = 20 + 4\n```\n" 12: start_code: "{print} 'decimal numbers now need to use a dot'\n{print} 2.5 + 2.5" story_text: "**Decimal numbers**\nSo far, Hedy did not allow for decimal numbers like 1.5, but now we do allow that. Note that computers use the `.` for decimal numbers." diff --git a/content/adventures/sv.yaml b/content/adventures/sv.yaml index 23d123a5fe8..e11a3ced661 100644 --- a/content/adventures/sv.yaml +++ b/content/adventures/sv.yaml @@ -783,8 +783,6 @@ adventures: start_code: "{print} '5 gånger 5 är ' 5 * 5" story_text: "## 1 + 1\nPå den här nivån lär du dig något nytt: du kan nu också räkna ut saker.\n\nPlus är enkelt, du skriver det som med matematik: `5 + 5` till exempel. Minus fungerar också bra, det är `5 - 5`.\n\nGånger är lite annorlunda, eftersom det inte finns någon gångersymbol på tangentbordet. Sök bara, det finns verkligen inte!\nDet är därför vi multiplicerar med asterisken till vänster om ä: `5 * 5`. Läs det som '5 gånger 5' – det är bästa minnesregeln.\n" example_code: "```\n{print} '5 plus 5 är ' 5 + 5\n{print} '5 minus 5 är ' 5 - 5\n{print} '5 gånger 5 är ' 5 * 5\n```\n" - story_text_2: "Vi ändrar också hur man sparar ett ord i en variabel! Du kan nu använda `=` istället för `{is}` när vi sparar ett namn eller ett tal i en variabel, så här:\n" - example_code_2: "```\nnamn = Hedy\nsvar = 20 + 4\n```\n" 12: start_code: "{print} 'decimaltal behöver nu använda en punkt'\n{print} 2.5 + 2.5" story_text: "**Decimaltal**\nHittills har Hedy inte tillåtit decimaltal som 1.5, men nu tillåter vi det. Tänk på att datorer använder `.` för decimaltal." diff --git a/content/adventures/sw.yaml b/content/adventures/sw.yaml index c12f96c238e..f7ebd030ce0 100644 --- a/content/adventures/sw.yaml +++ b/content/adventures/sw.yaml @@ -165,12 +165,12 @@ adventures: example_code_2: |2 - {print} He hears a sound - animals {is} 🐿, 🦔, 🦇, 🦉 - animal {is} {ask} What do you think it is? - {add} animal {to_list} animals - {print} it was a animals {at} {random} - ``` + {print} He hears a sound + animals {is} 🐿, 🦔, 🦇, 🦉 + animal {is} {ask} What do you think it is? + {add} animal {to_list} animals + {print} it was a animals {at} {random} + ``` story_text_3: | This is an example of the `{remove}` command in your story example_code_3: | @@ -821,8 +821,6 @@ adventures: example_code: "```\n{print} '5 plus 5 is ' 5 + 5\n{print} '5 minus 5 is ' 5 - 5\n{print} '5 times 5 is ' 5 * 5\n```\n" start_code: "{print} '5 times 5 is ' 5 * 5" story_text: "## 1 + 1\nIn this level you learn something new: you can now also calculate.\n\nThe plus is easy, you write it like with math: `5 + 5` for example. The minus also works fine, it is `5 - 5`.\n\nThe times is a bit different, because there is no times symbol on your keyboard. Just search, there really isn't!\nThat is why we multiply with the asterisk above 8: `5 * 5`. Read that as \"5 times 5\" that helps you remember it best.\n" - story_text_2: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" - example_code_2: "```\nname = Hedy\nanswer = 20 + 4\n```\n" 12: start_code: "{print} 'decimal numbers now need to use a dot'\n{print} 2.5 + 2.5" story_text: "**Decimal numbers**\nSo far, Hedy did not allow for decimal numbers like 1.5, but now we do allow that. Note that computers use the `.` for decimal numbers." diff --git a/content/adventures/te.yaml b/content/adventures/te.yaml index ff2cbb7f8af..5494fe15123 100644 --- a/content/adventures/te.yaml +++ b/content/adventures/te.yaml @@ -905,8 +905,6 @@ adventures: start_code: "{print} '5 times 5 is ' 5 * 5" story_text: "## 1 + 1\nIn this level you learn something new: you can now also calculate.\n\nThe plus is easy, you write it like with math: `5 + 5` for example. The minus also works fine, it is `5 - 5`.\n\nThe times is a bit different, because there is no times symbol on your keyboard. Just search, there really isn't!\nThat is why we multiply with the asterisk above 8: `5 * 5`. Read that as \"5 times 5\" that helps you remember it best.\n" example_code: "```\n{print} '5 plus 5 is ' 5 + 5\n{print} '5 minus 5 is ' 5 - 5\n{print} '5 times 5 is ' 5 * 5\n```\n" - story_text_2: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" - example_code_2: "```\nname = Hedy\nanswer = 20 + 4\n```\n" 12: start_code: "{print} 'decimal numbers now need to use a dot'\n{print} 2.5 + 2.5" story_text: "**Decimal numbers**\nSo far, Hedy did not allow for decimal numbers like 1.5, but now we do allow that. Note that computers use the `.` for decimal numbers." diff --git a/content/adventures/th.yaml b/content/adventures/th.yaml index 44937eb73d8..cbfcb9527b1 100644 --- a/content/adventures/th.yaml +++ b/content/adventures/th.yaml @@ -741,8 +741,6 @@ adventures: start_code: "{print} '5 times 5 is ' 5 * 5" story_text: "## 1 + 1\nIn this level you learn something new: you can now also calculate.\n\nThe plus is easy, you write it like with math: `5 + 5` for example. The minus also works fine, it is `5 - 5`.\n\nThe times is a bit different, because there is no times symbol on your keyboard. Just search, there really isn't!\nThat is why we multiply with the asterisk above 8: `5 * 5`. Read that as \"5 times 5\" that helps you remember it best.\n" example_code: "```\n{print} '5 plus 5 is ' 5 + 5\n{print} '5 minus 5 is ' 5 - 5\n{print} '5 times 5 is ' 5 * 5\n```\n" - story_text_2: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" - example_code_2: "```\nname = Hedy\nanswer = 20 + 4\n```\n" 12: start_code: "{print} 'decimal numbers now need to use a dot'\n{print} 2.5 + 2.5" story_text: "**Decimal numbers**\nSo far, Hedy did not allow for decimal numbers like 1.5, but now we do allow that. Note that computers use the `.` for decimal numbers." diff --git a/content/adventures/tl.yaml b/content/adventures/tl.yaml index 405026e9486..bfc3aafb38d 100644 --- a/content/adventures/tl.yaml +++ b/content/adventures/tl.yaml @@ -758,8 +758,6 @@ adventures: start_code: "{print} '5 times 5 is ' 5 * 5" story_text: "## 1 + 1\nIn this level you learn something new: you can now also calculate.\n\nThe plus is easy, you write it like with math: `5 + 5` for example. The minus also works fine, it is `5 - 5`.\n\nThe times is a bit different, because there is no times symbol on your keyboard. Just search, there really isn't!\nThat is why we multiply with the asterisk above 8: `5 * 5`. Read that as \"5 times 5\" that helps you remember it best.\n" example_code: "```\n{print} '5 plus 5 is ' 5 + 5\n{print} '5 minus 5 is ' 5 - 5\n{print} '5 times 5 is ' 5 * 5\n```\n" - story_text_2: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" - example_code_2: "```\nname = Hedy\nanswer = 20 + 4\n```\n" 12: start_code: "{print} 'decimal numbers now need to use a dot'\n{print} 2.5 + 2.5" story_text: "**Decimal numbers**\nSo far, Hedy did not allow for decimal numbers like 1.5, but now we do allow that. Note that computers use the `.` for decimal numbers." diff --git a/content/adventures/tn.yaml b/content/adventures/tn.yaml index ba8b561cb80..be9a888560c 100644 --- a/content/adventures/tn.yaml +++ b/content/adventures/tn.yaml @@ -896,8 +896,6 @@ adventures: start_code: "{print} '5 times 5 is ' 5 * 5" story_text: "## 1 + 1\nIn this level you learn something new: you can now also calculate.\n\nThe plus is easy, you write it like with math: `5 + 5` for example. The minus also works fine, it is `5 - 5`.\n\nThe times is a bit different, because there is no times symbol on your keyboard. Just search, there really isn't!\nThat is why we multiply with the asterisk above 8: `5 * 5`. Read that as \"5 times 5\" that helps you remember it best.\n" example_code: "```\n{print} '5 plus 5 is ' 5 + 5\n{print} '5 minus 5 is ' 5 - 5\n{print} '5 times 5 is ' 5 * 5\n```\n" - story_text_2: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" - example_code_2: "```\nname = Hedy\nanswer = 20 + 4\n```\n" 12: start_code: "{print} 'decimal numbers now need to use a dot'\n{print} 2.5 + 2.5" story_text: "**Decimal numbers**\nSo far, Hedy did not allow for decimal numbers like 1.5, but now we do allow that. Note that computers use the `.` for decimal numbers." diff --git a/content/adventures/tr.yaml b/content/adventures/tr.yaml index 5b5762b3a60..5c28c899cc4 100644 --- a/content/adventures/tr.yaml +++ b/content/adventures/tr.yaml @@ -2725,8 +2725,6 @@ adventures: start_code: "{print} '5 kere 5 eder ' 5 * 5" story_text: "## 1 + 1\nBu seviyede yeni bir şey öğreniyorsunuz: artık hesaplama da yapabileceksiniz.\n\nToplama kolaydır, matematikte olduğu gibi yazarsınız: Örneğin `5 + 5`. Çıkarma da iyi çalışır, `5 - 5` şeklindedir.\n\nÇarpma biraz farklıdır, çünkü klavyenizde çarpma simgesi yoktur. Arayın bakın, özel klavye değilse gerçekten yoktur!\nBu yüzden çarpmayı sayıların yanındaki yıldız işaretiyle yapıyoruz: `5 * 5`. Bunu \"5 çarpı 5\" olarak okuyun, en iyi şekilde böyle hatırlamanıza yardımcı olur.\n" example_code: "```\n{print} '5 artı 5 eder ' 5 + 5\n{print} '5 eksi 5 eder ' 5 - 5\n{print} '5 çarpı 5 eder ' 5 * 5\n```\n" - story_text_2: "Ayrıca bir kelimeyi bir değişkende saklama konusunda da bir değişiklik yapıyoruz! Artık bir değişkende bir isim veya sayı sakladığımızda `{is}` yerine `=` kullanabilirsiniz, bunun gibi:\n" - example_code_2: "```\nisim = Hedy\ncevap = 20 + 4\n```\n" name: matematik description: matematiğe giriş default_save_name: matematik diff --git a/content/adventures/uk.yaml b/content/adventures/uk.yaml index 8a613b1da5f..982e05b02bf 100644 --- a/content/adventures/uk.yaml +++ b/content/adventures/uk.yaml @@ -762,8 +762,6 @@ adventures: start_code: "{print} '5 times 5 is ' 5 * 5" story_text: "## 1 + 1\nIn this level you learn something new: you can now also calculate.\n\nThe plus is easy, you write it like with math: `5 + 5` for example. The minus also works fine, it is `5 - 5`.\n\nThe times is a bit different, because there is no times symbol on your keyboard. Just search, there really isn't!\nThat is why we multiply with the asterisk above 8: `5 * 5`. Read that as \"5 times 5\" that helps you remember it best.\n" example_code: "```\n{print} '5 plus 5 is ' 5 + 5\n{print} '5 minus 5 is ' 5 - 5\n{print} '5 times 5 is ' 5 * 5\n```\n" - story_text_2: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" - example_code_2: "```\nname = Hedy\nanswer = 20 + 4\n```\n" 12: start_code: "{print} 'decimal numbers now need to use a dot'\n{print} 2.5 + 2.5" story_text: "**Decimal numbers**\nSo far, Hedy did not allow for decimal numbers like 1.5, but now we do allow that. Note that computers use the `.` for decimal numbers." diff --git a/content/adventures/ur.yaml b/content/adventures/ur.yaml index ab2fa024dc5..6f02454c67a 100644 --- a/content/adventures/ur.yaml +++ b/content/adventures/ur.yaml @@ -887,8 +887,6 @@ adventures: start_code: "{print} '5 times 5 is ' 5 * 5" story_text: "## 1 + 1\nIn this level you learn something new: you can now also calculate.\n\nThe plus is easy, you write it like with math: `5 + 5` for example. The minus also works fine, it is `5 - 5`.\n\nThe times is a bit different, because there is no times symbol on your keyboard. Just search, there really isn't!\nThat is why we multiply with the asterisk above 8: `5 * 5`. Read that as \"5 times 5\" that helps you remember it best.\n" example_code: "```\n{print} '5 plus 5 is ' 5 + 5\n{print} '5 minus 5 is ' 5 - 5\n{print} '5 times 5 is ' 5 * 5\n```\n" - story_text_2: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" - example_code_2: "```\nname = Hedy\nanswer = 20 + 4\n```\n" 12: start_code: "{print} 'decimal numbers now need to use a dot'\n{print} 2.5 + 2.5" story_text: "**Decimal numbers**\nSo far, Hedy did not allow for decimal numbers like 1.5, but now we do allow that. Note that computers use the `.` for decimal numbers." diff --git a/content/adventures/vi.yaml b/content/adventures/vi.yaml index 4b1ab3ed59d..803d44d108a 100644 --- a/content/adventures/vi.yaml +++ b/content/adventures/vi.yaml @@ -906,8 +906,6 @@ adventures: start_code: "{print} '5 times 5 is ' 5 * 5" story_text: "## 1 + 1\nIn this level you learn something new: you can now also calculate.\n\nThe plus is easy, you write it like with math: `5 + 5` for example. The minus also works fine, it is `5 - 5`.\n\nThe times is a bit different, because there is no times symbol on your keyboard. Just search, there really isn't!\nThat is why we multiply with the asterisk above 8: `5 * 5`. Read that as \"5 times 5\" that helps you remember it best.\n" example_code: "```\n{print} '5 plus 5 is ' 5 + 5\n{print} '5 minus 5 is ' 5 - 5\n{print} '5 times 5 is ' 5 * 5\n```\n" - story_text_2: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" - example_code_2: "```\nname = Hedy\nanswer = 20 + 4\n```\n" 12: start_code: "{print} 'decimal numbers now need to use a dot'\n{print} 2.5 + 2.5" story_text: "**Decimal numbers**\nSo far, Hedy did not allow for decimal numbers like 1.5, but now we do allow that. Note that computers use the `.` for decimal numbers." diff --git a/content/adventures/zh_Hans.yaml b/content/adventures/zh_Hans.yaml index ed656eac4c1..88d3d14867c 100644 --- a/content/adventures/zh_Hans.yaml +++ b/content/adventures/zh_Hans.yaml @@ -604,20 +604,20 @@ adventures: example_code: |2 - 你可以写一段简单的餐厅代码,像这样: - ``` - {print} '欢迎来到海蒂餐厅' - {print} '这是我们的菜单:' - {print} '我们的主菜有披萨、千层面、意面' - 主菜 = {ask} '您想要哪道主菜?' - 价格 = 0 - {if} 主菜 {is} 披萨 价格 = 10 - {if} 主菜 {is} 千层面 价格 = 12 - {if} 主菜 {is} 意面 价格 = 8 - {print} '您点了' 主菜 - {print} '请付' 价格 '元' - {print} '谢谢,祝您用餐愉快!' - ``` + 你可以写一段简单的餐厅代码,像这样: + ``` + {print} '欢迎来到海蒂餐厅' + {print} '这是我们的菜单:' + {print} '我们的主菜有披萨、千层面、意面' + 主菜 = {ask} '您想要哪道主菜?' + 价格 = 0 + {if} 主菜 {is} 披萨 价格 = 10 + {if} 主菜 {is} 千层面 价格 = 12 + {if} 主菜 {is} 意面 价格 = 8 + {print} '您点了' 主菜 + {print} '请付' 价格 '元' + {print} '谢谢,祝您用餐愉快!' + ``` start_code: "# 在这里写你的代码" 7: story_text: | @@ -823,16 +823,16 @@ adventures: 在这一级,你可以用变量和`{at} {random}`命令来真正让海蒂为你选择一个答案。比如看看这段代码: example_code: |2 - 在这个例子里,玩家可以向海蒂{ask}一个是非题,然后海蒂会任意选择一个答案。 - ``` - {print} 我是海蒂半仙! - 问题 {is} {ask} 你想算什么? - {print} 你想算:问题 - 回答 {is} 是, 否, 有可能 - {print} 让我算一卦…… - {sleep} 2 - {print} 回答 {at} {random} - ``` + 在这个例子里,玩家可以向海蒂{ask}一个是非题,然后海蒂会任意选择一个答案。 + ``` + {print} 我是海蒂半仙! + 问题 {is} {ask} 你想算什么? + {print} 你想算:问题 + 回答 {is} 是, 否, 有可能 + {print} 让我算一卦…… + {sleep} 2 + {print} 回答 {at} {random} + ``` story_text_2: | ### 练习 现在海蒂只能回答是、否和有可能。你能否给海蒂更多回答选项,比如“肯定”或者“换个问题”。 @@ -1387,11 +1387,9 @@ adventures: default_save_name: maths levels: 6: - example_code_2: "```\nname = Hedy\nanswer = 20 + 4\n```\n" start_code: "{print} '5 times 5 is ' 5 * 5" story_text: "## 1 + 1\nIn this level you learn something new: you can now also calculate.\n\nThe plus is easy, you write it like with math: `5 + 5` for example. The minus also works fine, it is `5 - 5`.\n\nThe times is a bit different, because there is no times symbol on your keyboard. Just search, there really isn't!\nThat is why we multiply with the asterisk above 8: `5 * 5`. Read that as \"5 times 5\" that helps you remember it best.\n" example_code: "```\n{print} '5 plus 5 is ' 5 + 5\n{print} '5 minus 5 is ' 5 - 5\n{print} '5 times 5 is ' 5 * 5\n```\n" - story_text_2: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" 12: start_code: "{print} 'decimal numbers now need to use a dot'\n{print} 2.5 + 2.5" story_text: "**Decimal numbers**\nSo far, Hedy did not allow for decimal numbers like 1.5, but now we do allow that. Note that computers use the `.` for decimal numbers." diff --git a/content/adventures/zh_Hant.yaml b/content/adventures/zh_Hant.yaml index 7160ab6cb58..31fa2a43115 100644 --- a/content/adventures/zh_Hant.yaml +++ b/content/adventures/zh_Hant.yaml @@ -798,8 +798,6 @@ adventures: start_code: "{print} '5 times 5 is ' 5 * 5" story_text: "## 1 + 1\nIn this level you learn something new: you can now also calculate.\n\nThe plus is easy, you write it like with math: `5 + 5` for example. The minus also works fine, it is `5 - 5`.\n\nThe times is a bit different, because there is no times symbol on your keyboard. Just search, there really isn't!\nThat is why we multiply with the asterisk above 8: `5 * 5`. Read that as \"5 times 5\" that helps you remember it best.\n" example_code: "```\n{print} '5 plus 5 is ' 5 + 5\n{print} '5 minus 5 is ' 5 - 5\n{print} '5 times 5 is ' 5 * 5\n```\n" - story_text_2: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" - example_code_2: "```\nname = Hedy\nanswer = 20 + 4\n```\n" name: maths description: Introducing maths default_save_name: maths diff --git a/content/slides/tr.yaml b/content/slides/tr.yaml index 4c2e1e667ab..f690fab0e5d 100644 --- a/content/slides/tr.yaml +++ b/content/slides/tr.yaml @@ -119,9 +119,6 @@ levels: header: İçinden kaldırmak text: "`{add}` `{to}` komutunun tersi `{remove}` `{from}` komutudur.\nBu komut listeden bir öğeyi kaldırır.\n" editor: "\n" - 7: - header: Hadi işe koyulalım! - text: "Seviye 3'teki maceraların tadını çıkarın!\n" 4: 1: header: 4. seviyeye hoş geldiniz From a96b52a65327ca1bf896f3ee30e447f8cc08a8a2 Mon Sep 17 00:00:00 2001 From: Anonymous Date: Sun, 1 Oct 2023 09:42:04 +0200 Subject: [PATCH 06/15] Translated using Weblate (Kurdish (Northern)) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently translated at 18.2% (127 of 694 strings) Translated using Weblate (Serbian) Currently translated at 21.9% (152 of 694 strings) Translated using Weblate (Danish) Currently translated at 27.8% (193 of 694 strings) Translated using Weblate (Romanian) Currently translated at 21.7% (151 of 694 strings) Translated using Weblate (Catalan) Currently translated at 25.5% (177 of 694 strings) Translated using Weblate (Chinese (Traditional)) Currently translated at 20.3% (141 of 694 strings) Translated using Weblate (Welsh) Currently translated at 18.7% (130 of 694 strings) Translated using Weblate (Telugu) Currently translated at 19.7% (137 of 694 strings) Translated using Weblate (Finnish) Currently translated at 20.6% (143 of 694 strings) Translated using Weblate (Tagalog) Currently translated at 19.7% (137 of 694 strings) Translated using Weblate (Vietnamese) Currently translated at 20.1% (140 of 694 strings) Translated using Weblate (Punjabi (Pakistan)) Currently translated at 19.1% (133 of 694 strings) Translated using Weblate (Ukrainian) Currently translated at 26.8% (186 of 694 strings) Translated using Weblate (Albanian) Currently translated at 47.2% (328 of 694 strings) Translated using Weblate (Thai) Currently translated at 20.1% (140 of 694 strings) Translated using Weblate (Urdu) Currently translated at 19.5% (136 of 694 strings) Translated using Weblate (Tswana) Currently translated at 20.1% (140 of 694 strings) Translated using Weblate (Korean) Currently translated at 27.8% (193 of 694 strings) Translated using Weblate (Swedish) Currently translated at 93.9% (652 of 694 strings) Translated using Weblate (Hebrew) Currently translated at 20.8% (145 of 694 strings) Translated using Weblate (Japanese) Currently translated at 20.6% (143 of 694 strings) Translated using Weblate (Estonian) Currently translated at 23.9% (166 of 694 strings) Translated using Weblate (Esperanto) Currently translated at 43.8% (304 of 694 strings) Translated using Weblate (Russian) Currently translated at 49.2% (342 of 694 strings) Translated using Weblate (Persian) Currently translated at 25.3% (176 of 694 strings) Translated using Weblate (Polish) Currently translated at 56.3% (391 of 694 strings) Translated using Weblate (Norwegian Bokmål) Currently translated at 41.6% (289 of 694 strings) Translated using Weblate (Turkish) Currently translated at 96.9% (673 of 694 strings) Translated using Weblate (Chinese (Simplified)) Currently translated at 54.3% (377 of 694 strings) Translated using Weblate (Frisian) Currently translated at 26.2% (182 of 694 strings) Translated using Weblate (French) Currently translated at 71.4% (496 of 694 strings) Translated using Weblate (Arabic) Currently translated at 36.8% (256 of 694 strings) Translated using Weblate (Italian) Currently translated at 36.0% (250 of 694 strings) Translated using Weblate (Swahili) Currently translated at 26.0% (181 of 694 strings) Translated using Weblate (Hindi) Currently translated at 28.5% (198 of 694 strings) Translated using Weblate (Czech) Currently translated at 29.3% (204 of 694 strings) Translated using Weblate (Bengali) Currently translated at 26.6% (185 of 694 strings) Translated using Weblate (Portuguese (Brazil)) Currently translated at 40.2% (279 of 694 strings) Translated using Weblate (Portuguese (Portugal)) Currently translated at 31.2% (217 of 694 strings) Translated using Weblate (Dutch) Currently translated at 81.8% (568 of 694 strings) Translated using Weblate (Indonesian) Currently translated at 34.8% (242 of 694 strings) Translated using Weblate (Hungarian) Currently translated at 34.7% (241 of 694 strings) Translated using Weblate (Spanish) Currently translated at 96.9% (673 of 694 strings) Translated using Weblate (Greek) Currently translated at 30.9% (215 of 694 strings) Translated using Weblate (German) Currently translated at 58.2% (404 of 694 strings) Translated using Weblate (Bulgarian) Currently translated at 30.2% (210 of 694 strings) Translated using Weblate (Turkish) Currently translated at 99.3% (295 of 297 strings) Co-authored-by: Anonymous Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/ar/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/bg/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/bn/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/ca/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/cs/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/cy/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/da/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/de/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/el/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/eo/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/es/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/et/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/fa/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/fi/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/fr/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/fy/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/he/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/hi/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/hu/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/id/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/it/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/ja/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/kmr/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/ko/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/nb_NO/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/nl/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/pa_PK/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/pl/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/pt_BR/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/pt_PT/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/ro/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/ru/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/sq/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/sr/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/sv/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/sw/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/te/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/th/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/tl/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/tn/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/tr/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/uk/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/ur/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/vi/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/zh_Hans/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/zh_Hant/ Translate-URL: https://hosted.weblate.org/projects/hedy/slides/tr/ Translation: Hedy/Adventures Translation: Hedy/slides --- content/adventures/ar.yaml | 12 +- content/adventures/bg.yaml | 644 ++++++++++++++++---------------- content/adventures/bn.yaml | 66 ++-- content/adventures/ca.yaml | 8 + content/adventures/cs.yaml | 8 + content/adventures/cy.yaml | 8 + content/adventures/da.yaml | 8 + content/adventures/de.yaml | 8 + content/adventures/el.yaml | 52 +-- content/adventures/eo.yaml | 8 + content/adventures/es.yaml | 8 + content/adventures/et.yaml | 8 + content/adventures/fa.yaml | 8 + content/adventures/fi.yaml | 8 + content/adventures/fr.yaml | 8 + content/adventures/fy.yaml | 20 +- content/adventures/he.yaml | 8 + content/adventures/hi.yaml | 46 ++- content/adventures/hu.yaml | 212 ++++++----- content/adventures/id.yaml | 8 + content/adventures/it.yaml | 66 ++-- content/adventures/ja.yaml | 8 + content/adventures/kmr.yaml | 8 + content/adventures/ko.yaml | 8 + content/adventures/nb_NO.yaml | 8 + content/adventures/nl.yaml | 13 +- content/adventures/pa_PK.yaml | 8 + content/adventures/pl.yaml | 8 + content/adventures/pt_BR.yaml | 8 + content/adventures/pt_PT.yaml | 72 ++-- content/adventures/ro.yaml | 8 + content/adventures/ru.yaml | 8 + content/adventures/sq.yaml | 8 + content/adventures/sr.yaml | 8 + content/adventures/sv.yaml | 8 + content/adventures/sw.yaml | 20 +- content/adventures/te.yaml | 8 + content/adventures/th.yaml | 8 + content/adventures/tl.yaml | 8 + content/adventures/tn.yaml | 8 + content/adventures/tr.yaml | 8 + content/adventures/uk.yaml | 8 + content/adventures/ur.yaml | 8 + content/adventures/vi.yaml | 8 + content/adventures/zh_Hans.yaml | 56 +-- content/adventures/zh_Hant.yaml | 8 + content/slides/tr.yaml | 3 + 47 files changed, 959 insertions(+), 595 deletions(-) diff --git a/content/adventures/ar.yaml b/content/adventures/ar.yaml index 1c72df22579..a7605c5bf7e 100644 --- a/content/adventures/ar.yaml +++ b/content/adventures/ar.yaml @@ -156,9 +156,9 @@ adventures: 11: story_text: |2- - `{print}` لا زال يعمل بالطريقة نفسها، ولكن أضفنا شكلاً جديداً من الأمر `{for}`. بامكاننا الان أن نكتب `{for} دورة {in} {range} ١ {to} ٥` وأن نستخدم بعدها المتغير `دورة` في البرنامج. + `{print}` لا زال يعمل بالطريقة نفسها، ولكن أضفنا شكلاً جديداً من الأمر `{for}`. بامكاننا الان أن نكتب `{for} دورة {in} {range} ١ {to} ٥` وأن نستخدم بعدها المتغير `دورة` في البرنامج. - فلنجرب الان ونرى ما سيحدث! تذكر أن تضع الإزاحة بعد استخدام الأوامر `{for}` و `{if}`(هذا يعني وضع اربع فراغات قبل بداية السطر الذي يكون ضمن هذه الأوامر) + فلنجرب الان ونرى ما سيحدث! تذكر أن تضع الإزاحة بعد استخدام الأوامر `{for}` و `{if}`(هذا يعني وضع اربع فراغات قبل بداية السطر الذي يكون ضمن هذه الأوامر) start_code: | {for} دورة {in} {range} ١ {to} ٥ {print} دورة @@ -1029,6 +1029,10 @@ adventures: example_code_2: "```\nname = {ask} 'What is your name?'\n{if} name == 'Hedy'\n {print} 'You are cool!'\n```\n" story_text_3: "You can also compare if something is *not* equal to something else using `!=` like this:\n" example_code_3: "```\nname = {ask} 'What is your name?'\n{if} name != 'Hedy'\n {print} 'You are not Hedy'\n```\n" + 6: + story_text: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" + example_code: "```\nname = Hedy\nanswer = 20 + 4\n```\n" + start_code: "name = Hedy\nanswer = 20 + 4\n" sleep_command: name: "{sleep}" description: introducing sleep command @@ -1055,6 +1059,10 @@ adventures: start_code: "name {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n" example_code: "```\nname {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n```\n" story_text: "## If... Else...\nYou have learned to repeat a block of lines of code after a `{repeat}` command.\nNow you can also use indentation to make blocks after a {if} or {else} command.\nCheck out the example code.\n\n### Exercise\nAdd an {else} command to the example code. Make a block of line using indentation. You do this by starting each line with 4 spaces.\n" + 9: + start_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" + story_text: "In this level you can also put an {if} command inside another {if} command.\n" + example_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" in_command: name: "{in}" description: Introducing the in command diff --git a/content/adventures/bg.yaml b/content/adventures/bg.yaml index 6870be65d38..39c7814b567 100644 --- a/content/adventures/bg.yaml +++ b/content/adventures/bg.yaml @@ -173,12 +173,12 @@ adventures: If the correct answer is never given, the loop never ends! example_code: |2 - ``` - answer = 0 - {while} answer != 25 - answer = {ask} 'What is 5 times 5?' - {print} 'A correct answer has been given' - ``` + ``` + answer = 0 + {while} answer != 25 + answer = {ask} 'What is 5 times 5?' + {print} 'A correct answer has been given' + ``` 16: start_code: |- fruit = ['apple', 'banana', 'cherry'] @@ -188,13 +188,13 @@ adventures: You can use the square brackets as well to point out a place in the lists. example_code: |2 - ``` - friends = ['Ahmed', 'Ben', 'Cayden'] - lucky_numbers = [15, 18, 6] - {for} i {in} {range} 1 {to} 3 - {print} 'the lucky number of ' friends[i] - {print} 'is ' lucky_numbers[i] - ``` + ``` + friends = ['Ahmed', 'Ben', 'Cayden'] + lucky_numbers = [15, 18, 6] + {for} i {in} {range} 1 {to} 3 + {print} 'the lucky number of ' friends[i] + {print} 'is ' lucky_numbers[i] + ``` 17: start_code: |- {for} i {in} {range} 1 {to} 10: @@ -248,13 +248,13 @@ adventures: example_code: |2 - ``` - name is ask Как се нарича главаната героиня? - print name сега навлиза в гората. - print Тя е малко разтревожена. - print Наоколо се долавят странни шумове и звуци. - print name се опасява че гората може би е омагьосана. - ``` + ``` + name is ask Как се нарича главаната героиня? + print name сега навлиза в гората. + print Тя е малко разтревожена. + print Наоколо се долавят странни шумове и звуци. + print name се опасява че гората може би е омагьосана. + ``` start_code: "print Твоята история" story_text_2: "### Exercise\nNow it's time to add variables to your own story that you've made in the previous level.\nGo to 'My programs', look for your level 1 story adventure and copy the code. Paste the code in your input screen in this level.\n\nThis code won't work in this level, because you have not used variables yet.\nChange the `{ask}` commands and `{echo}` commands in your code to the correct form that you've learned in this level.\n\n**Extra** Add a sleep command to your code to build up tension in your story.\n" 7: @@ -273,20 +273,20 @@ adventures: 5: story_text: |2 - В четвърто ниво ще направиш историята си дори по-цветиста и забавна! - Тук ще прибавиш различни възможни завършеци, за да има изненадващ край. + В четвърто ниво ще направиш историята си дори по-цветиста и забавна! + Тук ще прибавиш различни възможни завършеци, за да има изненадващ край. - Представи си, че историята започва така: + Представи си, че историята започва така: - 1. Принцесата се разхожда в гората. - 2. Внезапно насреща й изскача свирепо чудовище. + 1. Принцесата се разхожда в гората. + 2. Внезапно насреща й изскача свирепо чудовище. - 3. **щастлив край**: Тя изважда острата си сабя и чудовището се оттегля от пътя й. - 3. **тъжен край**: Чудовището отваря голямата си паст и поглъща принцесата цяла. + 3. **щастлив край**: Тя изважда острата си сабя и чудовището се оттегля от пътя й. + 3. **тъжен край**: Чудовището отваря голямата си паст и поглъща принцесата цяла. - Сега ще ползваме променливата "име" по-гъвкаво, също както в трето ниво. - Виж как ползваме командите `if` (ако) и `else` (тогава), за да програмираме избирането - на един от двата края на историята. + Сега ще ползваме променливата "име" по-гъвкаво, също както в трето ниво. + Виж как ползваме командите `if` (ако) и `else` (тогава), за да програмираме избирането + на един от двата края на историята. example_code: | ``` @@ -320,7 +320,7 @@ adventures: 3: story_text: |2 - Към историята, която пишеш можеш да добавиш нещо произволно и неочаквано, примерно чудовище, животно или някаква пречка. + Към историята, която пишеш можеш да добавиш нещо произволно и неочаквано, примерно чудовище, животно или някаква пречка. start_code: "print Твоята история" story_text_2: | @@ -338,13 +338,13 @@ adventures: example_code_3: |2 - ``` - {print} His backpack got way too heavy. - {print} Inside were a bottle of water, a flashlight and a brick. - bag {is} water, flashlight, brick - dump {is} {ask} Which item should he dump? - {remove} dump {from} bag - ``` + ``` + {print} His backpack got way too heavy. + {print} Inside were a bottle of water, a flashlight and a brick. + bag {is} water, flashlight, brick + dump {is} {ask} Which item should he dump? + {remove} dump {from} bag + ``` example_code: |- Ето как изглежда: ``` @@ -393,16 +393,16 @@ adventures: example_code: |2 - ``` - verse = 99 - {print} verse ' bottles of beer on the wall' - {print} verse ' bottles of beer' - {print} 'Take one down, pass it around' - verse = verse - 1 - {print} verse ' bottles of beer on the wall' - ``` + ``` + verse = 99 + {print} verse ' bottles of beer on the wall' + {print} verse ' bottles of beer' + {print} 'Take one down, pass it around' + verse = verse - 1 + {print} verse ' bottles of beer on the wall' + ``` - You can now repeat lines 2 to 9 as many times as you want by copying the lines. + You can now repeat lines 2 to 9 as many times as you want by copying the lines. start_code: "{print} 'Baby shark'" story_text_2: "This children's song counts down from 5 little monkeys to 1 monkey.\nIf you copy line 2 - 7 and paste it under the the code, you can sing the whole song!\n" example_code_2: "```\nnumber = 6\nnumber = number - 1\nprint number ' little monkeys jumping on the bed'\nprint 'One fell off and bumped his head'\nprint 'Mama called the doctor and the doctor said'\nprint 'NO MORE MONKEYS JUMPING ON THE BED!'\nsleep\n```\n" @@ -419,12 +419,12 @@ adventures: example_code: |2 - ``` - {repeat} _ _ {print} 'Baby Shark tututudutudu' - {print} 'Baby Shark' - ``` + ``` + {repeat} _ _ {print} 'Baby Shark tututudutudu' + {print} 'Baby Shark' + ``` - After Baby Shark you can of course also program other songs. There are many songs with repetition. + After Baby Shark you can of course also program other songs. There are many songs with repetition. start_code: "{print} 'Baby Shark'" 8: story_text: | @@ -432,15 +432,15 @@ adventures: example_code: |2 - ``` - verse = 99 - {repeat} 99 {times} - {print} verse ' bottles of beer on the wall' - {print} verse ' bottles of beer' - {print} 'Take one down, pass it around' - verse = verse - 1 - {print} verse ' bottles of beer on the wall' - ``` + ``` + verse = 99 + {repeat} 99 {times} + {print} verse ' bottles of beer on the wall' + {print} verse ' bottles of beer' + {print} 'Take one down, pass it around' + verse = verse - 1 + {print} verse ' bottles of beer on the wall' + ``` start_code: "# place your code here" 10: story_text: | @@ -508,16 +508,16 @@ adventures: example_code: |2 - ``` - actions = 'clap your hands', 'stomp your feet', 'shout Hurray!' - {for} action {in} actions - {for} i {in} {range} 1 {to} 2 - {print} 'if youre happy and you know it' - {print} action - {print} 'if youre happy and you know it and you really want to show it' - {print} 'if youre happy and you know it' - {print} action - ``` + ``` + actions = 'clap your hands', 'stomp your feet', 'shout Hurray!' + {for} action {in} actions + {for} i {in} {range} 1 {to} 2 + {print} 'if youre happy and you know it' + {print} action + {print} 'if youre happy and you know it and you really want to show it' + {print} 'if youre happy and you know it' + {print} action + ``` start_code: "# place your code here" 16: story_text: | @@ -593,14 +593,14 @@ adventures: example_code: |2 - ``` - print "Рисуване на фигура" - angle is 90 - turn angle - forward 50 - turn angle - forward 50 - ``` + ``` + print "Рисуване на фигура" + angle is 90 + turn angle + forward 50 + turn angle + forward 50 + ``` start_code: | print Състезание с костенурки! @@ -687,17 +687,17 @@ adventures: story_text: |2 - Докато рисуваш костенурката можеш да добавиш и командата `random`. С нея костенурката ще поеме в произволна посока всеки път. - Ползвай `at random` в комбинация с променлива с повече стойности, не само една. - Ползвай примера отдолу и увеличи листа с още стойности, освен 10, 50, 90, 150, 250. + Докато рисуваш костенурката можеш да добавиш и командата `random`. С нея костенурката ще поеме в произволна посока всеки път. + Ползвай `at random` в комбинация с променлива с повече стойности, не само една. + Ползвай примера отдолу и увеличи листа с още стойности, освен 10, 50, 90, 150, 250. example_code: |2 - ``` - ъгли is 10, 50, 90, 150, 250 - turn ъгли at random - forward 25 - ``` + ``` + ъгли is 10, 50, 90, 150, 250 + turn ъгли at random + forward 25 + ``` start_code: | print Състезание с костенурки! @@ -755,11 +755,11 @@ adventures: 5: story_text: |2 - С командата `if` ще създадем възможност за повече избор в програмата ни. - Можеш да програмираш реакция на системата по определен избор. + С командата `if` ще създадем възможност за повече избор в програмата ни. + Можеш да програмираш реакция на системата по определен избор. - Можеш ли да довършиш примерния код по-долу с думите 'Какъв лош късмет..' когато ти си наред да миеш? - И не забравяй да ползваш кавички около текста! + Можеш ли да довършиш примерния код по-долу с думите 'Какъв лош късмет..' когато ти си наред да миеш? + И не забравяй да ползваш кавички около текста! example_code: | ``` @@ -773,12 +773,12 @@ adventures: 4: story_text: |2 - Сега ползвай кавички, за да подобриш графика на миячите на чинии. - Този път в кода има пропуски, отбелязани с черта за подчертаване '_'. + Сега ползвай кавички, за да подобриш графика на миячите на чинии. + Този път в кода има пропуски, отбелязани с черта за подчертаване '_'. - Можеш ли да замениш 'празните места' с подходящ код - дума или символ? + Можеш ли да замениш 'празните места' с подходящ код - дума или символ? - Съвет: не забравяй да ползваш кавички около текста! + Съвет: не забравяй да ползваш кавички около текста! example_code: | ``` @@ -1129,27 +1129,27 @@ adventures: example_code: |2 - ``` - {print} 'Welcome to Hedys restaurant!' - people = {ask} 'How many people will be joining us today?' - {print} 'Great!' - price = 0 - {repeat} people {times} - food = {ask} 'What would you like to order?' - {print} food - {if} food {is} fries - price = price + 3 - sauce = {ask} 'What kind of sauce would you like with your fries?' - {if} sauce {is} no - {print} 'no sauce' - {else} - price = price + 1 - {print} 'with ' sauce - {if} food {is} pizza - price = price + 4 - {print} 'That will be ' price ' dollar' - {print} 'Enjoy your meal!' - ``` + ``` + {print} 'Welcome to Hedys restaurant!' + people = {ask} 'How many people will be joining us today?' + {print} 'Great!' + price = 0 + {repeat} people {times} + food = {ask} 'What would you like to order?' + {print} food + {if} food {is} fries + price = price + 3 + sauce = {ask} 'What kind of sauce would you like with your fries?' + {if} sauce {is} no + {print} 'no sauce' + {else} + price = price + 1 + {print} 'with ' sauce + {if} food {is} pizza + price = price + 4 + {print} 'That will be ' price ' dollar' + {print} 'Enjoy your meal!' + ``` start_code: "# place your code here" 10: story_text: | @@ -1157,16 +1157,16 @@ adventures: example_code: |2 - ``` - courses = appetizer, main course, dessert - {for} course {in} courses - food = {ask} 'What would you like to eat as your ' course '?' - {print} food ' will be your ' course - ``` + ``` + courses = appetizer, main course, dessert + {for} course {in} courses + food = {ask} 'What would you like to eat as your ' course '?' + {print} food ' will be your ' course + ``` story_text_2: |2 - Of course, you could also order for multiple people! + Of course, you could also order for multiple people! example_code_2: | ``` courses = appetizer, main course, dessert @@ -1183,21 +1183,21 @@ adventures: example_code: |2 - ``` - {print} 'Welcome to Restaurant Hedy!' - people = {ask} 'For how many people would you like to order?' - {for} i {in} {range} 1 {to} people - {print} 'Order number ' i - food = {ask} 'What would you like to eat?' - {print} food - {if} food {is} fries - sauce = {ask} 'What kind of sauce would you like with that?' - {print} sauce - drinks = {ask} 'What would you like to drink?' - {print} drinks - price = 4 * people - {print} 'That will be ' price ' dollars, please!' - ``` + ``` + {print} 'Welcome to Restaurant Hedy!' + people = {ask} 'For how many people would you like to order?' + {for} i {in} {range} 1 {to} people + {print} 'Order number ' i + food = {ask} 'What would you like to eat?' + {print} food + {if} food {is} fries + sauce = {ask} 'What kind of sauce would you like with that?' + {print} sauce + drinks = {ask} 'What would you like to drink?' + {print} drinks + price = 4 * people + {print} 'That will be ' price ' dollars, please!' + ``` start_code: "# place your code here" 12: story_text: | @@ -1205,20 +1205,20 @@ adventures: example_code: |2 - ``` - price = 0 - food = {ask} 'What would you like to order?' - drink = {ask} 'What would you like to drink?' - {if} food {is} 'hamburger' - price = price + 6.50 - {if} food {is} 'pizza' - price = price + 5.75 - {if} drink {is} 'water' - price = price + 1.20 - {if} drink {is} 'soda' - price = price + 2.35 - {print} 'That will be ' price ' dollar, please' - ``` + ``` + price = 0 + food = {ask} 'What would you like to order?' + drink = {ask} 'What would you like to drink?' + {if} food {is} 'hamburger' + price = price + 6.50 + {if} food {is} 'pizza' + price = price + 5.75 + {if} drink {is} 'water' + price = price + 1.20 + {if} drink {is} 'soda' + price = price + 2.35 + {print} 'That will be ' price ' dollar, please' + ``` start_code: "# place your code here" 13: story_text: | @@ -1227,15 +1227,15 @@ adventures: example_code: |2 - ``` - price = 10 - food = {ask} 'What would you like to eat?' - drinks = {ask} 'What would you like to drink?' - {if} food {is} 'sandwich' {and} drinks {is} 'juice' - {print} 'Thats our discount menu' - price = price - 3 - {print} 'That will be ' price ' dollars' - ``` + ``` + price = 10 + food = {ask} 'What would you like to eat?' + drinks = {ask} 'What would you like to drink?' + {if} food {is} 'sandwich' {and} drinks {is} 'juice' + {print} 'Thats our discount menu' + price = price - 3 + {print} 'That will be ' price ' dollars' + ``` start_code: "# place your code here" 15: story_text: | @@ -1244,15 +1244,15 @@ adventures: example_code: |2 - ``` - {print} 'Welcome at McHedy' - more = 'yes' - {while} more == 'yes' - order = {ask} 'What would you like to order?' - {print} order - more = {ask} 'Would you like to order anything {else}?' - {print} 'Thank you!' - ``` + ``` + {print} 'Welcome at McHedy' + more = 'yes' + {while} more == 'yes' + order = {ask} 'What would you like to order?' + {print} order + more = {ask} 'Would you like to order anything {else}?' + {print} 'Thank you!' + ``` start_code: "# place your code here" fortune: name: Fortune teller @@ -1312,20 +1312,20 @@ adventures: - ``` - {print} How did I get here? - {print} I remember my friend telling me to go into the old mansion... - {print} and suddenly everything went black. - {print} But how did I end up on the floor...? - {print} My head hurts like Ive been hit by a baseball bat! - {print} What's that sound? - {print} Oh no! I feel like Im not alone in this house! - {print} I need to get out of here! - {print} There are 3 doors in front of me.. - {ask} Which door should i pick? - {echo} I choose door - {print} ...? - ``` + ``` + {print} How did I get here? + {print} I remember my friend telling me to go into the old mansion... + {print} and suddenly everything went black. + {print} But how did I end up on the floor...? + {print} My head hurts like Ive been hit by a baseball bat! + {print} What's that sound? + {print} Oh no! I feel like Im not alone in this house! + {print} I need to get out of here! + {print} There are 3 doors in front of me.. + {ask} Which door should i pick? + {echo} I choose door + {print} ...? + ``` story_text_2: | Can you finish the scary story? Or make up your own haunted house story? start_code: "{print} How did I get here?" @@ -1334,16 +1334,16 @@ adventures: In this haunted house you can choose your monsters with emojis. Of course you could also use words. example_code: |2 - ``` - monster_1 {is} 👻 - monster_2 {is} 🤡 - monster_3 {is} 👶 - {print} You enter the haunted house. - {print} Suddenly you see a monster_1 - {print} You run into the other room, but a monster_2 is waiting there for you! - {print} Oh no! Quickly get to the kitchen. - {print} But as you enter monster_3 attacks you! - ``` + ``` + monster_1 {is} 👻 + monster_2 {is} 🤡 + monster_3 {is} 👶 + {print} You enter the haunted house. + {print} Suddenly you see a monster_1 + {print} You run into the other room, but a monster_2 is waiting there for you! + {print} Oh no! Quickly get to the kitchen. + {print} But as you enter monster_3 attacks you! + ``` start_code: "monster1 {is} _" story_text_2: "### Exercise\nIn the example above the monsters are predetermined. So each time you run your code, the output is the same.\nCan you add `{ask}` commands to make the haunted house interactive and have the players choose the monsters they come across?\n" example_code_2: "```\nmonster_1 {is} _\nmonster_2 {is} _\nmonster_3 {is} _\n{print} You enter the haunted house.\n{print} Suddenly you see a monster_1\n{print} You run into the other room, but a monster_2 is waiting there for you!\n{print} Oh no! Quickly get to the kitchen.\n{print} But as you enter monster_3 attacks you!\n```\n" @@ -1379,18 +1379,18 @@ adventures: example_code: |2 - ``` - {print} 'Escape from the haunted house!' - {print} 'There are 3 doors in front of you...' - doors {is} 1, 2, 3 - monsters {is} werewolf, mummy, vampire, zombie - chosen_door {is} {ask} 'Which door do you choose?' - {print} 'You chose door...' chosen_door - {sleep} - correct_door {is} doors {at} {random} - {if} chosen_door {is} correct_door {print} 'Great! Youve escaped!' - {else} {print} 'Oh no! You are being eaten by a...' monsters {at} {random} - ``` + ``` + {print} 'Escape from the haunted house!' + {print} 'There are 3 doors in front of you...' + doors {is} 1, 2, 3 + monsters {is} werewolf, mummy, vampire, zombie + chosen_door {is} {ask} 'Which door do you choose?' + {print} 'You chose door...' chosen_door + {sleep} + correct_door {is} doors {at} {random} + {if} chosen_door {is} correct_door {print} 'Great! Youve escaped!' + {else} {print} 'Oh no! You are being eaten by a...' monsters {at} {random} + ``` start_code: "# place your code here" 9: @@ -1402,26 +1402,26 @@ adventures: example_code: |2 - ``` - {print} 'Escape from the Haunted House!' - player = alive - doors = 1, 2, 3 - monsters = zombie, vampire, giant spider - {repeat} 3 {times} - {if} player {is} alive - correct_door {is} doors {at} {random} - {print} 'There are 3 doors in front of you...' - chosen_door = {ask} 'Which door do you choose?' - {if} chosen_door {is} correct_door - {print} 'No monsters here!' - {else} - {print} 'You are eaten by a ' monsters {at} {random} - player = dead - {else} - {print} 'GAME OVER' - {if} player {is} alive - {print} 'Great! You survived!' - ``` + ``` + {print} 'Escape from the Haunted House!' + player = alive + doors = 1, 2, 3 + monsters = zombie, vampire, giant spider + {repeat} 3 {times} + {if} player {is} alive + correct_door {is} doors {at} {random} + {print} 'There are 3 doors in front of you...' + chosen_door = {ask} 'Which door do you choose?' + {if} chosen_door {is} correct_door + {print} 'No monsters here!' + {else} + {print} 'You are eaten by a ' monsters {at} {random} + player = dead + {else} + {print} 'GAME OVER' + {if} player {is} alive + {print} 'Great! You survived!' + ``` start_code: "{print} 'Escape from the haunted house!'" 11: story_text: | @@ -1429,27 +1429,27 @@ adventures: example_code: |2 - ``` - {print} 'Escape from the Haunted House!' - player {is} alive - doors = 1, 2, 3 - monsters = zombie, vampire, giant spider - {for} i {in} {range} 1 {to} 3 - {if} player {is} alive - correct_door = doors {at} {random} - {print} 'Room ' i - {print} 'There are 3 doors in front of you...' - chosendoor = {ask} 'Which door do you choose?' - {if} chosendoor {is} correct_door - {print} 'No monsters here!' - {else} - {print} 'You are eaten by a ' monsters {at} {random} - player = dead - {else} - {print} 'GAME OVER' - {if} player {is} alive - {print} 'Great! You survived!' - ``` + ``` + {print} 'Escape from the Haunted House!' + player {is} alive + doors = 1, 2, 3 + monsters = zombie, vampire, giant spider + {for} i {in} {range} 1 {to} 3 + {if} player {is} alive + correct_door = doors {at} {random} + {print} 'Room ' i + {print} 'There are 3 doors in front of you...' + chosendoor = {ask} 'Which door do you choose?' + {if} chosendoor {is} correct_door + {print} 'No monsters here!' + {else} + {print} 'You are eaten by a ' monsters {at} {random} + player = dead + {else} + {print} 'GAME OVER' + {if} player {is} alive + {print} 'Great! You survived!' + ``` start_code: "{print} 'Escape from the haunted house!'" 14: story_text: | @@ -1457,28 +1457,28 @@ adventures: example_code: |2 - ``` - {print} 'Escape from the haunted house' - lives = 3 - doors = 1, 2, 3 - monsters = 'the wicked witch', 'a zombie', 'a sleeping 3 headed dog' - {for} i {in} {range} 1 {to} 10 - {if} lives > 0 - good_door = doors {at} {random} - monster = monsters {at} {random} - chosen_door = {ask} 'Which door do you choose?' - {if} good_door == chosen_door - {print} 'You have chosen the correct door' - {else} - {print} 'You see...' monster - {if} monster == 'a sleeping 3 headed dog' - {print} 'Pffieuw.... Its asleep' - {else} - {print} 'You lose one life' - lives = lives -1 - {else} - {print} 'GAME OVER' - ``` + ``` + {print} 'Escape from the haunted house' + lives = 3 + doors = 1, 2, 3 + monsters = 'the wicked witch', 'a zombie', 'a sleeping 3 headed dog' + {for} i {in} {range} 1 {to} 10 + {if} lives > 0 + good_door = doors {at} {random} + monster = monsters {at} {random} + chosen_door = {ask} 'Which door do you choose?' + {if} good_door == chosen_door + {print} 'You have chosen the correct door' + {else} + {print} 'You see...' monster + {if} monster == 'a sleeping 3 headed dog' + {print} 'Pffieuw.... Its asleep' + {else} + {print} 'You lose one life' + lives = lives -1 + {else} + {print} 'GAME OVER' + ``` start_code: "# place your code here" 16: story_text: | @@ -1488,32 +1488,32 @@ adventures: example_code: |2 - ``` - numbers = [1, 2, 3] - i = numbers[{random}] - hint = ['growling', 'a cackling laugh', 'fluttering batwings'] - monsters = ['zombie', 'witch', 'vampire'] - bad_fate = ['Your brain is eaten', 'You are forever cursed', 'You are bitten'] - good_fate = ['You throw the ham. The zombie is distracted and starts eating it.', 'You set the curtains on fire. The witch flees out of fear for the fire', 'The vampire hates garlic and flees'] - weapons = ['ham', 'lighter', 'garlic'] - {print} 'You are standing in front of an old mansion' - {print} 'Something is not right here' - {print} 'You hear ' hint[i] - {print} 'You are going to explore it' - {print} 'You enter the kitchen and see a lighter, a raw ham and a garlic.' - your_weapon = {ask} 'What do you bring with you?' - {print} 'With your ' your_weapon ' you enter the living room' - {print} 'There you find a ' monsters[i] - needed_weapon = weapons[i] - {if} your_weapon == needed_weapon - {print} 'You use your ' your_weapon - {print} good_fate[i] - {print} 'YOU WIN!' - {else} - {print} 'You have chosen the wrong weapon...' - {print} bad_fate[i] - {print} 'GAME OVER' - ``` + ``` + numbers = [1, 2, 3] + i = numbers[{random}] + hint = ['growling', 'a cackling laugh', 'fluttering batwings'] + monsters = ['zombie', 'witch', 'vampire'] + bad_fate = ['Your brain is eaten', 'You are forever cursed', 'You are bitten'] + good_fate = ['You throw the ham. The zombie is distracted and starts eating it.', 'You set the curtains on fire. The witch flees out of fear for the fire', 'The vampire hates garlic and flees'] + weapons = ['ham', 'lighter', 'garlic'] + {print} 'You are standing in front of an old mansion' + {print} 'Something is not right here' + {print} 'You hear ' hint[i] + {print} 'You are going to explore it' + {print} 'You enter the kitchen and see a lighter, a raw ham and a garlic.' + your_weapon = {ask} 'What do you bring with you?' + {print} 'With your ' your_weapon ' you enter the living room' + {print} 'There you find a ' monsters[i] + needed_weapon = weapons[i] + {if} your_weapon == needed_weapon + {print} 'You use your ' your_weapon + {print} good_fate[i] + {print} 'YOU WIN!' + {else} + {print} 'You have chosen the wrong weapon...' + {print} bad_fate[i] + {print} 'GAME OVER' + ``` start_code: "# place your code here" piggybank: default_save_name: Piggy Bank @@ -1547,15 +1547,15 @@ adventures: Make your own program to practice your vocabulary in a new language. example_code: |2 - ``` - {print} 'Learn French!' - cat {is} {ask} '🐱' - {if} cat {is} chat {print} 'Terrific!' - {else} {print} 'No, cat is chat' - frog {is} {ask} '🐸' - {if} frog {is} grenouille {print} 'Super!' - {else} {print} 'No, frog is grenouille' - ``` + ``` + {print} 'Learn French!' + cat {is} {ask} '🐱' + {if} cat {is} chat {print} 'Terrific!' + {else} {print} 'No, cat is chat' + frog {is} {ask} '🐸' + {if} frog {is} grenouille {print} 'Super!' + {else} {print} 'No, frog is grenouille' + ``` start_code: "# place your code here" 16: story_text: | @@ -1563,20 +1563,20 @@ adventures: example_code: |2 - ``` - french_words = ['bonjour', 'ordinateur', 'pomme de terre'] - translation = ['hello', 'computer', 'potato'] - score = 0 - {for} i {in} {range} 1 {to} 3 - answer = {ask} 'What does ' french_words[i] ' mean?' - correct = translation[i] - {if} answer == correct - {print} 'Correct!' - score = score + 1 - {else} - {print} 'Wrong, ' french_words[i] ' means ' translation[i] - {print} 'You gave ' score ' correct answers.' - ``` + ``` + french_words = ['bonjour', 'ordinateur', 'pomme de terre'] + translation = ['hello', 'computer', 'potato'] + score = 0 + {for} i {in} {range} 1 {to} 3 + answer = {ask} 'What does ' french_words[i] ' mean?' + correct = translation[i] + {if} answer == correct + {print} 'Correct!' + score = score + 1 + {else} + {print} 'Wrong, ' french_words[i] ' means ' translation[i] + {print} 'You gave ' score ' correct answers.' + ``` start_code: "# place your code here" secret: name: SuperSpy @@ -1699,6 +1699,10 @@ adventures: start_code: "name {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n" example_code: "```\nname {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n```\n" story_text: "## If... Else...\nYou have learned to repeat a block of lines of code after a `{repeat}` command.\nNow you can also use indentation to make blocks after a {if} or {else} command.\nCheck out the example code.\n\n### Exercise\nAdd an {else} command to the example code. Make a block of line using indentation. You do this by starting each line with 4 spaces.\n" + 9: + start_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" + story_text: "In this level you can also put an {if} command inside another {if} command.\n" + example_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" name: "{if} & {else}" description: Introducing the if command default_save_name: if_command @@ -1793,6 +1797,10 @@ adventures: example_code_2: "```\nname = {ask} 'What is your name?'\n{if} name == 'Hedy'\n {print} 'You are cool!'\n```\n" story_text_3: "You can also compare if something is *not* equal to something else using `!=` like this:\n" example_code_3: "```\nname = {ask} 'What is your name?'\n{if} name != 'Hedy'\n {print} 'You are not Hedy'\n```\n" + 6: + story_text: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" + example_code: "```\nname = Hedy\nanswer = 20 + 4\n```\n" + start_code: "name = Hedy\nanswer = 20 + 4\n" add_remove_command: name: "{add} {to} & {remove} {from}" description: introducing add to and remove from diff --git a/content/adventures/bn.yaml b/content/adventures/bn.yaml index 4f7b9197fa9..d32cccfcb69 100644 --- a/content/adventures/bn.yaml +++ b/content/adventures/bn.yaml @@ -949,7 +949,7 @@ adventures: Can you make the code so that you get the total score for 8 dice? To do that, you have to cut and paste some lines of the code. example_code_2: |2 - Did you manage to calculate the score for 8 dice? That required a lot of cutting and pasting, right? We are going to make that easier in level 7! + Did you manage to calculate the score for 8 dice? That required a lot of cutting and pasting, right? We are going to make that easier in level 7! start_code: "{print} 'What will the die indicate this time?'" 7: story_text: | @@ -1024,9 +1024,9 @@ adventures: 3: story_text: |2 - In this level we can enter lists and choose things from them. - You first make a list with `{is}`. Then you can let the computer choose something from the list with `{at} {random}`. - For example, you can let the computer pick from rock, paper and scissors. + In this level we can enter lists and choose things from them. + You first make a list with `{is}`. Then you can let the computer choose something from the list with `{at} {random}`. + For example, you can let the computer pick from rock, paper and scissors. example_code: | ``` @@ -1383,20 +1383,20 @@ adventures: example_code: |2 - You can make a simple restaurant code, like this: - ``` - {print} 'Welcome to Hedys restaurant' - {print} 'Here is our menu:' - {print} 'Our main courses are pizza, lasagne, or spaghetti' - main = {ask} 'Which main course would you like?' - price = 0 - {if} main {is} pizza price = 10 - {if} main {is} lasagne price = 12 - {if} main {is} spaghetti price = 8 - {print} 'You have ordered ' main - {print} 'That will be ' price ' dollars, please' - {print} 'Thank you, enjoy your meal!' - ``` + You can make a simple restaurant code, like this: + ``` + {print} 'Welcome to Hedys restaurant' + {print} 'Here is our menu:' + {print} 'Our main courses are pizza, lasagne, or spaghetti' + main = {ask} 'Which main course would you like?' + price = 0 + {if} main {is} pizza price = 10 + {if} main {is} lasagne price = 12 + {if} main {is} spaghetti price = 8 + {print} 'You have ordered ' main + {print} 'That will be ' price ' dollars, please' + {print} 'Thank you, enjoy your meal!' + ``` start_code: "# place your code here" 7: story_text: | @@ -1467,7 +1467,7 @@ adventures: ``` story_text_2: |2 - Of course, you could also order for multiple people! + Of course, you could also order for multiple people! example_code_2: | ``` courses = appetizer, main course, dessert @@ -1580,16 +1580,16 @@ adventures: In this level you can use a variable and the `{at} {random}` command to really let Hedy choose an answer for you. Check out this code for instance: example_code: |2 - In this example the player can {ask} Hedy a yes-no question and Hedy will pick a random answer for you. - ``` - {print} I’m Hedy the fortune teller! - question {is} {ask} What do you want to know? - {print} This is what you want to know: question - answers {is} yes, no, maybe - {print} My crystal ball says... - {sleep} 2 - {print} answers {at} {random} - ``` + In this example the player can {ask} Hedy a yes-no question and Hedy will pick a random answer for you. + ``` + {print} I’m Hedy the fortune teller! + question {is} {ask} What do you want to know? + {print} This is what you want to know: question + answers {is} yes, no, maybe + {print} My crystal ball says... + {sleep} 2 + {print} answers {at} {random} + ``` story_text_2: | Now, Hedy can only answer yes, no or maybe. Can you give Hedy more answer options, like 'definitely' or '{ask} again'. start_code: "# place your code here" @@ -2509,6 +2509,10 @@ adventures: example_code_2: "```\nname = {ask} 'What is your name?'\n{if} name == 'Hedy'\n {print} 'You are cool!'\n```\n" story_text_3: "You can also compare if something is *not* equal to something else using `!=` like this:\n" example_code_3: "```\nname = {ask} 'What is your name?'\n{if} name != 'Hedy'\n {print} 'You are not Hedy'\n```\n" + 6: + story_text: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" + example_code: "```\nname = Hedy\nanswer = 20 + 4\n```\n" + start_code: "name = Hedy\nanswer = 20 + 4\n" name: "{is}" description: introducing is command default_save_name: is_command @@ -2565,6 +2569,10 @@ adventures: start_code: "name {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n" example_code: "```\nname {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n```\n" story_text: "## If... Else...\nYou have learned to repeat a block of lines of code after a `{repeat}` command.\nNow you can also use indentation to make blocks after a {if} or {else} command.\nCheck out the example code.\n\n### Exercise\nAdd an {else} command to the example code. Make a block of line using indentation. You do this by starting each line with 4 spaces.\n" + 9: + start_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" + story_text: "In this level you can also put an {if} command inside another {if} command.\n" + example_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" name: "{if} & {else}" description: Introducing the if command default_save_name: if_command diff --git a/content/adventures/ca.yaml b/content/adventures/ca.yaml index 8691064f321..b27df944999 100644 --- a/content/adventures/ca.yaml +++ b/content/adventures/ca.yaml @@ -790,6 +790,10 @@ adventures: example_code_2: "```\nname = {ask} 'What is your name?'\n{if} name == 'Hedy'\n {print} 'You are cool!'\n```\n" story_text_3: "You can also compare if something is *not* equal to something else using `!=` like this:\n" example_code_3: "```\nname = {ask} 'What is your name?'\n{if} name != 'Hedy'\n {print} 'You are not Hedy'\n```\n" + 6: + story_text: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" + example_code: "```\nname = Hedy\nanswer = 20 + 4\n```\n" + start_code: "name = Hedy\nanswer = 20 + 4\n" random_command: name: "{random}" description: introducing at random command @@ -857,6 +861,10 @@ adventures: start_code: "name {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n" example_code: "```\nname {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n```\n" story_text: "## If... Else...\nYou have learned to repeat a block of lines of code after a `{repeat}` command.\nNow you can also use indentation to make blocks after a {if} or {else} command.\nCheck out the example code.\n\n### Exercise\nAdd an {else} command to the example code. Make a block of line using indentation. You do this by starting each line with 4 spaces.\n" + 9: + start_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" + story_text: "In this level you can also put an {if} command inside another {if} command.\n" + example_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" quotation_marks: name: "'quotation marks'" description: Introduction quotation marks diff --git a/content/adventures/cs.yaml b/content/adventures/cs.yaml index 03a925431d5..f1689fc6b43 100644 --- a/content/adventures/cs.yaml +++ b/content/adventures/cs.yaml @@ -915,6 +915,10 @@ adventures: story_text: "We are going to learn more new items. You might know them already from mathematics, the `<` and `>`.\nThe `<` checks if the first number is smaller than the second, for example age `<` 12 checks if age is smaller than 12.\nIf you want to check if the first number is smaller or equal to the second, you can use `<=`, for example age `<=` 11.\nThe `>` checks if the first number is bigger than the second, for example points `>` 10 checks if points is larger than 10.\nIf you want to check if the first number is bigger or equal to the second, you can use `>=`, for example points `>=` 11.\nYou use these comparisons in an `{if}`, like this:\n" example_code: "```\nage = {ask} 'How old are you?'\n{if} age > 12\n {print} 'You are older than I am!'\n```\n" story_text_2: "From this level on, if you want to compare exactly, you can use two equal signs. This is what most programming languages do:\n" + 6: + story_text: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" + example_code: "```\nname = Hedy\nanswer = 20 + 4\n```\n" + start_code: "name = Hedy\nanswer = 20 + 4\n" name: "{is}" ask_command: levels: @@ -1051,6 +1055,10 @@ adventures: start_code: "name {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n" example_code: "```\nname {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n```\n" story_text: "## If... Else...\nYou have learned to repeat a block of lines of code after a `{repeat}` command.\nNow you can also use indentation to make blocks after a {if} or {else} command.\nCheck out the example code.\n\n### Exercise\nAdd an {else} command to the example code. Make a block of line using indentation. You do this by starting each line with 4 spaces.\n" + 9: + start_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" + story_text: "In this level you can also put an {if} command inside another {if} command.\n" + example_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" quotation_marks: levels: 4: diff --git a/content/adventures/cy.yaml b/content/adventures/cy.yaml index 273a8ca5ea7..e0b63de1eac 100644 --- a/content/adventures/cy.yaml +++ b/content/adventures/cy.yaml @@ -765,6 +765,10 @@ adventures: example_code_2: "```\nname = {ask} 'What is your name?'\n{if} name == 'Hedy'\n {print} 'You are cool!'\n```\n" story_text_3: "You can also compare if something is *not* equal to something else using `!=` like this:\n" example_code_3: "```\nname = {ask} 'What is your name?'\n{if} name != 'Hedy'\n {print} 'You are not Hedy'\n```\n" + 6: + story_text: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" + example_code: "```\nname = Hedy\nanswer = 20 + 4\n```\n" + start_code: "name = Hedy\nanswer = 20 + 4\n" random_command: name: "{random}" description: introducing at random command @@ -812,6 +816,10 @@ adventures: start_code: "name {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n" example_code: "```\nname {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n```\n" story_text: "## If... Else...\nYou have learned to repeat a block of lines of code after a `{repeat}` command.\nNow you can also use indentation to make blocks after a {if} or {else} command.\nCheck out the example code.\n\n### Exercise\nAdd an {else} command to the example code. Make a block of line using indentation. You do this by starting each line with 4 spaces.\n" + 9: + start_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" + story_text: "In this level you can also put an {if} command inside another {if} command.\n" + example_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" in_command: name: "{in}" description: Introducing the in command diff --git a/content/adventures/da.yaml b/content/adventures/da.yaml index 211beaeb448..5382e4cee82 100644 --- a/content/adventures/da.yaml +++ b/content/adventures/da.yaml @@ -717,6 +717,10 @@ adventures: example_code_2: "```\nname = {ask} 'What is your name?'\n{if} name == 'Hedy'\n {print} 'You are cool!'\n```\n" story_text_3: "You can also compare if something is *not* equal to something else using `!=` like this:\n" example_code_3: "```\nname = {ask} 'What is your name?'\n{if} name != 'Hedy'\n {print} 'You are not Hedy'\n```\n" + 6: + story_text: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" + example_code: "```\nname = Hedy\nanswer = 20 + 4\n```\n" + start_code: "name = Hedy\nanswer = 20 + 4\n" name: "{is}" description: introducing is command default_save_name: is_command @@ -880,6 +884,10 @@ adventures: start_code: "name {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n" example_code: "```\nname {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n```\n" story_text: "## If... Else...\nYou have learned to repeat a block of lines of code after a `{repeat}` command.\nNow you can also use indentation to make blocks after a {if} or {else} command.\nCheck out the example code.\n\n### Exercise\nAdd an {else} command to the example code. Make a block of line using indentation. You do this by starting each line with 4 spaces.\n" + 9: + start_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" + story_text: "In this level you can also put an {if} command inside another {if} command.\n" + example_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" repeat_command_2: name: "{repeat} 2" description: repeat command 2 diff --git a/content/adventures/de.yaml b/content/adventures/de.yaml index ba7d2a17236..8517ac6bb3b 100644 --- a/content/adventures/de.yaml +++ b/content/adventures/de.yaml @@ -2419,6 +2419,10 @@ adventures: example_code_2: "```\nname = {ask} 'What is your name?'\n{if} name == 'Hedy'\n {print} 'You are cool!'\n```\n" story_text_3: "You can also compare if something is *not* equal to something else using `!=` like this:\n" example_code_3: "```\nname = {ask} 'What is your name?'\n{if} name != 'Hedy'\n {print} 'You are not Hedy'\n```\n" + 6: + story_text: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" + example_code: "```\nname = Hedy\nanswer = 20 + 4\n```\n" + start_code: "name = Hedy\nanswer = 20 + 4\n" random_command: levels: 16: @@ -2529,6 +2533,10 @@ adventures: start_code: "name {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n" example_code: "```\nname {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n```\n" story_text: "## If... Else...\nYou have learned to repeat a block of lines of code after a `{repeat}` command.\nNow you can also use indentation to make blocks after a {if} or {else} command.\nCheck out the example code.\n\n### Exercise\nAdd an {else} command to the example code. Make a block of line using indentation. You do this by starting each line with 4 spaces.\n" + 9: + start_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" + story_text: "In this level you can also put an {if} command inside another {if} command.\n" + example_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" in_command: name: "{in}" description: Introducing the in command diff --git a/content/adventures/el.yaml b/content/adventures/el.yaml index a252d9af9a5..42cba8f40a4 100644 --- a/content/adventures/el.yaml +++ b/content/adventures/el.yaml @@ -292,8 +292,8 @@ adventures: 7: story_text: |2 - Σε μια ιστορία, κάποιος μπορεί να αναφέρει διάφορες λέξεις πολλές φορές. Για παράδειγμα, όταν κάποιος φωνάζει βοήθεια ή τραγουδά ένα τραγούδι. - Μπορείς να βάλεις μια τέτοια επανάληψη στην ιστορία σου στο επίπεδο 5 με την `repeat`. + Σε μια ιστορία, κάποιος μπορεί να αναφέρει διάφορες λέξεις πολλές φορές. Για παράδειγμα, όταν κάποιος φωνάζει βοήθεια ή τραγουδά ένα τραγούδι. + Μπορείς να βάλεις μια τέτοια επανάληψη στην ιστορία σου στο επίπεδο 5 με την `repeat`. example_code: | ``` @@ -329,13 +329,13 @@ adventures: 4: story_text: |2 - Θα παρατήρησες πως υπάρχει ακόμα ένα σφάλμα στο επίπεδο 2. + Θα παρατήρησες πως υπάρχει ακόμα ένα σφάλμα στο επίπεδο 2. - Δοκίμασες να κάνεις μια πρόταση χρησιμοποιώντας τη λέξη name; Δηλαδή, `print το name μου είναι name`. + Δοκίμασες να κάνεις μια πρόταση χρησιμοποιώντας τη λέξη name; Δηλαδή, `print το name μου είναι name`. - Αυτό δε δούλεψε σωστά! Τότε θα έχεις σαν αποτέλεσμα: το Γιάννης μου είναι Γιάννης. Αυτό μπορεί να λυθεί στο επίπεδο 3. + Αυτό δε δούλεψε σωστά! Τότε θα έχεις σαν αποτέλεσμα: το Γιάννης μου είναι Γιάννης. Αυτό μπορεί να λυθεί στο επίπεδο 3. - Θα πρέπει να χρησιμοποιήσεις εισαγωγικά για οτιδήποτε θα εμφανίσεις. + Θα πρέπει να χρησιμοποιήσεις εισαγωγικά για οτιδήποτε θα εμφανίσεις. example_code: | ``` @@ -351,9 +351,9 @@ adventures: 3: story_text: |2 - Μπορείς επίσης να προσθέσεις κάτι τυχαίο στην ιστορία σου. Οποιοδήποτε τέρας, ζώο ή άλλο εμπόδιο. + Μπορείς επίσης να προσθέσεις κάτι τυχαίο στην ιστορία σου. Οποιοδήποτε τέρας, ζώο ή άλλο εμπόδιο. - Αυτό πάει κάπως έτσι. + Αυτό πάει κάπως έτσι. start_code: "print Η ιστορία σου" example_code: | ``` @@ -731,11 +731,11 @@ adventures: 3: story_text: |2 - Στο επίπεδο 2 μπορούμε να εισάγουμε λίστες και να επιλέξουμε πράγματα από αυτές. + Στο επίπεδο 2 μπορούμε να εισάγουμε λίστες και να επιλέξουμε πράγματα από αυτές. - Αρχικά θα φτιάξεις μια λίστα με την `is`. Ύστερα μπορείς να αφήσεις τον υπολογιστή να επιλέξει κάτι από τη λίστα με την `at random` (τυχαία). + Αρχικά θα φτιάξεις μια λίστα με την `is`. Ύστερα μπορείς να αφήσεις τον υπολογιστή να επιλέξει κάτι από τη λίστα με την `at random` (τυχαία). - Για παράδειγμα, μπορείς να αφήσεις τον υπολογιστή να επιλέξει ανάμεσα σε πέτρα, ψαλίδι και χαρτί. + Για παράδειγμα, μπορείς να αφήσεις τον υπολογιστή να επιλέξει ανάμεσα σε πέτρα, ψαλίδι και χαρτί. example_code: | ``` @@ -862,17 +862,17 @@ adventures: start_code: "# place your code here" example_code: |2- - ``` - print Καλωσήλθατε στο εστιατόριο της Hedy! - print Σήμερα σερβίρουμε πίτσα ή λαζάνια. - food is ask Τί θα θέλατε να φάτε; - print Καλή επιλογή! Αυτό το φαγητό είναι το αγαπημένο μου! - topping is ask Θα θέλατε κρέας ή λαχανικά μαζί με αυτό; - print food with topping ετοιμάζεται! - drinks is ask Τί θα θέλατε να πιείς με αυτό; - print Σας ευχαριστώ για την παραγγελία. - print Το φαγητό και τα ποτά σας θα είναι έτοιμα αμέσως! - ``` + ``` + print Καλωσήλθατε στο εστιατόριο της Hedy! + print Σήμερα σερβίρουμε πίτσα ή λαζάνια. + food is ask Τί θα θέλατε να φάτε; + print Καλή επιλογή! Αυτό το φαγητό είναι το αγαπημένο μου! + topping is ask Θα θέλατε κρέας ή λαχανικά μαζί με αυτό; + print food with topping ετοιμάζεται! + drinks is ask Τί θα θέλατε να πιείς με αυτό; + print Σας ευχαριστώ για την παραγγελία. + print Το φαγητό και τα ποτά σας θα είναι έτοιμα αμέσως! + ``` story_text_2: "### Exercise\nCan you make this code more elaborate? For example by adding drinks to the order? Or...?\n" 3: story_text: | @@ -1437,6 +1437,10 @@ adventures: example_code_2: "```\nname = {ask} 'What is your name?'\n{if} name == 'Hedy'\n {print} 'You are cool!'\n```\n" story_text_3: "You can also compare if something is *not* equal to something else using `!=` like this:\n" example_code_3: "```\nname = {ask} 'What is your name?'\n{if} name != 'Hedy'\n {print} 'You are not Hedy'\n```\n" + 6: + story_text: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" + example_code: "```\nname = Hedy\nanswer = 20 + 4\n```\n" + start_code: "name = Hedy\nanswer = 20 + 4\n" random_command: default_save_name: random_command name: "{random}" @@ -1471,6 +1475,10 @@ adventures: start_code: "name {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n" example_code: "```\nname {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n```\n" story_text: "## If... Else...\nYou have learned to repeat a block of lines of code after a `{repeat}` command.\nNow you can also use indentation to make blocks after a {if} or {else} command.\nCheck out the example code.\n\n### Exercise\nAdd an {else} command to the example code. Make a block of line using indentation. You do this by starting each line with 4 spaces.\n" + 9: + start_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" + story_text: "In this level you can also put an {if} command inside another {if} command.\n" + example_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" repeat_command: default_save_name: repeat_command levels: diff --git a/content/adventures/eo.yaml b/content/adventures/eo.yaml index 4d68de91740..16d351a6742 100644 --- a/content/adventures/eo.yaml +++ b/content/adventures/eo.yaml @@ -776,6 +776,10 @@ adventures: example_code_2: "```\nname = {ask} 'What is your name?'\n{if} name == 'Hedy'\n {print} 'You are cool!'\n```\n" story_text_3: "You can also compare if something is *not* equal to something else using `!=` like this:\n" example_code_3: "```\nname = {ask} 'What is your name?'\n{if} name != 'Hedy'\n {print} 'You are not Hedy'\n```\n" + 6: + story_text: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" + example_code: "```\nname = Hedy\nanswer = 20 + 4\n```\n" + start_code: "name = Hedy\nanswer = 20 + 4\n" description: introducing is command default_save_name: is_command add_remove_command: @@ -959,6 +963,10 @@ adventures: start_code: "name {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n" example_code: "```\nname {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n```\n" story_text: "## If... Else...\nYou have learned to repeat a block of lines of code after a `{repeat}` command.\nNow you can also use indentation to make blocks after a {if} or {else} command.\nCheck out the example code.\n\n### Exercise\nAdd an {else} command to the example code. Make a block of line using indentation. You do this by starting each line with 4 spaces.\n" + 9: + start_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" + story_text: "In this level you can also put an {if} command inside another {if} command.\n" + example_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" in_command: name: "{in}" default_save_name: in_command diff --git a/content/adventures/es.yaml b/content/adventures/es.yaml index 6d1e4a0d9f0..59704ccde82 100644 --- a/content/adventures/es.yaml +++ b/content/adventures/es.yaml @@ -1409,6 +1409,10 @@ adventures: example_code_2: "```\nnombre = {ask} '¿Cómo te llamas?'\n{if} nombre == 'Hedy'\n {print} '¡Cómo molas!'\n```\n" story_text_3: "También puedes comparar si algo *no* es igual a otra cosa usando `!=` tal que así:\n" example_code_3: "```\nnombre = {ask} '¿Cómo te llamas?'\n{if} nombre != 'Hedy'\n {print} 'Tu no eres Hedy'\n```\n" + 6: + story_text: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" + example_code: "```\nname = Hedy\nanswer = 20 + 4\n```\n" + start_code: "name = Hedy\nanswer = 20 + 4\n" add_remove_command: levels: 3: @@ -1448,6 +1452,10 @@ adventures: start_code: "nombre {is} {ask} '¿Cómo te llamas?'\n{if} nombre {is} Hedy\n {print} 'Bienvenido Hedy'\n {print} '¡Puedes jugar en tu ordenador!'\n" example_code: "```\nnombre {is} {ask} '¿Cómo te llamas?'\n{if} nombre {is} Hedy\n {print} 'Bienvenido Hedy'\n {print} '¡Puedes jugar en tu ordenador!'\n```\n" story_text: "## Si… Sino…\nHas aprendido a repetir un bloque de líneas de código tras un comando `{repeat}`.\nAhora puedes usar la sangría para hacer bloques tras un comando {if} o {else}.\nComprueba el código de ejemplo.\n\n### Ejercicio\nAñade un comando {else} al código de ejemplo. Haz un bloque de línea usando sangría. Haz esto empezando cada línea con 4 espacios.\n" + 9: + start_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" + story_text: "In this level you can also put an {if} command inside another {if} command.\n" + example_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" repeat_command: name: "{repeat}" description: comando repetir diff --git a/content/adventures/et.yaml b/content/adventures/et.yaml index 49ba999b178..be3d30025ef 100644 --- a/content/adventures/et.yaml +++ b/content/adventures/et.yaml @@ -719,6 +719,10 @@ adventures: story_text_3: "You can also compare if something is *not* equal to something else using `!=` like this:\n" example_code_3: "```\nname = {ask} 'What is your name?'\n{if} name != 'Hedy'\n {print} 'You are not Hedy'\n```\n" story_text: "We are going to learn more new items. You might know them already from mathematics, the `<` and `>`.\nThe `<` checks if the first number is smaller than the second, for example age `<` 12 checks if age is smaller than 12.\nIf you want to check if the first number is smaller or equal to the second, you can use `<=`, for example age `<=` 11.\nThe `>` checks if the first number is bigger than the second, for example points `>` 10 checks if points is larger than 10.\nIf you want to check if the first number is bigger or equal to the second, you can use `>=`, for example points `>=` 11.\nYou use these comparisons in an `{if}`, like this:\n" + 6: + story_text: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" + example_code: "```\nname = Hedy\nanswer = 20 + 4\n```\n" + start_code: "name = Hedy\nanswer = 20 + 4\n" name: "{is}" description: introducing is command add_remove_command: @@ -842,6 +846,10 @@ adventures: start_code: "name {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n" example_code: "```\nname {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n```\n" story_text: "## If... Else...\nYou have learned to repeat a block of lines of code after a `{repeat}` command.\nNow you can also use indentation to make blocks after a {if} or {else} command.\nCheck out the example code.\n\n### Exercise\nAdd an {else} command to the example code. Make a block of line using indentation. You do this by starting each line with 4 spaces.\n" + 9: + start_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" + story_text: "In this level you can also put an {if} command inside another {if} command.\n" + example_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" in_command: name: "{in}" description: Introducing the in command diff --git a/content/adventures/fa.yaml b/content/adventures/fa.yaml index ba81c619809..ce73c06c974 100644 --- a/content/adventures/fa.yaml +++ b/content/adventures/fa.yaml @@ -854,6 +854,10 @@ adventures: story_text_3: "You can also compare if something is *not* equal to something else using `!=` like this:\n" example_code_3: "```\nname = {ask} 'What is your name?'\n{if} name != 'Hedy'\n {print} 'You are not Hedy'\n```\n" example_code_2: "```\nname = {ask} 'What is your name?'\n{if} name == 'Hedy'\n {print} 'You are cool!'\n```\n" + 6: + story_text: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" + example_code: "```\nname = Hedy\nanswer = 20 + 4\n```\n" + start_code: "name = Hedy\nanswer = 20 + 4\n" random_command: name: "{random}" description: introducing at random command @@ -898,6 +902,10 @@ adventures: start_code: "name {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n" example_code: "```\nname {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n```\n" story_text: "## If... Else...\nYou have learned to repeat a block of lines of code after a `{repeat}` command.\nNow you can also use indentation to make blocks after a {if} or {else} command.\nCheck out the example code.\n\n### Exercise\nAdd an {else} command to the example code. Make a block of line using indentation. You do this by starting each line with 4 spaces.\n" + 9: + start_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" + story_text: "In this level you can also put an {if} command inside another {if} command.\n" + example_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" name: "{if} & {else}" description: Introducing the if command default_save_name: if_command diff --git a/content/adventures/fi.yaml b/content/adventures/fi.yaml index 02fbf658391..723ced204a7 100644 --- a/content/adventures/fi.yaml +++ b/content/adventures/fi.yaml @@ -721,6 +721,10 @@ adventures: example_code_2: "```\nname = {ask} 'What is your name?'\n{if} name == 'Hedy'\n {print} 'You are cool!'\n```\n" story_text_3: "You can also compare if something is *not* equal to something else using `!=` like this:\n" example_code_3: "```\nname = {ask} 'What is your name?'\n{if} name != 'Hedy'\n {print} 'You are not Hedy'\n```\n" + 6: + story_text: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" + example_code: "```\nname = Hedy\nanswer = 20 + 4\n```\n" + start_code: "name = Hedy\nanswer = 20 + 4\n" quotation_marks: levels: 12: @@ -917,6 +921,10 @@ adventures: start_code: "name {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n" example_code: "```\nname {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n```\n" story_text: "## If... Else...\nYou have learned to repeat a block of lines of code after a `{repeat}` command.\nNow you can also use indentation to make blocks after a {if} or {else} command.\nCheck out the example code.\n\n### Exercise\nAdd an {else} command to the example code. Make a block of line using indentation. You do this by starting each line with 4 spaces.\n" + 9: + start_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" + story_text: "In this level you can also put an {if} command inside another {if} command.\n" + example_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" in_command: name: "{in}" description: Introducing the in command diff --git a/content/adventures/fr.yaml b/content/adventures/fr.yaml index 6ea91a167ec..b72597a1821 100644 --- a/content/adventures/fr.yaml +++ b/content/adventures/fr.yaml @@ -2524,6 +2524,10 @@ adventures: example_code_2: "```\nnom = {ask} \"Quel est ton nom ?\"\n{if} nom == \"Hedy\"\n {print} \"Tu es cool !\"\n```\n" story_text_3: "Tu peux aussi comparer si une chose n'est *pas* égale à une autre chose en utilisant `!=` comme ceci :\n" example_code_3: "```\nnom = {ask} \"Quel est ton nom ?\"\n{if} nom != \"Hedy\"\n {print} \"Tu n'es pas Hedy\"\n```\n" + 6: + story_text: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" + example_code: "```\nname = Hedy\nanswer = 20 + 4\n```\n" + start_code: "name = Hedy\nanswer = 20 + 4\n" random_command: name: "{random}" description: Introduction de la commande `{at} {random}` @@ -2555,6 +2559,10 @@ adventures: start_code: "nom {is} {ask} \"Quel est ton nom ?\"\n{if} nom {is} Hedy\n {print} \"Bienvenue Hedy\"\n {print} \"Tu peux jouer sur ton ordinateur !\"\n" example_code: "```\nnom {is} {ask} \"Quel est ton nom ?\"\n{if} nom {is} Hedy\n {print} \"Bienvenue Hedy\"\n {print} \"Tu peux jouer sur ton ordinateur !\"\n```\n" story_text: "## Si… Sinon…\nTu as appris à répéter un bloc de ligne de code après une commande `{repeat}`.\nMaintenant, tu peux aussi utiliser l'indentation pour faire un bloc après une commande `{if}` ou `{else}`.\nRegarde l'exemple de code.\n\n### Exercice\nAjoute une commande `{else}` à l'exemple de code. Fait un bloc de lignes en utilisant l'indentation. Tu le fais en commençant chaque ligne avec 4 espaces.\n" + 9: + start_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" + story_text: "In this level you can also put an {if} command inside another {if} command.\n" + example_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" name: "{if} & {else}" description: Introduction à la commande `{if}` default_save_name: if_command diff --git a/content/adventures/fy.yaml b/content/adventures/fy.yaml index 15c153044ac..3e8907f6ee0 100644 --- a/content/adventures/fy.yaml +++ b/content/adventures/fy.yaml @@ -348,12 +348,12 @@ adventures: example_code_2: |2 - {print} He hears a sound - animals {is} 🐿, 🦔, 🦇, 🦉 - animal {is} {ask} What do you think it is? - {add} animal {to_list} animals - {print} it was a animals {at} {random} - ``` + {print} He hears a sound + animals {is} 🐿, 🦔, 🦇, 🦉 + animal {is} {ask} What do you think it is? + {add} animal {to_list} animals + {print} it was a animals {at} {random} + ``` story_text_3: | This is an example of the `{remove}` command in your story example_code_3: | @@ -995,6 +995,10 @@ adventures: example_code_2: "```\nname = {ask} 'What is your name?'\n{if} name == 'Hedy'\n {print} 'You are cool!'\n```\n" story_text_3: "You can also compare if something is *not* equal to something else using `!=` like this:\n" example_code_3: "```\nname = {ask} 'What is your name?'\n{if} name != 'Hedy'\n {print} 'You are not Hedy'\n```\n" + 6: + story_text: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" + example_code: "```\nname = Hedy\nanswer = 20 + 4\n```\n" + start_code: "name = Hedy\nanswer = 20 + 4\n" random_command: name: "{random}" levels: @@ -1048,6 +1052,10 @@ adventures: example_code: "```\nname {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n```\n" start_code: "name {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n" story_text: "## If... Else...\nYou have learned to repeat a block of lines of code after a `{repeat}` command.\nNow you can also use indentation to make blocks after a {if} or {else} command.\nCheck out the example code.\n\n### Exercise\nAdd an {else} command to the example code. Make a block of line using indentation. You do this by starting each line with 4 spaces.\n" + 9: + start_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" + story_text: "In this level you can also put an {if} command inside another {if} command.\n" + example_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" name: "{if} & {else}" description: Introducing the if command default_save_name: if_command diff --git a/content/adventures/he.yaml b/content/adventures/he.yaml index 0f660011fd9..ec632843d0d 100644 --- a/content/adventures/he.yaml +++ b/content/adventures/he.yaml @@ -685,6 +685,10 @@ adventures: example_code_2: "```\nname = {ask} 'What is your name?'\n{if} name == 'Hedy'\n {print} 'You are cool!'\n```\n" story_text_3: "You can also compare if something is *not* equal to something else using `!=` like this:\n" example_code_3: "```\nname = {ask} 'What is your name?'\n{if} name != 'Hedy'\n {print} 'You are not Hedy'\n```\n" + 6: + story_text: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" + example_code: "```\nname = Hedy\nanswer = 20 + 4\n```\n" + start_code: "name = Hedy\nanswer = 20 + 4\n" name: "{is}" description: introducing is command default_save_name: is_command @@ -828,6 +832,10 @@ adventures: start_code: "name {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n" example_code: "```\nname {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n```\n" story_text: "## If... Else...\nYou have learned to repeat a block of lines of code after a `{repeat}` command.\nNow you can also use indentation to make blocks after a {if} or {else} command.\nCheck out the example code.\n\n### Exercise\nAdd an {else} command to the example code. Make a block of line using indentation. You do this by starting each line with 4 spaces.\n" + 9: + start_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" + story_text: "In this level you can also put an {if} command inside another {if} command.\n" + example_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" in_command: name: "{in}" description: Introducing the in command diff --git a/content/adventures/hi.yaml b/content/adventures/hi.yaml index 11a01169dcc..fcc2f67d15f 100644 --- a/content/adventures/hi.yaml +++ b/content/adventures/hi.yaml @@ -828,7 +828,7 @@ adventures: Can you make the code so that you get the total score for 8 dice? To do that, you have to cut and paste some lines of the code. example_code_2: |2 - Did you manage to calculate the score for 8 dice? That required a lot of cutting and pasting, right? We are going to make that easier in level 7! + Did you manage to calculate the score for 8 dice? That required a lot of cutting and pasting, right? We are going to make that easier in level 7! start_code: "{print} 'What will the die indicate this time?'" 15: story_text: | @@ -925,9 +925,9 @@ adventures: 3: story_text: |2 - In this level we can enter lists and choose things from them. - You first make a list with `{is}`. Then you can let the computer choose something from the list with `{at} {random}`. - For example, you can let the computer pick from rock, paper and scissors. + In this level we can enter lists and choose things from them. + You first make a list with `{is}`. Then you can let the computer choose something from the list with `{at} {random}`. + For example, you can let the computer pick from rock, paper and scissors. start_code: '{print} Welcome to your own rock scissors paper!' example_code: | ``` @@ -1230,20 +1230,20 @@ adventures: example_code: |2 - You can make a simple restaurant code, like this: - ``` - {print} 'Welcome to Hedys restaurant' - {print} 'Here is our menu:' - {print} 'Our main courses are pizza, lasagne, or spaghetti' - main = {ask} 'Which main course would you like?' - price = 0 - {if} main {is} pizza price = 10 - {if} main {is} lasagne price = 12 - {if} main {is} spaghetti price = 8 - {print} 'You have ordered ' main - {print} 'That will be ' price ' dollars, please' - {print} 'Thank you, enjoy your meal!' - ``` + You can make a simple restaurant code, like this: + ``` + {print} 'Welcome to Hedys restaurant' + {print} 'Here is our menu:' + {print} 'Our main courses are pizza, lasagne, or spaghetti' + main = {ask} 'Which main course would you like?' + price = 0 + {if} main {is} pizza price = 10 + {if} main {is} lasagne price = 12 + {if} main {is} spaghetti price = 8 + {print} 'You have ordered ' main + {print} 'That will be ' price ' dollars, please' + {print} 'Thank you, enjoy your meal!' + ``` start_code: "# place your code here" 7: story_text: | @@ -1314,7 +1314,7 @@ adventures: ``` story_text_2: |2 - Of course, you could also order for multiple people! + Of course, you could also order for multiple people! example_code_2: | ``` courses = appetizer, main course, dessert @@ -2245,6 +2245,10 @@ adventures: example_code_2: "```\nname = {ask} 'What is your name?'\n{if} name == 'Hedy'\n {print} 'You are cool!'\n```\n" story_text_3: "You can also compare if something is *not* equal to something else using `!=` like this:\n" example_code_3: "```\nname = {ask} 'What is your name?'\n{if} name != 'Hedy'\n {print} 'You are not Hedy'\n```\n" + 6: + story_text: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" + example_code: "```\nname = Hedy\nanswer = 20 + 4\n```\n" + start_code: "name = Hedy\nanswer = 20 + 4\n" random_command: description: introducing at random command default_save_name: random_command @@ -2301,6 +2305,10 @@ adventures: start_code: "name {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n" example_code: "```\nname {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n```\n" story_text: "## If... Else...\nYou have learned to repeat a block of lines of code after a `{repeat}` command.\nNow you can also use indentation to make blocks after a {if} or {else} command.\nCheck out the example code.\n\n### Exercise\nAdd an {else} command to the example code. Make a block of line using indentation. You do this by starting each line with 4 spaces.\n" + 9: + start_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" + story_text: "In this level you can also put an {if} command inside another {if} command.\n" + example_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" in_command: name: "{in}" description: Introducing the in command diff --git a/content/adventures/hu.yaml b/content/adventures/hu.yaml index ecf264783e7..a0335954c64 100644 --- a/content/adventures/hu.yaml +++ b/content/adventures/hu.yaml @@ -269,8 +269,8 @@ adventures: start_code: print A te történeted story_text: |2 - Hozzáadhatsz valami véletlenszerűt is a történetéhez. Bármilyen szörnyet, állatot vagy - más akadályt. + Hozzáadhatsz valami véletlenszerűt is a történetéhez. Bármilyen szörnyet, állatot vagy + más akadályt. example_code: | ``` @@ -282,12 +282,12 @@ adventures: example_code_2: |2 - {print} He hears a sound - animals {is} 🐿, 🦔, 🦇, 🦉 - animal {is} {ask} What do you think it is? - {add} animal {to_list} animals - {print} it was a animals {at} {random} - ``` + {print} He hears a sound + animals {is} 🐿, 🦔, 🦇, 🦉 + animal {is} {ask} What do you think it is? + {add} animal {to_list} animals + {print} it was a animals {at} {random} + ``` story_text_3: | This is an example of the `{remove}` command in your story example_code_3: | @@ -497,12 +497,12 @@ adventures: start_code: print 'Ki mosogat?' story_text: |2- - Az idézőjelek segítségével szebbé teheted a mosogatás tervezését. - Ezúttal a minta kód nem egészen teljes. - Ki tudod egészíteni a kódot a helyes parancsok vagy karakterek pontokra történő - beírásával? - Minden üres helyet egy paranccsal kell kicserélni. - Tipp: Ne felejtsd el az idézőjeleket. + Az idézőjelek segítségével szebbé teheted a mosogatás tervezését. + Ezúttal a minta kód nem egészen teljes. + Ki tudod egészíteni a kódot a helyes parancsok vagy karakterek pontokra történő + beírásával? + Minden üres helyet egy paranccsal kell kicserélni. + Tipp: Ne felejtsd el az idézőjeleket. example_code: |- ``` emberek is anya, apa, Edit, Gizi @@ -983,21 +983,21 @@ adventures: example_code: |2- - ``` - print Üdvözöljük a Hedy's Random étteremben! - print Az egyetlen étterem amely véletlenszerűen kiválasztja az étkezést és annak árát az Ön számára! - eloetelek is saláta, leves, sajt - foetel is pizza, kelbimbó, spagetti - desszertek is brownie, fagylalt, francia sajtok - ital is kóla, sör, víz - arak is 1000 forint, 2000 forint, 3000 forint - print A következővel indul: eloetelek at random - print Ezután kiszolgáljuk: foetel at random - print És desszertként: desszertek at random - print Igyon egy italt - print Ez lesz: arak at random - print Köszönöm és élvezze az étkezést! - ``` + ``` + print Üdvözöljük a Hedy's Random étteremben! + print Az egyetlen étterem amely véletlenszerűen kiválasztja az étkezést és annak árát az Ön számára! + eloetelek is saláta, leves, sajt + foetel is pizza, kelbimbó, spagetti + desszertek is brownie, fagylalt, francia sajtok + ital is kóla, sör, víz + arak is 1000 forint, 2000 forint, 3000 forint + print A következővel indul: eloetelek at random + print Ezután kiszolgáljuk: foetel at random + print És desszertként: desszertek at random + print Igyon egy italt + print Ez lesz: arak at random + print Köszönöm és élvezze az étkezést! + ``` story_text_2: "Does your costumer have any allergies or do they dislike certain dishes? Then you can use the `{remove}`command to remove it from your menu.\n" example_code_2: "```\n{print} Mystery milkshake\nflavors {is} strawberry, chocolate, vanilla\nallergies {is} {ask} Are you allergic to any falvors?\n{remove} allergies {from} flavors\n{print} You get a flavors {at} {random} milkshake\n```\n" 15: @@ -1228,15 +1228,15 @@ adventures: example_code: |2- - ``` - print 'Hedy a jósnő vagyok!' - print 'Feltehetsz 3 kérdést.' - valasz is igen, nem, talán - repeat 3 times - kerdes is ask 'Mit akarsz tudni?' - print kerdes - print 'A kristálygömböm azt mondja...' valasz at random - ``` + ``` + print 'Hedy a jósnő vagyok!' + print 'Feltehetsz 3 kérdést.' + valasz is igen, nem, talán + repeat 3 times + kerdes is ask 'Mit akarsz tudni?' + print kerdes + print 'A kristálygömböm azt mondja...' valasz at random + ``` 7: story_text: |- Az 6. szinten a `repeat` paranccsal beállíthatod, hogy a gép egyszerre több jóslatot mondjon. @@ -1255,13 +1255,13 @@ adventures: print 'Feltehetsz 3 kérdést!' example_code: |2- - ``` - print 'Hedy, a jósnő vagyok!' - print 'Feltehetsz 3 kérdést!' - repeat 3 times kerdes is ask 'Mit akarsz tudni?' - valasz is igen, nem, talan - repeat 3 times print 'A kristálygömböm azt mondja... ' valasz at random - ``` + ``` + print 'Hedy, a jósnő vagyok!' + print 'Feltehetsz 3 kérdést!' + repeat 3 times kerdes is ask 'Mit akarsz tudni?' + valasz is igen, nem, talan + repeat 3 times print 'A kristálygömböm azt mondja... ' valasz at random + ``` 6: story_text: |- A 5. szinten jövendőmondóként használhatod a matematikát előrejelzéseidben. Ez lehetővé teszi (buta) képletek kitalálását a jövő kiszámításához. @@ -1272,30 +1272,30 @@ adventures: print 'Meg tudom jósolni, hány gyermeked lesz, ha felnősz!' example_code: |2- - ``` - print 'Hedy, a jósnő vagyok!' - print 'Meg tudom jósolni, hány gyermeked lesz, ha felnősz!' - kor is ask 'Hány éves vagy?' - testver is ask 'Hány testvéred van?' - magassag is ask 'Hány cm magas vagy?' - gyerekek is magassag / kor - gyerekek is gyerekek - testver - print 'Neked ...' - print gyerekek ' gyereked lesz!' - ``` - - Ha az előző példa nem volt elég buta a számodra, akkor nézd meg ezt! - - ``` - print 'Hedy vagyok a buta jósnő!' - print 'Meg tudom jósolni, milyen okos vagy!' - foci is ask '1-10-es skálás mennyire szereted a focit?' - banan is ask 'Hány banánt ettél a héten?' - higienia is ask 'Hányszor mostad meg a kezed ma?' - eredmeny is banan + higienia - eredmeny is eredmeny * foci - print 'Te ' eredmeny ' százalék okos vagy.' - ``` + ``` + print 'Hedy, a jósnő vagyok!' + print 'Meg tudom jósolni, hány gyermeked lesz, ha felnősz!' + kor is ask 'Hány éves vagy?' + testver is ask 'Hány testvéred van?' + magassag is ask 'Hány cm magas vagy?' + gyerekek is magassag / kor + gyerekek is gyerekek - testver + print 'Neked ...' + print gyerekek ' gyereked lesz!' + ``` + + Ha az előző példa nem volt elég buta a számodra, akkor nézd meg ezt! + + ``` + print 'Hedy vagyok a buta jósnő!' + print 'Meg tudom jósolni, milyen okos vagy!' + foci is ask '1-10-es skálás mennyire szereted a focit?' + banan is ask 'Hány banánt ettél a héten?' + higienia is ask 'Hányszor mostad meg a kezed ma?' + eredmeny is banan + higienia + eredmeny is eredmeny * foci + print 'Te ' eredmeny ' százalék okos vagy.' + ``` 5: story_text: |- A 4. szinten megtanulod (titokban) az esélyeket a magad javára billenteni a jósnő használata során! @@ -1313,12 +1313,12 @@ adventures: start_code: print 'Szia, Hedy, a jósnő vagyok!' example_code: |2- - ``` - print 'Szia, Hedy, a jósnő vagyok' - print 'Meg tudom jósolni, nyersz-e a lottón holnap!' - szemely is ask 'Ki vagy te?' - if szemely is Hedy print 'Bizonyosan nyerni fogsz!' else print 'Balszerencse! Valaki más nyer!' - ``` + ``` + print 'Szia, Hedy, a jósnő vagyok' + print 'Meg tudom jósolni, nyersz-e a lottón holnap!' + szemely is ask 'Ki vagy te?' + if szemely is Hedy print 'Bizonyosan nyerni fogsz!' else print 'Balszerencse! Valaki más nyer!' + ``` 4: start_code: print 'Szia, Hedy, a jósnő vagyok!' story_text: |- @@ -1332,13 +1332,13 @@ adventures: example_code: |2- - ``` - print 'Szia, Hedy, a jósnő vagyok!' - kerdes is ask 'Mit akarsz tudni?' - print 'Ez az amit tudni akarsz: ' kerdes - valasz is igen, nem, talan - print 'A kristálygömböm azt mondja... ' valasz at random - ``` + ``` + print 'Szia, Hedy, a jósnő vagyok!' + kerdes is ask 'Mit akarsz tudni?' + print 'Ez az amit tudni akarsz: ' kerdes + valasz is igen, nem, talan + print 'A kristálygömböm azt mondja... ' valasz at random + ``` 3: start_code: print Szia Hedy a jósnő vagyok! story_text: |- @@ -1402,26 +1402,26 @@ adventures: start_code: print 'Szabadulj ki a kísértetházból' example_code: |2- - ``` - print 'Szabadulj ki a kísértetházból' - jatekos is elo - ajtok is 1, 2, 3 - szornyek is vampir, zombi, oriaspok - for i in range 1 to 3 - if jatekos is elo - helyesajto is ajtok at random - print 'Három ajtó van előtted...' - valasztottajto is ask 'Melyik ajtót választod?' - if valasztottajto is helyesajto - print 'Itt nincs szörny!' - else - print 'Megevett a(z) ' szornyek at random - jatekos is halott - else - print 'GAME OVER' - if jatekos is elo - print 'Nagyszerű! Túlélted!' - ``` + ``` + print 'Szabadulj ki a kísértetházból' + jatekos is elo + ajtok is 1, 2, 3 + szornyek is vampir, zombi, oriaspok + for i in range 1 to 3 + if jatekos is elo + helyesajto is ajtok at random + print 'Három ajtó van előtted...' + valasztottajto is ask 'Melyik ajtót választod?' + if valasztottajto is helyesajto + print 'Itt nincs szörny!' + else + print 'Megevett a(z) ' szornyek at random + jatekos is halott + else + print 'GAME OVER' + if jatekos is elo + print 'Nagyszerű! Túlélted!' + ``` 5: story_text: |- Eddig a szintig a kísértetjárta ház játék mindig arra kérte a játékost, hogy válasszon egy ajtót, de ahogy észrevettétek, nem igazán kellett helyesen válaszolniuk. @@ -1709,6 +1709,10 @@ adventures: example_code_3: "```\nanswer {is} {ask} '2 + 2 = ?'\n_ _ _ 4 _ 'Great job!'\n_ _ 'No 2 + 2 = 4'\n```\n" example_code: "```\nname {is} {ask} 'what is your name?'\n{if} name {is} Hedy {print} 'nice' {else} {print} 'boo!'\n```\n" start_code: "name {is} {ask} 'what is your name?'\n{if} name {is} Hedy {print} 'nice'\n{else} {print} 'boo!'" + 9: + start_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" + story_text: "In this level you can also put an {if} command inside another {if} command.\n" + example_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" default_save_name: if_command name: "{if} & {else}" description: Introducing the if command @@ -1880,6 +1884,10 @@ adventures: example_code_2: "```\nname = {ask} 'What is your name?'\n{if} name == 'Hedy'\n {print} 'You are cool!'\n```\n" story_text_3: "You can also compare if something is *not* equal to something else using `!=` like this:\n" example_code_3: "```\nname = {ask} 'What is your name?'\n{if} name != 'Hedy'\n {print} 'You are not Hedy'\n```\n" + 6: + story_text: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" + example_code: "```\nname = Hedy\nanswer = 20 + 4\n```\n" + start_code: "name = Hedy\nanswer = 20 + 4\n" add_remove_command: name: "{add} {to} & {remove} {from}" description: introducing add to and remove from diff --git a/content/adventures/id.yaml b/content/adventures/id.yaml index 15b0ad4788b..247cd95d169 100644 --- a/content/adventures/id.yaml +++ b/content/adventures/id.yaml @@ -1675,6 +1675,10 @@ adventures: start_code: "name {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n" example_code: "```\nname {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n```\n" story_text: "## If... Else...\nYou have learned to repeat a block of lines of code after a `{repeat}` command.\nNow you can also use indentation to make blocks after a {if} or {else} command.\nCheck out the example code.\n\n### Exercise\nAdd an {else} command to the example code. Make a block of line using indentation. You do this by starting each line with 4 spaces.\n" + 9: + start_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" + story_text: "In this level you can also put an {if} command inside another {if} command.\n" + example_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" description: Introducing the if command quotation_marks: levels: @@ -1800,6 +1804,10 @@ adventures: story_text_2: "From this level on, if you want to compare exactly, you can use two equal signs. This is what most programming languages do:\n" example_code_2: "```\nname = {ask} 'What is your name?'\n{if} name == 'Hedy'\n {print} 'You are cool!'\n```\n" story_text_3: "You can also compare if something is *not* equal to something else using `!=` like this:\n" + 6: + story_text: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" + example_code: "```\nname = Hedy\nanswer = 20 + 4\n```\n" + start_code: "name = Hedy\nanswer = 20 + 4\n" name: "{is}" description: introducing is command default_save_name: is_command diff --git a/content/adventures/it.yaml b/content/adventures/it.yaml index 409ea8e2497..5f2c70272c7 100644 --- a/content/adventures/it.yaml +++ b/content/adventures/it.yaml @@ -1064,7 +1064,7 @@ adventures: Can you make the code so that you get the total score for 8 dice? To do that, you have to cut and paste some lines of the code. example_code_2: |2 - Did you manage to calculate the score for 8 dice? That required a lot of cutting and pasting, right? We are going to make that easier in level 7! + Did you manage to calculate the score for 8 dice? That required a lot of cutting and pasting, right? We are going to make that easier in level 7! start_code: "{print} 'What will the die indicate this time?'" 7: story_text: | @@ -1139,9 +1139,9 @@ adventures: 3: story_text: |2 - In this level we can enter lists and choose things from them. - You first make a list with `{is}`. Then you can let the computer choose something from the list with `{at} {random}`. - For example, you can let the computer pick from rock, paper and scissors. + In this level we can enter lists and choose things from them. + You first make a list with `{is}`. Then you can let the computer choose something from the list with `{at} {random}`. + For example, you can let the computer pick from rock, paper and scissors. example_code: | ``` @@ -1498,20 +1498,20 @@ adventures: example_code: |2 - You can make a simple restaurant code, like this: - ``` - {print} 'Welcome to Hedys restaurant' - {print} 'Here is our menu:' - {print} 'Our main courses are pizza, lasagne, or spaghetti' - main = {ask} 'Which main course would you like?' - price = 0 - {if} main {is} pizza price = 10 - {if} main {is} lasagne price = 12 - {if} main {is} spaghetti price = 8 - {print} 'You have ordered ' main - {print} 'That will be ' price ' dollars, please' - {print} 'Thank you, enjoy your meal!' - ``` + You can make a simple restaurant code, like this: + ``` + {print} 'Welcome to Hedys restaurant' + {print} 'Here is our menu:' + {print} 'Our main courses are pizza, lasagne, or spaghetti' + main = {ask} 'Which main course would you like?' + price = 0 + {if} main {is} pizza price = 10 + {if} main {is} lasagne price = 12 + {if} main {is} spaghetti price = 8 + {print} 'You have ordered ' main + {print} 'That will be ' price ' dollars, please' + {print} 'Thank you, enjoy your meal!' + ``` start_code: "# scrivi il tuo codice qui" 7: story_text: | @@ -1582,7 +1582,7 @@ adventures: ``` story_text_2: |2 - Of course, you could also order for multiple people! + Of course, you could also order for multiple people! example_code_2: | ``` courses = appetizer, main course, dessert @@ -1695,16 +1695,16 @@ adventures: In this level you can use a variable and the `{at} {random}` command to really let Hedy choose an answer for you. Check out this code for instance: example_code: |2 - In this example the player can {ask} Hedy a yes-no question and Hedy will pick a random answer for you. - ``` - {print} I’m Hedy the fortune teller! - question {is} {ask} What do you want to know? - {print} This is what you want to know: question - answers {is} yes, no, maybe - {print} My crystal ball says... - {sleep} 2 - {print} answers {at} {random} - ``` + In this example the player can {ask} Hedy a yes-no question and Hedy will pick a random answer for you. + ``` + {print} I’m Hedy the fortune teller! + question {is} {ask} What do you want to know? + {print} This is what you want to know: question + answers {is} yes, no, maybe + {print} My crystal ball says... + {sleep} 2 + {print} answers {at} {random} + ``` story_text_2: | Now, Hedy can only answer yes, no or maybe. Can you give Hedy more answer options, like 'definitely' or '{ask} again'. start_code: "# scrivi il tuo codice qui" @@ -2661,6 +2661,10 @@ adventures: start_code: "name {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n" example_code: "```\nname {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n```\n" story_text: "## If... Else...\nYou have learned to repeat a block of lines of code after a `{repeat}` command.\nNow you can also use indentation to make blocks after a {if} or {else} command.\nCheck out the example code.\n\n### Exercise\nAdd an {else} command to the example code. Make a block of line using indentation. You do this by starting each line with 4 spaces.\n" + 9: + start_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" + story_text: "In this level you can also put an {if} command inside another {if} command.\n" + example_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" in_command: name: "{in}" description: Introducing the in command @@ -2775,6 +2779,10 @@ adventures: story_text_2: "### Exercise\nTime to make your own variables!\nIn the example code we made an example of the variable `favorite_animals`. In line 1 the variable is set, and in line 2 we haved used the variable in a print command.\nFirstly, finish our example by filling in your favorite animal in the blanks. Then make at least 3 of these codes yourself. Pick a variable, and set the variable with the {is} command. Then use it with a {print} command, just like we did.\n" example_code_2: "```\nfavorite_animals is _\n{print} I like favorite_animals\n```\n" start_code: "name {is} Hedy\nage {is} 15\n{print} name is age years old" + 6: + story_text: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" + example_code: "```\nname = Hedy\nanswer = 20 + 4\n```\n" + start_code: "name = Hedy\nanswer = 20 + 4\n" name: "{is}" description: introducing is command default_save_name: is_command diff --git a/content/adventures/ja.yaml b/content/adventures/ja.yaml index 9e35142265d..16e987654ac 100644 --- a/content/adventures/ja.yaml +++ b/content/adventures/ja.yaml @@ -699,6 +699,10 @@ adventures: example_code_2: "```\nname = {ask} 'What is your name?'\n{if} name == 'Hedy'\n {print} 'You are cool!'\n```\n" story_text_3: "You can also compare if something is *not* equal to something else using `!=` like this:\n" example_code_3: "```\nname = {ask} 'What is your name?'\n{if} name != 'Hedy'\n {print} 'You are not Hedy'\n```\n" + 6: + story_text: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" + example_code: "```\nname = Hedy\nanswer = 20 + 4\n```\n" + start_code: "name = Hedy\nanswer = 20 + 4\n" name: "{is}" description: introducing is command default_save_name: is_command @@ -808,6 +812,10 @@ adventures: start_code: "name {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n" example_code: "```\nname {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n```\n" story_text: "## If... Else...\nYou have learned to repeat a block of lines of code after a `{repeat}` command.\nNow you can also use indentation to make blocks after a {if} or {else} command.\nCheck out the example code.\n\n### Exercise\nAdd an {else} command to the example code. Make a block of line using indentation. You do this by starting each line with 4 spaces.\n" + 9: + start_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" + story_text: "In this level you can also put an {if} command inside another {if} command.\n" + example_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" in_command: name: "{in}" description: Introducing the in command diff --git a/content/adventures/kmr.yaml b/content/adventures/kmr.yaml index 03ca2fba302..2b5175a9165 100644 --- a/content/adventures/kmr.yaml +++ b/content/adventures/kmr.yaml @@ -699,6 +699,10 @@ adventures: example_code_2: "```\nname = {ask} 'What is your name?'\n{if} name == 'Hedy'\n {print} 'You are cool!'\n```\n" story_text_3: "You can also compare if something is *not* equal to something else using `!=` like this:\n" example_code_3: "```\nname = {ask} 'What is your name?'\n{if} name != 'Hedy'\n {print} 'You are not Hedy'\n```\n" + 6: + story_text: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" + example_code: "```\nname = Hedy\nanswer = 20 + 4\n```\n" + start_code: "name = Hedy\nanswer = 20 + 4\n" name: "{is}" description: introducing is command default_save_name: is_command @@ -840,6 +844,10 @@ adventures: start_code: "name {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n" example_code: "```\nname {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n```\n" story_text: "## If... Else...\nYou have learned to repeat a block of lines of code after a `{repeat}` command.\nNow you can also use indentation to make blocks after a {if} or {else} command.\nCheck out the example code.\n\n### Exercise\nAdd an {else} command to the example code. Make a block of line using indentation. You do this by starting each line with 4 spaces.\n" + 9: + start_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" + story_text: "In this level you can also put an {if} command inside another {if} command.\n" + example_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" in_command: name: "{in}" description: Introducing the in command diff --git a/content/adventures/ko.yaml b/content/adventures/ko.yaml index b758fc1b345..d5a0141ae89 100644 --- a/content/adventures/ko.yaml +++ b/content/adventures/ko.yaml @@ -733,6 +733,10 @@ adventures: example_code_2: "```\nname = {ask} 'What is your name?'\n{if} name == 'Hedy'\n {print} 'You are cool!'\n```\n" story_text_3: "다음과 같이 `!=`을 사용하여 어떤 것이 다른 것과 *not* 같은지 비교할 수도 있습니다:\n" example_code_3: "```\nname = {ask} 'What is your name?'\n{if} name != 'Hedy'\n {print} 'You are not Hedy'\n```\n" + 6: + story_text: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" + example_code: "```\nname = Hedy\nanswer = 20 + 4\n```\n" + start_code: "name = Hedy\nanswer = 20 + 4\n" random_command: levels: 3: @@ -789,6 +793,10 @@ adventures: start_code: "name {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n" example_code: "```\nname {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n```\n" story_text: "## If... Else...\n`{repeat}` 명령 후 코드 행 블록을 반복하는 법을 배웠습니다.\n이제 들여쓰기를 사용하여 {if} 또는 {else} 명령 뒤에 블록을 만들 수도 있습니다.\n예제 코드를 확인해 보세요.\n\n### 연습 문제\n예제 코드에 {else} 명령어를 추가합니다. 들여쓰기를 사용하여 선 블록을 만듭니다. 이것은 각 선을 4개의 공백으로 시작하여 수행합니다.\n" + 9: + start_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" + story_text: "In this level you can also put an {if} command inside another {if} command.\n" + example_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" in_command: levels: 5: diff --git a/content/adventures/nb_NO.yaml b/content/adventures/nb_NO.yaml index e6e37b0fcc9..ea897c1136c 100644 --- a/content/adventures/nb_NO.yaml +++ b/content/adventures/nb_NO.yaml @@ -728,6 +728,10 @@ adventures: example_code_2: "```\nname = {ask} 'What is your name?'\n{if} name == 'Hedy'\n {print} 'You are cool!'\n```\n" story_text_3: "You can also compare if something is *not* equal to something else using `!=` like this:\n" example_code_3: "```\nname = {ask} 'What is your name?'\n{if} name != 'Hedy'\n {print} 'You are not Hedy'\n```\n" + 6: + story_text: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" + example_code: "```\nname = Hedy\nanswer = 20 + 4\n```\n" + start_code: "name = Hedy\nanswer = 20 + 4\n" random_command: description: introducing at random command default_save_name: random_command @@ -784,6 +788,10 @@ adventures: start_code: "name {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n" example_code: "```\nname {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n```\n" story_text: "## If... Else...\nYou have learned to repeat a block of lines of code after a `{repeat}` command.\nNow you can also use indentation to make blocks after a {if} or {else} command.\nCheck out the example code.\n\n### Exercise\nAdd an {else} command to the example code. Make a block of line using indentation. You do this by starting each line with 4 spaces.\n" + 9: + start_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" + story_text: "In this level you can also put an {if} command inside another {if} command.\n" + example_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" in_command: name: "{in}" description: Introducing the in command diff --git a/content/adventures/nl.yaml b/content/adventures/nl.yaml index f823012338a..f5cf17e5942 100644 --- a/content/adventures/nl.yaml +++ b/content/adventures/nl.yaml @@ -1640,13 +1640,13 @@ adventures: 13: story_text: |2 - ### Opdracht 1 - Maak het sommenoefenprogramma nu extra moeilijk. De speler moet twee sommen achter elkaar goed hebben. Maak de codes op de streepjes af. + ### Opdracht 1 + Maak het sommenoefenprogramma nu extra moeilijk. De speler moet twee sommen achter elkaar goed hebben. Maak de codes op de streepjes af. - ### Opdracht 2 (extra) - Sommen hebben soms meerdere goede antwoorden. Je kan 10 bijvoorbeeld delen door 5, maar ook door 2. Dus de som 'Door welk getal kan je 10 delen?' heeft twee goede antwoorden. - Verzin zelf een som met meerdere antwoorden, vraag de speler om een antwoord en reken ze beide goed met `{or}`. - Begin opnieuw met een leeg programmeerveld en programmeer het helemaal zelf. + ### Opdracht 2 (extra) + Sommen hebben soms meerdere goede antwoorden. Je kan 10 bijvoorbeeld delen door 5, maar ook door 2. Dus de som 'Door welk getal kan je 10 delen?' heeft twee goede antwoorden. + Verzin zelf een som met meerdere antwoorden, vraag de speler om een antwoord en reken ze beide goed met `{or}`. + Begin opnieuw met een leeg programmeerveld en programmeer het helemaal zelf. example_code: | ``` @@ -2915,6 +2915,7 @@ adventures: start_code: | naam = Hedy antwoord = 20 + 4 + example_code: "```\nname = Hedy\nanswer = 20 + 4\n```\n" 14: start_code: |- leeftijd = {ask} 'Hoe oud ben jij?' diff --git a/content/adventures/pa_PK.yaml b/content/adventures/pa_PK.yaml index ec024f03bc0..a13c556d52e 100644 --- a/content/adventures/pa_PK.yaml +++ b/content/adventures/pa_PK.yaml @@ -702,6 +702,10 @@ adventures: example_code_2: "```\nname = {ask} 'What is your name?'\n{if} name == 'Hedy'\n {print} 'You are cool!'\n```\n" story_text_3: "You can also compare if something is *not* equal to something else using `!=` like this:\n" example_code_3: "```\nname = {ask} 'What is your name?'\n{if} name != 'Hedy'\n {print} 'You are not Hedy'\n```\n" + 6: + story_text: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" + example_code: "```\nname = Hedy\nanswer = 20 + 4\n```\n" + start_code: "name = Hedy\nanswer = 20 + 4\n" random_command: name: "{random}" description: introducing at random command @@ -823,6 +827,10 @@ adventures: start_code: "name {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n" example_code: "```\nname {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n```\n" story_text: "## If... Else...\nYou have learned to repeat a block of lines of code after a `{repeat}` command.\nNow you can also use indentation to make blocks after a {if} or {else} command.\nCheck out the example code.\n\n### Exercise\nAdd an {else} command to the example code. Make a block of line using indentation. You do this by starting each line with 4 spaces.\n" + 9: + start_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" + story_text: "In this level you can also put an {if} command inside another {if} command.\n" + example_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" quotation_marks: name: "'quotation marks'" description: Introduction quotation marks diff --git a/content/adventures/pl.yaml b/content/adventures/pl.yaml index b21f75d6adc..a038f836588 100644 --- a/content/adventures/pl.yaml +++ b/content/adventures/pl.yaml @@ -792,6 +792,10 @@ adventures: example_code_2: "```\nname = {ask} 'What is your name?'\n{if} name == 'Hedy'\n {print} 'You are cool!'\n```\n" story_text_3: "You can also compare if something is *not* equal to something else using `!=` like this:\n" example_code_3: "```\nname = {ask} 'What is your name?'\n{if} name != 'Hedy'\n {print} 'You are not Hedy'\n```\n" + 6: + story_text: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" + example_code: "```\nname = Hedy\nanswer = 20 + 4\n```\n" + start_code: "name = Hedy\nanswer = 20 + 4\n" in_command: name: "{in}" description: Introducing the in command @@ -914,6 +918,10 @@ adventures: start_code: "name {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n" example_code: "```\nname {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n```\n" story_text: "## If... Else...\nYou have learned to repeat a block of lines of code after a `{repeat}` command.\nNow you can also use indentation to make blocks after a {if} or {else} command.\nCheck out the example code.\n\n### Exercise\nAdd an {else} command to the example code. Make a block of line using indentation. You do this by starting each line with 4 spaces.\n" + 9: + start_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" + story_text: "In this level you can also put an {if} command inside another {if} command.\n" + example_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" quotation_marks: name: "'quotation marks'" description: Introduction quotation marks diff --git a/content/adventures/pt_BR.yaml b/content/adventures/pt_BR.yaml index a48395739da..ebf8807d968 100644 --- a/content/adventures/pt_BR.yaml +++ b/content/adventures/pt_BR.yaml @@ -919,6 +919,10 @@ adventures: example_code_2: "```\nname = {ask} 'What is your name?'\n{if} name == 'Hedy'\n {print} 'You are cool!'\n```\n" story_text_3: "You can also compare if something is *not* equal to something else using `!=` like this:\n" example_code_3: "```\nname = {ask} 'What is your name?'\n{if} name != 'Hedy'\n {print} 'You are not Hedy'\n```\n" + 6: + story_text: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" + example_code: "```\nname = Hedy\nanswer = 20 + 4\n```\n" + start_code: "name = Hedy\nanswer = 20 + 4\n" random_command: name: "{random}" description: introducing at random command @@ -975,6 +979,10 @@ adventures: start_code: "name {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n" example_code: "```\nname {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n```\n" story_text: "## If... Else...\nYou have learned to repeat a block of lines of code after a `{repeat}` command.\nNow you can also use indentation to make blocks after a {if} or {else} command.\nCheck out the example code.\n\n### Exercise\nAdd an {else} command to the example code. Make a block of line using indentation. You do this by starting each line with 4 spaces.\n" + 9: + start_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" + story_text: "In this level you can also put an {if} command inside another {if} command.\n" + example_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" in_command: name: "{in}" description: Introducing the in command diff --git a/content/adventures/pt_PT.yaml b/content/adventures/pt_PT.yaml index fd901bbf6f2..51af0371307 100644 --- a/content/adventures/pt_PT.yaml +++ b/content/adventures/pt_PT.yaml @@ -271,32 +271,32 @@ adventures: example_code: |2 - ``` - animais is coruja, cobra, raposa - print Agora consegue ouvir o barulho de uma animais at random - ``` + ``` + animais is coruja, cobra, raposa + print Agora consegue ouvir o barulho de uma animais at random + ``` story_text_2: | The command `{add}` can also come in handy in your story. For example example_code_2: |2 - {print} He hears a sound - animals {is} 🐿, 🦔, 🦇, 🦉 - animal {is} {ask} What do you think it is? - {add} animal {to_list} animals - {print} it was a animals {at} {random} - ``` + {print} He hears a sound + animals {is} 🐿, 🦔, 🦇, 🦉 + animal {is} {ask} What do you think it is? + {add} animal {to_list} animals + {print} it was a animals {at} {random} + ``` story_text_3: | This is an example of the `{remove}` command in your story example_code_3: |2 - ``` - {print} His backpack got way too heavy. - {print} Inside were a bottle of water, a flashlight and a brick. - bag {is} water, flashlight, brick - dump {is} {ask} Which item should he dump? - {remove} dump {from} bag - ``` + ``` + {print} His backpack got way too heavy. + {print} Inside were a bottle of water, a flashlight and a brick. + bag {is} water, flashlight, brick + dump {is} {ask} Which item should he dump? + {remove} dump {from} bag + ``` start_code: "print 'A tua história será escrita aqui!'" 12: story_text: "In this level you can use the quotation marks to save multiple words in a variable.\n" @@ -750,20 +750,20 @@ adventures: example_code: |2 - You can make a simple restaurant code, like this: - ``` - {print} 'Welcome to Hedys restaurant' - {print} 'Here is our menu:' - {print} 'Our main courses are pizza, lasagne, or spaghetti' - main = {ask} 'Which main course would you like?' - price = 0 - {if} main {is} pizza price = 10 - {if} main {is} lasagne price = 12 - {if} main {is} spaghetti price = 8 - {print} 'You have ordered ' main - {print} 'That will be ' price ' dollars, please' - {print} 'Thank you, enjoy your meal!' - ``` + You can make a simple restaurant code, like this: + ``` + {print} 'Welcome to Hedys restaurant' + {print} 'Here is our menu:' + {print} 'Our main courses are pizza, lasagne, or spaghetti' + main = {ask} 'Which main course would you like?' + price = 0 + {if} main {is} pizza price = 10 + {if} main {is} lasagne price = 12 + {if} main {is} spaghetti price = 8 + {print} 'You have ordered ' main + {print} 'That will be ' price ' dollars, please' + {print} 'Thank you, enjoy your meal!' + ``` start_code: "# place your code here" 7: story_text: | @@ -834,7 +834,7 @@ adventures: ``` story_text_2: |2 - Of course, you could also order for multiple people! + Of course, you could also order for multiple people! example_code_2: | ``` courses = appetizer, main course, dessert @@ -1332,6 +1332,10 @@ adventures: example_code_2: "```\nname = {ask} 'What is your name?'\n{if} name == 'Hedy'\n {print} 'You are cool!'\n```\n" story_text_3: "You can also compare if something is *not* equal to something else using `!=` like this:\n" example_code_3: "```\nname = {ask} 'What is your name?'\n{if} name != 'Hedy'\n {print} 'You are not Hedy'\n```\n" + 6: + story_text: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" + example_code: "```\nname = Hedy\nanswer = 20 + 4\n```\n" + start_code: "name = Hedy\nanswer = 20 + 4\n" ask_command: name: "{ask}" description: Introduction ask command @@ -1490,6 +1494,10 @@ adventures: start_code: "name {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n" example_code: "```\nname {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n```\n" story_text: "## If... Else...\nYou have learned to repeat a block of lines of code after a `{repeat}` command.\nNow you can also use indentation to make blocks after a {if} or {else} command.\nCheck out the example code.\n\n### Exercise\nAdd an {else} command to the example code. Make a block of line using indentation. You do this by starting each line with 4 spaces.\n" + 9: + start_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" + story_text: "In this level you can also put an {if} command inside another {if} command.\n" + example_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" name: "{if} & {else}" description: Introducing the if command in_command: diff --git a/content/adventures/ro.yaml b/content/adventures/ro.yaml index 246c0b3ad13..9bb69a0e834 100644 --- a/content/adventures/ro.yaml +++ b/content/adventures/ro.yaml @@ -852,6 +852,10 @@ adventures: example_code_2: "```\nname = {ask} 'What is your name?'\n{if} name == 'Hedy'\n {print} 'You are cool!'\n```\n" story_text_3: "You can also compare if something is *not* equal to something else using `!=` like this:\n" example_code_3: "```\nname = {ask} 'What is your name?'\n{if} name != 'Hedy'\n {print} 'You are not Hedy'\n```\n" + 6: + story_text: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" + example_code: "```\nname = Hedy\nanswer = 20 + 4\n```\n" + start_code: "name = Hedy\nanswer = 20 + 4\n" random_command: name: "{random}" description: introducing at random command @@ -899,6 +903,10 @@ adventures: start_code: "name {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n" example_code: "```\nname {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n```\n" story_text: "## If... Else...\nYou have learned to repeat a block of lines of code after a `{repeat}` command.\nNow you can also use indentation to make blocks after a {if} or {else} command.\nCheck out the example code.\n\n### Exercise\nAdd an {else} command to the example code. Make a block of line using indentation. You do this by starting each line with 4 spaces.\n" + 9: + start_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" + story_text: "In this level you can also put an {if} command inside another {if} command.\n" + example_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" in_command: name: "{in}" description: Introducing the in command diff --git a/content/adventures/ru.yaml b/content/adventures/ru.yaml index 70a3f968e89..3fe60c8c058 100644 --- a/content/adventures/ru.yaml +++ b/content/adventures/ru.yaml @@ -921,6 +921,10 @@ adventures: example_code_2: "```\nname = {ask} 'What is your name?'\n{if} name == 'Hedy'\n {print} 'You are cool!'\n```\n" story_text_3: "You can also compare if something is *not* equal to something else using `!=` like this:\n" example_code_3: "```\nname = {ask} 'What is your name?'\n{if} name != 'Hedy'\n {print} 'You are not Hedy'\n```\n" + 6: + story_text: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" + example_code: "```\nname = Hedy\nanswer = 20 + 4\n```\n" + start_code: "name = Hedy\nanswer = 20 + 4\n" random_command: name: "{random}" description: introducing at random command @@ -964,6 +968,10 @@ adventures: start_code: "name {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n" example_code: "```\nname {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n```\n" story_text: "## If... Else...\nYou have learned to repeat a block of lines of code after a `{repeat}` command.\nNow you can also use indentation to make blocks after a {if} or {else} command.\nCheck out the example code.\n\n### Exercise\nAdd an {else} command to the example code. Make a block of line using indentation. You do this by starting each line with 4 spaces.\n" + 9: + start_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" + story_text: "In this level you can also put an {if} command inside another {if} command.\n" + example_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" repeat_command: name: "{repeat}" description: repeat command diff --git a/content/adventures/sq.yaml b/content/adventures/sq.yaml index a4411e45565..b2955c16775 100644 --- a/content/adventures/sq.yaml +++ b/content/adventures/sq.yaml @@ -795,6 +795,10 @@ adventures: example_code_2: "```\nname = {ask} 'What is your name?'\n{if} name == 'Hedy'\n {print} 'You are cool!'\n```\n" story_text_3: "You can also compare if something is *not* equal to something else using `!=` like this:\n" example_code_3: "```\nname = {ask} 'What is your name?'\n{if} name != 'Hedy'\n {print} 'You are not Hedy'\n```\n" + 6: + story_text: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" + example_code: "```\nname = Hedy\nanswer = 20 + 4\n```\n" + start_code: "name = Hedy\nanswer = 20 + 4\n" random_command: name: "{random}" description: introducing at random command @@ -842,6 +846,10 @@ adventures: start_code: "name {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n" example_code: "```\nname {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n```\n" story_text: "## If... Else...\nYou have learned to repeat a block of lines of code after a `{repeat}` command.\nNow you can also use indentation to make blocks after a {if} or {else} command.\nCheck out the example code.\n\n### Exercise\nAdd an {else} command to the example code. Make a block of line using indentation. You do this by starting each line with 4 spaces.\n" + 9: + start_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" + story_text: "In this level you can also put an {if} command inside another {if} command.\n" + example_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" in_command: name: "{in}" description: Introducing the in command diff --git a/content/adventures/sr.yaml b/content/adventures/sr.yaml index 8bc93f3e774..6803691381e 100644 --- a/content/adventures/sr.yaml +++ b/content/adventures/sr.yaml @@ -707,6 +707,10 @@ adventures: start_code: "name {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n" example_code: "```\nname {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n```\n" story_text: "## If... Else...\nYou have learned to repeat a block of lines of code after a `{repeat}` command.\nNow you can also use indentation to make blocks after a {if} or {else} command.\nCheck out the example code.\n\n### Exercise\nAdd an {else} command to the example code. Make a block of line using indentation. You do this by starting each line with 4 spaces.\n" + 9: + start_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" + story_text: "In this level you can also put an {if} command inside another {if} command.\n" + example_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" for_command: name: "{for}" description: for command @@ -810,6 +814,10 @@ adventures: example_code_2: "```\nname = {ask} 'What is your name?'\n{if} name == 'Hedy'\n {print} 'You are cool!'\n```\n" story_text_3: "You can also compare if something is *not* equal to something else using `!=` like this:\n" example_code_3: "```\nname = {ask} 'What is your name?'\n{if} name != 'Hedy'\n {print} 'You are not Hedy'\n```\n" + 6: + story_text: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" + example_code: "```\nname = Hedy\nanswer = 20 + 4\n```\n" + start_code: "name = Hedy\nanswer = 20 + 4\n" add_remove_command: name: "{add} {to} & {remove} {from}" description: introducing add to and remove from diff --git a/content/adventures/sv.yaml b/content/adventures/sv.yaml index e11a3ced661..dda66333b42 100644 --- a/content/adventures/sv.yaml +++ b/content/adventures/sv.yaml @@ -738,6 +738,10 @@ adventures: start_code: "namn {is} {ask} 'Vad heter du?'\n{if} namn {is} Hedy\n {print} 'Välkommen Hedy'\n {print} 'Du kan spela på din dator!'\n" example_code: "```\nnamn {is} {ask} 'Vad heter du?'\n{if} namn {is} Hedy\n {print} 'Välkommen Hedy'\n {print} 'Du kan spela på din dator!'\n```\n" story_text: "## Om … Annars …\nDu har lärt dig att upprepa ett block med kodrader efter ett `{repeat}`-kommando.\nNu kan du också använda indrag för att skapa block efter ett {if}- eller {else}-kommando.\nKolla in exempelkoden.\n\n### Övning\nLägg till ett {else}-kommando till exempelkoden. Gör ett kodblock med indrag. Det gör du genom att börja varje rad med fyra mellanslag.\n" + 9: + start_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" + story_text: "In this level you can also put an {if} command inside another {if} command.\n" + example_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" quotation_marks: levels: 12: @@ -852,6 +856,10 @@ adventures: example_code_2: "```\nnamn = {ask} 'Vad heter du?'\n{if} namn == 'Hedy'\n {print} 'Du är cool!'\n```\n" story_text_3: "Du kan också jämföra om något *inte* är lika med något annat med hjälp av `!=` så här:\n" example_code_3: "```\nnamn = {ask} 'Vad heter du?'\n{if} namn != 'Hedy'\n {print} 'Du är inte Hedy'\n```\n" + 6: + story_text: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" + example_code: "```\nname = Hedy\nanswer = 20 + 4\n```\n" + start_code: "name = Hedy\nanswer = 20 + 4\n" add_remove_command: name: "{add} {to} & {remove} {from}" description: introduktion till lägg till och ta bort diff --git a/content/adventures/sw.yaml b/content/adventures/sw.yaml index f7ebd030ce0..6763142765d 100644 --- a/content/adventures/sw.yaml +++ b/content/adventures/sw.yaml @@ -165,12 +165,12 @@ adventures: example_code_2: |2 - {print} He hears a sound - animals {is} 🐿, 🦔, 🦇, 🦉 - animal {is} {ask} What do you think it is? - {add} animal {to_list} animals - {print} it was a animals {at} {random} - ``` + {print} He hears a sound + animals {is} 🐿, 🦔, 🦇, 🦉 + animal {is} {ask} What do you think it is? + {add} animal {to_list} animals + {print} it was a animals {at} {random} + ``` story_text_3: | This is an example of the `{remove}` command in your story example_code_3: | @@ -783,6 +783,10 @@ adventures: story_text_2: "### Exercise\nTime to make your own variables!\nIn the example code we made an example of the variable `favorite_animals`. In line 1 the variable is set, and in line 2 we haved used the variable in a print command.\nFirstly, finish our example by filling in your favorite animal in the blanks. Then make at least 3 of these codes yourself. Pick a variable, and set the variable with the {is} command. Then use it with a {print} command, just like we did.\n" example_code_2: "```\nfavorite_animals is _\n{print} I like favorite_animals\n```\n" start_code: "name {is} Hedy\nage {is} 15\n{print} name is age years old" + 6: + story_text: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" + example_code: "```\nname = Hedy\nanswer = 20 + 4\n```\n" + start_code: "name = Hedy\nanswer = 20 + 4\n" description: introducing is command default_save_name: is_command sleep_command: @@ -893,6 +897,10 @@ adventures: start_code: "name {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n" example_code: "```\nname {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n```\n" story_text: "## If... Else...\nYou have learned to repeat a block of lines of code after a `{repeat}` command.\nNow you can also use indentation to make blocks after a {if} or {else} command.\nCheck out the example code.\n\n### Exercise\nAdd an {else} command to the example code. Make a block of line using indentation. You do this by starting each line with 4 spaces.\n" + 9: + start_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" + story_text: "In this level you can also put an {if} command inside another {if} command.\n" + example_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" in_command: name: "{in}" description: Introducing the in command diff --git a/content/adventures/te.yaml b/content/adventures/te.yaml index 5494fe15123..1e7e6bcf066 100644 --- a/content/adventures/te.yaml +++ b/content/adventures/te.yaml @@ -700,6 +700,10 @@ adventures: story_text_2: "### Exercise\nTime to make your own variables!\nIn the example code we made an example of the variable `favorite_animals`. In line 1 the variable is set, and in line 2 we haved used the variable in a print command.\nFirstly, finish our example by filling in your favorite animal in the blanks. Then make at least 3 of these codes yourself. Pick a variable, and set the variable with the {is} command. Then use it with a {print} command, just like we did.\n" example_code_2: "```\nfavorite_animals is _\n{print} I like favorite_animals\n```\n" start_code: "name {is} Hedy\nage {is} 15\n{print} name is age years old" + 6: + story_text: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" + example_code: "```\nname = Hedy\nanswer = 20 + 4\n```\n" + start_code: "name = Hedy\nanswer = 20 + 4\n" description: introducing is command default_save_name: is_command sleep_command: @@ -832,6 +836,10 @@ adventures: start_code: "name {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n" example_code: "```\nname {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n```\n" story_text: "## If... Else...\nYou have learned to repeat a block of lines of code after a `{repeat}` command.\nNow you can also use indentation to make blocks after a {if} or {else} command.\nCheck out the example code.\n\n### Exercise\nAdd an {else} command to the example code. Make a block of line using indentation. You do this by starting each line with 4 spaces.\n" + 9: + start_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" + story_text: "In this level you can also put an {if} command inside another {if} command.\n" + example_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" in_command: name: "{in}" description: Introducing the in command diff --git a/content/adventures/th.yaml b/content/adventures/th.yaml index cbfcb9527b1..388c06cf9d6 100644 --- a/content/adventures/th.yaml +++ b/content/adventures/th.yaml @@ -718,6 +718,10 @@ adventures: example_code_2: "```\nname = {ask} 'What is your name?'\n{if} name == 'Hedy'\n {print} 'You are cool!'\n```\n" story_text_3: "You can also compare if something is *not* equal to something else using `!=` like this:\n" example_code_3: "```\nname = {ask} 'What is your name?'\n{if} name != 'Hedy'\n {print} 'You are not Hedy'\n```\n" + 6: + story_text: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" + example_code: "```\nname = Hedy\nanswer = 20 + 4\n```\n" + start_code: "name = Hedy\nanswer = 20 + 4\n" name: "{is}" description: introducing is command default_save_name: is_command @@ -828,6 +832,10 @@ adventures: start_code: "name {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n" example_code: "```\nname {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n```\n" story_text: "## If... Else...\nYou have learned to repeat a block of lines of code after a `{repeat}` command.\nNow you can also use indentation to make blocks after a {if} or {else} command.\nCheck out the example code.\n\n### Exercise\nAdd an {else} command to the example code. Make a block of line using indentation. You do this by starting each line with 4 spaces.\n" + 9: + start_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" + story_text: "In this level you can also put an {if} command inside another {if} command.\n" + example_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" quotation_marks: name: "'quotation marks'" description: Introduction quotation marks diff --git a/content/adventures/tl.yaml b/content/adventures/tl.yaml index bfc3aafb38d..e9ef709d30a 100644 --- a/content/adventures/tl.yaml +++ b/content/adventures/tl.yaml @@ -809,6 +809,10 @@ adventures: example_code_2: "```\nname = {ask} 'What is your name?'\n{if} name == 'Hedy'\n {print} 'You are cool!'\n```\n" story_text_3: "You can also compare if something is *not* equal to something else using `!=` like this:\n" example_code_3: "```\nname = {ask} 'What is your name?'\n{if} name != 'Hedy'\n {print} 'You are not Hedy'\n```\n" + 6: + story_text: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" + example_code: "```\nname = Hedy\nanswer = 20 + 4\n```\n" + start_code: "name = Hedy\nanswer = 20 + 4\n" add_remove_command: name: "{add} {to} & {remove} {from}" description: introducing add to and remove from @@ -848,6 +852,10 @@ adventures: start_code: "name {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n" example_code: "```\nname {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n```\n" story_text: "## If... Else...\nYou have learned to repeat a block of lines of code after a `{repeat}` command.\nNow you can also use indentation to make blocks after a {if} or {else} command.\nCheck out the example code.\n\n### Exercise\nAdd an {else} command to the example code. Make a block of line using indentation. You do this by starting each line with 4 spaces.\n" + 9: + start_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" + story_text: "In this level you can also put an {if} command inside another {if} command.\n" + example_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" repeat_command_2: name: "{repeat} 2" description: repeat command 2 diff --git a/content/adventures/tn.yaml b/content/adventures/tn.yaml index be9a888560c..01a2f349735 100644 --- a/content/adventures/tn.yaml +++ b/content/adventures/tn.yaml @@ -678,6 +678,10 @@ adventures: start_code: "name {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n" example_code: "```\nname {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n```\n" story_text: "## If... Else...\nYou have learned to repeat a block of lines of code after a `{repeat}` command.\nNow you can also use indentation to make blocks after a {if} or {else} command.\nCheck out the example code.\n\n### Exercise\nAdd an {else} command to the example code. Make a block of line using indentation. You do this by starting each line with 4 spaces.\n" + 9: + start_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" + story_text: "In this level you can also put an {if} command inside another {if} command.\n" + example_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" name: "{if} & {else}" description: Introducing the if command default_save_name: if_command @@ -784,6 +788,10 @@ adventures: example_code_2: "```\nname = {ask} 'What is your name?'\n{if} name == 'Hedy'\n {print} 'You are cool!'\n```\n" story_text_3: "You can also compare if something is *not* equal to something else using `!=` like this:\n" example_code_3: "```\nname = {ask} 'What is your name?'\n{if} name != 'Hedy'\n {print} 'You are not Hedy'\n```\n" + 6: + story_text: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" + example_code: "```\nname = Hedy\nanswer = 20 + 4\n```\n" + start_code: "name = Hedy\nanswer = 20 + 4\n" random_command: name: "{random}" description: introducing at random command diff --git a/content/adventures/tr.yaml b/content/adventures/tr.yaml index 5c28c899cc4..18b4ae1005c 100644 --- a/content/adventures/tr.yaml +++ b/content/adventures/tr.yaml @@ -2803,6 +2803,10 @@ adventures: example_code_2: "```\nisim = {ask} 'Senin adın ne?'\n{if} isim == 'Hedy'\n {print} 'Çok havalısın!'\n```\n" story_text_3: "Bir şeyin başka bir şeye eşit *olmadığını* `!=` kullanarak karşılaştırabilirsiniz:\n" example_code_3: "```\nisim = {ask} 'Senin adın ne?'\n{if} isim != 'Hedy'\n {print} 'Sen Hedy değilsin.'\n```\n" + 6: + story_text: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" + example_code: "```\nname = Hedy\nanswer = 20 + 4\n```\n" + start_code: "name = Hedy\nanswer = 20 + 4\n" random_command: name: "{random}" description: şurada rastgele komutuna giriş @@ -2859,6 +2863,10 @@ adventures: start_code: "isim {is} {ask} 'Senin adın ne?'\n{if} isim {is} Hedy\n {print} 'Hoşgeldin Hedy'\n {print} 'Bilgisayarında oynayabilirsin!'\n" example_code: "```\nisim {is} {ask} 'Senin adın ne?'\n{if} isim {is} Hedy\n {print} 'Hoşgeldin Hedy'\n {print} 'Bilgisayarında oynayabilirsin!'\n```\n" story_text: "## eğer... değilse...\nBir `{repeat}` komutundan sonra bir kod satır bloğunu tekrarlamayı öğrendiniz.\nŞimdi artık bir {if} veya {else} komutundan sonra bloklar oluşturmak için girinti de kullanabilirsiniz.\nÖrnek koda göz atın.\n\n### Alıştırma\nÖrnek koda bir {else} komutu ekleyin. Girinti kullanarak bir satır bloğu oluşturun. Bunu her satırı 4 boşlukla başlatarak yaparsınız.\n" + 9: + start_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" + story_text: "In this level you can also put an {if} command inside another {if} command.\n" + example_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" in_command: name: "{in}" description: içinde komutuna giriş diff --git a/content/adventures/uk.yaml b/content/adventures/uk.yaml index 982e05b02bf..187367dd3d4 100644 --- a/content/adventures/uk.yaml +++ b/content/adventures/uk.yaml @@ -840,6 +840,10 @@ adventures: example_code_2: "```\nname = {ask} 'What is your name?'\n{if} name == 'Hedy'\n {print} 'You are cool!'\n```\n" story_text_3: "You can also compare if something is *not* equal to something else using `!=` like this:\n" example_code_3: "```\nname = {ask} 'What is your name?'\n{if} name != 'Hedy'\n {print} 'You are not Hedy'\n```\n" + 6: + story_text: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" + example_code: "```\nname = Hedy\nanswer = 20 + 4\n```\n" + start_code: "name = Hedy\nanswer = 20 + 4\n" random_command: name: "{random}" description: introducing at random command @@ -883,6 +887,10 @@ adventures: start_code: "name {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n" example_code: "```\nname {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n```\n" story_text: "## If... Else...\nYou have learned to repeat a block of lines of code after a `{repeat}` command.\nNow you can also use indentation to make blocks after a {if} or {else} command.\nCheck out the example code.\n\n### Exercise\nAdd an {else} command to the example code. Make a block of line using indentation. You do this by starting each line with 4 spaces.\n" + 9: + start_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" + story_text: "In this level you can also put an {if} command inside another {if} command.\n" + example_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" in_command: name: "{in}" description: Introducing the in command diff --git a/content/adventures/ur.yaml b/content/adventures/ur.yaml index 6f02454c67a..6f1f168e670 100644 --- a/content/adventures/ur.yaml +++ b/content/adventures/ur.yaml @@ -754,6 +754,10 @@ adventures: example_code_2: "```\nname = {ask} 'What is your name?'\n{if} name == 'Hedy'\n {print} 'You are cool!'\n```\n" story_text_3: "You can also compare if something is *not* equal to something else using `!=` like this:\n" example_code_3: "```\nname = {ask} 'What is your name?'\n{if} name != 'Hedy'\n {print} 'You are not Hedy'\n```\n" + 6: + story_text: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" + example_code: "```\nname = Hedy\nanswer = 20 + 4\n```\n" + start_code: "name = Hedy\nanswer = 20 + 4\n" random_command: name: "{random}" description: introducing at random command @@ -797,6 +801,10 @@ adventures: start_code: "name {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n" example_code: "```\nname {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n```\n" story_text: "## If... Else...\nYou have learned to repeat a block of lines of code after a `{repeat}` command.\nNow you can also use indentation to make blocks after a {if} or {else} command.\nCheck out the example code.\n\n### Exercise\nAdd an {else} command to the example code. Make a block of line using indentation. You do this by starting each line with 4 spaces.\n" + 9: + start_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" + story_text: "In this level you can also put an {if} command inside another {if} command.\n" + example_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" quotation_marks: name: "'quotation marks'" description: Introduction quotation marks diff --git a/content/adventures/vi.yaml b/content/adventures/vi.yaml index 803d44d108a..47f69255ba6 100644 --- a/content/adventures/vi.yaml +++ b/content/adventures/vi.yaml @@ -786,6 +786,10 @@ adventures: example_code_2: "```\nname = {ask} 'What is your name?'\n{if} name == 'Hedy'\n {print} 'You are cool!'\n```\n" story_text_3: "You can also compare if something is *not* equal to something else using `!=` like this:\n" example_code_3: "```\nname = {ask} 'What is your name?'\n{if} name != 'Hedy'\n {print} 'You are not Hedy'\n```\n" + 6: + story_text: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" + example_code: "```\nname = Hedy\nanswer = 20 + 4\n```\n" + start_code: "name = Hedy\nanswer = 20 + 4\n" random_command: name: "{random}" description: introducing at random command @@ -833,6 +837,10 @@ adventures: start_code: "name {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n" example_code: "```\nname {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n```\n" story_text: "## If... Else...\nYou have learned to repeat a block of lines of code after a `{repeat}` command.\nNow you can also use indentation to make blocks after a {if} or {else} command.\nCheck out the example code.\n\n### Exercise\nAdd an {else} command to the example code. Make a block of line using indentation. You do this by starting each line with 4 spaces.\n" + 9: + start_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" + story_text: "In this level you can also put an {if} command inside another {if} command.\n" + example_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" in_command: name: "{in}" description: Introducing the in command diff --git a/content/adventures/zh_Hans.yaml b/content/adventures/zh_Hans.yaml index 88d3d14867c..cd5e1880a28 100644 --- a/content/adventures/zh_Hans.yaml +++ b/content/adventures/zh_Hans.yaml @@ -604,20 +604,20 @@ adventures: example_code: |2 - 你可以写一段简单的餐厅代码,像这样: - ``` - {print} '欢迎来到海蒂餐厅' - {print} '这是我们的菜单:' - {print} '我们的主菜有披萨、千层面、意面' - 主菜 = {ask} '您想要哪道主菜?' - 价格 = 0 - {if} 主菜 {is} 披萨 价格 = 10 - {if} 主菜 {is} 千层面 价格 = 12 - {if} 主菜 {is} 意面 价格 = 8 - {print} '您点了' 主菜 - {print} '请付' 价格 '元' - {print} '谢谢,祝您用餐愉快!' - ``` + 你可以写一段简单的餐厅代码,像这样: + ``` + {print} '欢迎来到海蒂餐厅' + {print} '这是我们的菜单:' + {print} '我们的主菜有披萨、千层面、意面' + 主菜 = {ask} '您想要哪道主菜?' + 价格 = 0 + {if} 主菜 {is} 披萨 价格 = 10 + {if} 主菜 {is} 千层面 价格 = 12 + {if} 主菜 {is} 意面 价格 = 8 + {print} '您点了' 主菜 + {print} '请付' 价格 '元' + {print} '谢谢,祝您用餐愉快!' + ``` start_code: "# 在这里写你的代码" 7: story_text: | @@ -823,16 +823,16 @@ adventures: 在这一级,你可以用变量和`{at} {random}`命令来真正让海蒂为你选择一个答案。比如看看这段代码: example_code: |2 - 在这个例子里,玩家可以向海蒂{ask}一个是非题,然后海蒂会任意选择一个答案。 - ``` - {print} 我是海蒂半仙! - 问题 {is} {ask} 你想算什么? - {print} 你想算:问题 - 回答 {is} 是, 否, 有可能 - {print} 让我算一卦…… - {sleep} 2 - {print} 回答 {at} {random} - ``` + 在这个例子里,玩家可以向海蒂{ask}一个是非题,然后海蒂会任意选择一个答案。 + ``` + {print} 我是海蒂半仙! + 问题 {is} {ask} 你想算什么? + {print} 你想算:问题 + 回答 {is} 是, 否, 有可能 + {print} 让我算一卦…… + {sleep} 2 + {print} 回答 {at} {random} + ``` story_text_2: | ### 练习 现在海蒂只能回答是、否和有可能。你能否给海蒂更多回答选项,比如“肯定”或者“换个问题”。 @@ -1480,6 +1480,10 @@ adventures: example_code_2: "```\nname = {ask} 'What is your name?'\n{if} name == 'Hedy'\n {print} 'You are cool!'\n```\n" story_text_3: "You can also compare if something is *not* equal to something else using `!=` like this:\n" example_code_3: "```\nname = {ask} 'What is your name?'\n{if} name != 'Hedy'\n {print} 'You are not Hedy'\n```\n" + 6: + story_text: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" + example_code: "```\nname = Hedy\nanswer = 20 + 4\n```\n" + start_code: "name = Hedy\nanswer = 20 + 4\n" add_remove_command: name: "{add} {to} & {remove} {from}" description: introducing add to and remove from @@ -1519,6 +1523,10 @@ adventures: start_code: "name {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n" example_code: "```\nname {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n```\n" story_text: "## If... Else...\nYou have learned to repeat a block of lines of code after a `{repeat}` command.\nNow you can also use indentation to make blocks after a {if} or {else} command.\nCheck out the example code.\n\n### Exercise\nAdd an {else} command to the example code. Make a block of line using indentation. You do this by starting each line with 4 spaces.\n" + 9: + start_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" + story_text: "In this level you can also put an {if} command inside another {if} command.\n" + example_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" in_command: name: "{in}" description: Introducing the in command diff --git a/content/adventures/zh_Hant.yaml b/content/adventures/zh_Hant.yaml index 31fa2a43115..5f9c54fc748 100644 --- a/content/adventures/zh_Hant.yaml +++ b/content/adventures/zh_Hant.yaml @@ -718,6 +718,10 @@ adventures: story_text_2: "### Exercise\nTime to make your own variables!\nIn the example code we made an example of the variable `favorite_animals`. In line 1 the variable is set, and in line 2 we haved used the variable in a print command.\nFirstly, finish our example by filling in your favorite animal in the blanks. Then make at least 3 of these codes yourself. Pick a variable, and set the variable with the {is} command. Then use it with a {print} command, just like we did.\n" example_code_2: "```\nfavorite_animals is _\n{print} I like favorite_animals\n```\n" start_code: "name {is} Hedy\nage {is} 15\n{print} name is age years old" + 6: + story_text: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" + example_code: "```\nname = Hedy\nanswer = 20 + 4\n```\n" + start_code: "name = Hedy\nanswer = 20 + 4\n" name: "{is}" description: introducing is command default_save_name: is_command @@ -744,6 +748,10 @@ adventures: start_code: "name {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n" example_code: "```\nname {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n```\n" story_text: "## If... Else...\nYou have learned to repeat a block of lines of code after a `{repeat}` command.\nNow you can also use indentation to make blocks after a {if} or {else} command.\nCheck out the example code.\n\n### Exercise\nAdd an {else} command to the example code. Make a block of line using indentation. You do this by starting each line with 4 spaces.\n" + 9: + start_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" + story_text: "In this level you can also put an {if} command inside another {if} command.\n" + example_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" name: "{if} & {else}" description: Introducing the if command default_save_name: if_command diff --git a/content/slides/tr.yaml b/content/slides/tr.yaml index f690fab0e5d..7fc25c12ae6 100644 --- a/content/slides/tr.yaml +++ b/content/slides/tr.yaml @@ -119,6 +119,9 @@ levels: header: İçinden kaldırmak text: "`{add}` `{to}` komutunun tersi `{remove}` `{from}` komutudur.\nBu komut listeden bir öğeyi kaldırır.\n" editor: "\n" + 9: + text: "Enjoy the adventures in level 3!\n" + header: Let's get to work! 4: 1: header: 4. seviyeye hoş geldiniz From fecd5af370f8142d59155176a3dca6fe33db380c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Y=C4=B1lmaz=20Durmaz?= Date: Sun, 1 Oct 2023 09:42:05 +0200 Subject: [PATCH 07/15] Translated using Weblate (Catalan) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently translated at 68.5% (375 of 547 strings) Translated using Weblate (Turkish) Currently translated at 100.0% (547 of 547 strings) Translated using Weblate (Kurdish (Northern)) Currently translated at 1.6% (32 of 1926 strings) Translated using Weblate (Serbian) Currently translated at 1.6% (32 of 1926 strings) Translated using Weblate (Danish) Currently translated at 1.6% (32 of 1926 strings) Translated using Weblate (Romanian) Currently translated at 1.6% (32 of 1926 strings) Translated using Weblate (Catalan) Currently translated at 4.1% (80 of 1926 strings) Translated using Weblate (Chinese (Traditional)) Currently translated at 1.9% (37 of 1926 strings) Translated using Weblate (Welsh) Currently translated at 1.9% (37 of 1926 strings) Translated using Weblate (Telugu) Currently translated at 1.9% (37 of 1926 strings) Translated using Weblate (Finnish) Currently translated at 1.9% (37 of 1926 strings) Translated using Weblate (Tagalog) Currently translated at 1.9% (37 of 1926 strings) Translated using Weblate (Vietnamese) Currently translated at 2.5% (50 of 1926 strings) Translated using Weblate (Punjabi (Pakistan)) Currently translated at 1.9% (37 of 1926 strings) Translated using Weblate (Ukrainian) Currently translated at 7.3% (141 of 1926 strings) Translated using Weblate (Albanian) Currently translated at 4.6% (89 of 1926 strings) Translated using Weblate (Thai) Currently translated at 4.6% (89 of 1926 strings) Translated using Weblate (Urdu) Currently translated at 4.8% (94 of 1926 strings) Translated using Weblate (Tswana) Currently translated at 4.6% (90 of 1926 strings) Translated using Weblate (Korean) Currently translated at 66.8% (1287 of 1926 strings) Translated using Weblate (Swedish) Currently translated at 90.9% (1751 of 1926 strings) Translated using Weblate (Hebrew) Currently translated at 4.6% (90 of 1926 strings) Translated using Weblate (Japanese) Currently translated at 6.0% (117 of 1926 strings) Translated using Weblate (Estonian) Currently translated at 7.7% (150 of 1926 strings) Translated using Weblate (Esperanto) Currently translated at 30.4% (587 of 1926 strings) Translated using Weblate (Russian) Currently translated at 30.4% (586 of 1926 strings) Translated using Weblate (Persian) Currently translated at 19.5% (377 of 1926 strings) Translated using Weblate (Polish) Currently translated at 31.0% (598 of 1926 strings) Translated using Weblate (Norwegian Bokmål) Currently translated at 36.2% (698 of 1926 strings) Translated using Weblate (Turkish) Currently translated at 100.0% (1926 of 1926 strings) Translated using Weblate (Chinese (Simplified)) Currently translated at 32.1% (619 of 1926 strings) Translated using Weblate (Portuguese (Portugal)) Currently translated at 21.0% (405 of 1926 strings) Translated using Weblate (Frisian) Currently translated at 19.5% (377 of 1926 strings) Translated using Weblate (Indonesian) Currently translated at 19.7% (381 of 1926 strings) Translated using Weblate (Arabic) Currently translated at 35.8% (691 of 1926 strings) Translated using Weblate (Italian) Currently translated at 20.0% (386 of 1926 strings) Translated using Weblate (Swahili) Currently translated at 19.5% (377 of 1926 strings) Translated using Weblate (Hindi) Currently translated at 19.5% (377 of 1926 strings) Translated using Weblate (Hungarian) Currently translated at 19.7% (380 of 1926 strings) Translated using Weblate (Czech) Currently translated at 24.9% (480 of 1926 strings) Translated using Weblate (Bulgarian) Currently translated at 19.7% (380 of 1926 strings) Translated using Weblate (Bengali) Currently translated at 19.5% (377 of 1926 strings) Translated using Weblate (Greek) Currently translated at 19.5% (377 of 1926 strings) Translated using Weblate (German) Currently translated at 84.4% (1626 of 1926 strings) Translated using Weblate (Portuguese (Brazil)) Currently translated at 23.2% (447 of 1926 strings) Translated using Weblate (Chinese (Simplified)) Currently translated at 53.7% (373 of 694 strings) Translated using Weblate (Frisian) Currently translated at 25.9% (180 of 694 strings) Translated using Weblate (Italian) Currently translated at 35.1% (244 of 694 strings) Translated using Weblate (Swahili) Currently translated at 25.7% (179 of 694 strings) Translated using Weblate (Hindi) Currently translated at 27.8% (193 of 694 strings) Translated using Weblate (Bengali) Currently translated at 25.7% (179 of 694 strings) Translated using Weblate (Dutch) Currently translated at 82.0% (1581 of 1926 strings) Translated using Weblate (French) Currently translated at 54.7% (1055 of 1926 strings) Translated using Weblate (Portuguese (Portugal)) Currently translated at 30.5% (212 of 694 strings) Translated using Weblate (Hungarian) Currently translated at 31.7% (220 of 694 strings) Translated using Weblate (Greek) Currently translated at 30.1% (209 of 694 strings) Translated using Weblate (English) Currently translated at 99.8% (546 of 547 strings) Translated using Weblate (English) Currently translated at 100.0% (1926 of 1926 strings) Translated using Weblate (Turkish) Currently translated at 100.0% (694 of 694 strings) Translated using Weblate (Turkish) Currently translated at 98.3% (1894 of 1926 strings) Translated using Weblate (English) Currently translated at 100.0% (1926 of 1926 strings) Translated using Weblate (English) Currently translated at 100.0% (694 of 694 strings) Translated using Weblate (Turkish) Currently translated at 100.0% (297 of 297 strings) Co-authored-by: Yılmaz Durmaz Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/bn/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/el/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/en/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/fy/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/hi/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/hu/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/it/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/pt_PT/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/sw/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/tr/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/zh_Hans/ Translate-URL: https://hosted.weblate.org/projects/hedy/quizzes/ar/ Translate-URL: https://hosted.weblate.org/projects/hedy/quizzes/bg/ Translate-URL: https://hosted.weblate.org/projects/hedy/quizzes/bn/ Translate-URL: https://hosted.weblate.org/projects/hedy/quizzes/ca/ Translate-URL: https://hosted.weblate.org/projects/hedy/quizzes/cs/ Translate-URL: https://hosted.weblate.org/projects/hedy/quizzes/cy/ Translate-URL: https://hosted.weblate.org/projects/hedy/quizzes/da/ Translate-URL: https://hosted.weblate.org/projects/hedy/quizzes/de/ Translate-URL: https://hosted.weblate.org/projects/hedy/quizzes/el/ Translate-URL: https://hosted.weblate.org/projects/hedy/quizzes/en/ Translate-URL: https://hosted.weblate.org/projects/hedy/quizzes/eo/ Translate-URL: https://hosted.weblate.org/projects/hedy/quizzes/et/ Translate-URL: https://hosted.weblate.org/projects/hedy/quizzes/fa/ Translate-URL: https://hosted.weblate.org/projects/hedy/quizzes/fi/ Translate-URL: https://hosted.weblate.org/projects/hedy/quizzes/fr/ Translate-URL: https://hosted.weblate.org/projects/hedy/quizzes/fy/ Translate-URL: https://hosted.weblate.org/projects/hedy/quizzes/he/ Translate-URL: https://hosted.weblate.org/projects/hedy/quizzes/hi/ Translate-URL: https://hosted.weblate.org/projects/hedy/quizzes/hu/ Translate-URL: https://hosted.weblate.org/projects/hedy/quizzes/id/ Translate-URL: https://hosted.weblate.org/projects/hedy/quizzes/it/ Translate-URL: https://hosted.weblate.org/projects/hedy/quizzes/ja/ Translate-URL: https://hosted.weblate.org/projects/hedy/quizzes/kmr/ Translate-URL: https://hosted.weblate.org/projects/hedy/quizzes/ko/ Translate-URL: https://hosted.weblate.org/projects/hedy/quizzes/nb_NO/ Translate-URL: https://hosted.weblate.org/projects/hedy/quizzes/nl/ Translate-URL: https://hosted.weblate.org/projects/hedy/quizzes/pa_PK/ Translate-URL: https://hosted.weblate.org/projects/hedy/quizzes/pl/ Translate-URL: https://hosted.weblate.org/projects/hedy/quizzes/pt_BR/ Translate-URL: https://hosted.weblate.org/projects/hedy/quizzes/pt_PT/ Translate-URL: https://hosted.weblate.org/projects/hedy/quizzes/ro/ Translate-URL: https://hosted.weblate.org/projects/hedy/quizzes/ru/ Translate-URL: https://hosted.weblate.org/projects/hedy/quizzes/sq/ Translate-URL: https://hosted.weblate.org/projects/hedy/quizzes/sr/ Translate-URL: https://hosted.weblate.org/projects/hedy/quizzes/sv/ Translate-URL: https://hosted.weblate.org/projects/hedy/quizzes/sw/ Translate-URL: https://hosted.weblate.org/projects/hedy/quizzes/te/ Translate-URL: https://hosted.weblate.org/projects/hedy/quizzes/th/ Translate-URL: https://hosted.weblate.org/projects/hedy/quizzes/tl/ Translate-URL: https://hosted.weblate.org/projects/hedy/quizzes/tn/ Translate-URL: https://hosted.weblate.org/projects/hedy/quizzes/tr/ Translate-URL: https://hosted.weblate.org/projects/hedy/quizzes/uk/ Translate-URL: https://hosted.weblate.org/projects/hedy/quizzes/ur/ Translate-URL: https://hosted.weblate.org/projects/hedy/quizzes/vi/ Translate-URL: https://hosted.weblate.org/projects/hedy/quizzes/zh_Hans/ Translate-URL: https://hosted.weblate.org/projects/hedy/quizzes/zh_Hant/ Translate-URL: https://hosted.weblate.org/projects/hedy/slides/tr/ Translate-URL: https://hosted.weblate.org/projects/hedy/web-texts/ca/ Translate-URL: https://hosted.weblate.org/projects/hedy/web-texts/en/ Translate-URL: https://hosted.weblate.org/projects/hedy/web-texts/tr/ Translation: Hedy/Adventures Translation: Hedy/Quizzes Translation: Hedy/Texts Translation: Hedy/slides --- content/adventures/bn.yaml | 74 +-- content/adventures/el.yaml | 59 +- content/adventures/en.yaml | 52 +- content/adventures/fy.yaml | 16 +- content/adventures/hi.yaml | 52 +- content/adventures/hu.yaml | 244 ++++--- content/adventures/it.yaml | 74 +-- content/adventures/pt_PT.yaml | 83 ++- content/adventures/sw.yaml | 16 +- content/adventures/tr.yaml | 56 +- content/adventures/zh_Hans.yaml | 54 +- content/quizzes/ar.yaml | 2 +- content/quizzes/bg.yaml | 2 +- content/quizzes/bn.yaml | 2 +- content/quizzes/ca.yaml | 2 +- content/quizzes/cs.yaml | 2 +- content/quizzes/cy.yaml | 2 +- content/quizzes/da.yaml | 2 +- content/quizzes/de.yaml | 2 +- content/quizzes/el.yaml | 2 +- content/quizzes/en.yaml | 80 +-- content/quizzes/eo.yaml | 2 +- content/quizzes/et.yaml | 2 +- content/quizzes/fa.yaml | 2 +- content/quizzes/fi.yaml | 2 +- content/quizzes/fr.yaml | 2 +- content/quizzes/fy.yaml | 2 +- content/quizzes/he.yaml | 2 +- content/quizzes/hi.yaml | 2 +- content/quizzes/hu.yaml | 2 +- content/quizzes/id.yaml | 2 +- content/quizzes/it.yaml | 2 +- content/quizzes/ja.yaml | 2 +- content/quizzes/kmr.yaml | 2 +- content/quizzes/ko.yaml | 2 +- content/quizzes/nb_NO.yaml | 2 +- content/quizzes/nl.yaml | 2 +- content/quizzes/pa_PK.yaml | 2 +- content/quizzes/pl.yaml | 2 +- content/quizzes/pt_BR.yaml | 2 +- content/quizzes/pt_PT.yaml | 2 +- content/quizzes/ro.yaml | 2 +- content/quizzes/ru.yaml | 2 +- content/quizzes/sq.yaml | 2 +- content/quizzes/sr.yaml | 2 +- content/quizzes/sv.yaml | 2 +- content/quizzes/sw.yaml | 2 +- content/quizzes/te.yaml | 2 +- content/quizzes/th.yaml | 2 +- content/quizzes/tl.yaml | 2 +- content/quizzes/tn.yaml | 2 +- content/quizzes/tr.yaml | 834 ++++++++++++------------ content/quizzes/uk.yaml | 2 +- content/quizzes/ur.yaml | 2 +- content/quizzes/vi.yaml | 2 +- content/quizzes/zh_Hans.yaml | 2 +- content/quizzes/zh_Hant.yaml | 2 +- content/slides/tr.yaml | 4 +- translations/ca/LC_MESSAGES/messages.po | 5 +- translations/en/LC_MESSAGES/messages.po | 6 +- translations/tr/LC_MESSAGES/messages.po | 7 +- 61 files changed, 890 insertions(+), 914 deletions(-) diff --git a/content/adventures/bn.yaml b/content/adventures/bn.yaml index d32cccfcb69..3cdf1a79cb7 100644 --- a/content/adventures/bn.yaml +++ b/content/adventures/bn.yaml @@ -947,9 +947,8 @@ adventures: {print} 'those are' points ' point' ``` Can you make the code so that you get the total score for 8 dice? To do that, you have to cut and paste some lines of the code. - example_code_2: |2 - - Did you manage to calculate the score for 8 dice? That required a lot of cutting and pasting, right? We are going to make that easier in level 7! + example_code_2: | + Did you manage to calculate the score for 8 dice? That required a lot of cutting and pasting, right? We are going to make that easier in level 7! start_code: "{print} 'What will the die indicate this time?'" 7: story_text: | @@ -1022,11 +1021,11 @@ adventures: ``` start_code: "# place your code here" 3: - story_text: |2 + story_text: | + You can use the `{at} {random}` command to let the computer pick rock, paper or scissors! - In this level we can enter lists and choose things from them. - You first make a list with `{is}`. Then you can let the computer choose something from the list with `{at} {random}`. - For example, you can let the computer pick from rock, paper and scissors. + ### Exercise + Finish the code by using the `{at} {random}` command. example_code: | ``` @@ -1381,22 +1380,21 @@ adventures: story_text: | In this level you can use maths to calculate the total price of your customer's order, which can make your virtual restaurant more realistic. - example_code: |2 - - You can make a simple restaurant code, like this: - ``` - {print} 'Welcome to Hedys restaurant' - {print} 'Here is our menu:' - {print} 'Our main courses are pizza, lasagne, or spaghetti' - main = {ask} 'Which main course would you like?' - price = 0 - {if} main {is} pizza price = 10 - {if} main {is} lasagne price = 12 - {if} main {is} spaghetti price = 8 - {print} 'You have ordered ' main - {print} 'That will be ' price ' dollars, please' - {print} 'Thank you, enjoy your meal!' - ``` + example_code: | + You can make a simple restaurant code, like this: + ``` + {print} 'Welcome to Restaurant Chez Hedy' + {print} 'Here is our menu:' + {print} 'Our main courses are pizza, lasagne, or spaghetti' + main = {ask} 'Which main course would you like?' + price = 0 + {if} main {is} pizza price = 10 + {if} main {is} lasagne price = 12 + {if} main {is} spaghetti price = 8 + {print} 'You have ordered ' main + {print} 'That will be ' price ' dollars, please' + {print} 'Thank you, enjoy your meal!' + ``` start_code: "# place your code here" 7: story_text: | @@ -1465,9 +1463,11 @@ adventures: food = {ask} 'What would you like to eat as your ' course '?' {print} food ' will be your ' course ``` - story_text_2: |2 - - Of course, you could also order for multiple people! + story_text_2: | + ### Exercise + Of course, you could also order for multiple people! + Can you add the correct amount of indentation before each line to make the code work properly? + Tip: some lines don't need any indentation at all. example_code_2: | ``` courses = appetizer, main course, dessert @@ -1578,18 +1578,16 @@ adventures: story_text: | In the previous levels you've created your first fortune telling machine, but Hedy couldn't really predict anything, only {echo}. In this level you can use a variable and the `{at} {random}` command to really let Hedy choose an answer for you. Check out this code for instance: - example_code: |2 - - In this example the player can {ask} Hedy a yes-no question and Hedy will pick a random answer for you. - ``` - {print} I’m Hedy the fortune teller! - question {is} {ask} What do you want to know? - {print} This is what you want to know: question - answers {is} yes, no, maybe - {print} My crystal ball says... - {sleep} 2 - {print} answers {at} {random} - ``` + example_code: | + ``` + {print} I’m Hedy the fortune teller! + question {is} {ask} What do you want to know? + {print} This is what you want to know: question + answers {is} yes, no, maybe + {print} My crystal ball says... + {sleep} 2 + {print} answers {at} {random} + ``` story_text_2: | Now, Hedy can only answer yes, no or maybe. Can you give Hedy more answer options, like 'definitely' or '{ask} again'. start_code: "# place your code here" diff --git a/content/adventures/el.yaml b/content/adventures/el.yaml index 42cba8f40a4..46519c613f0 100644 --- a/content/adventures/el.yaml +++ b/content/adventures/el.yaml @@ -290,10 +290,9 @@ adventures: start_code: "print Η ιστορία σου" story_text_2: "### Exercise\nNow it's time to add variables to your own story that you've made in the previous level.\nGo to 'My programs', look for your level 1 story adventure and copy the code. Paste the code in your input screen in this level.\n\nThis code won't work in this level, because you have not used variables yet.\nChange the `{ask}` commands and `{echo}` commands in your code to the correct form that you've learned in this level.\n\n**Extra** Add a sleep command to your code to build up tension in your story.\n" 7: - story_text: |2 - - Σε μια ιστορία, κάποιος μπορεί να αναφέρει διάφορες λέξεις πολλές φορές. Για παράδειγμα, όταν κάποιος φωνάζει βοήθεια ή τραγουδά ένα τραγούδι. - Μπορείς να βάλεις μια τέτοια επανάληψη στην ιστορία σου στο επίπεδο 5 με την `repeat`. + story_text: | + Σε μια ιστορία, κάποιος μπορεί να αναφέρει διάφορες λέξεις πολλές φορές. Για παράδειγμα, όταν κάποιος φωνάζει βοήθεια ή τραγουδά ένα τραγούδι. + Μπορείς να βάλεις μια τέτοια επανάληψη στην ιστορία σου στο επίπεδο 5 με την `repeat`. example_code: | ``` @@ -327,15 +326,14 @@ adventures: ``` start_code: "print 'Εδώ θα βρίσκεται σύντομα η ιστορία σου!'" 4: - story_text: |2 - - Θα παρατήρησες πως υπάρχει ακόμα ένα σφάλμα στο επίπεδο 2. + story_text: | + Θα παρατήρησες πως υπάρχει ακόμα ένα σφάλμα στο επίπεδο 2. - Δοκίμασες να κάνεις μια πρόταση χρησιμοποιώντας τη λέξη name; Δηλαδή, `print το name μου είναι name`. + Δοκίμασες να κάνεις μια πρόταση χρησιμοποιώντας τη λέξη name; Δηλαδή, `print το name μου είναι name`. - Αυτό δε δούλεψε σωστά! Τότε θα έχεις σαν αποτέλεσμα: το Γιάννης μου είναι Γιάννης. Αυτό μπορεί να λυθεί στο επίπεδο 3. + Αυτό δε δούλεψε σωστά! Τότε θα έχεις σαν αποτέλεσμα: το Γιάννης μου είναι Γιάννης. Αυτό μπορεί να λυθεί στο επίπεδο 3. - Θα πρέπει να χρησιμοποιήσεις εισαγωγικά για οτιδήποτε θα εμφανίσεις. + Θα πρέπει να χρησιμοποιήσεις εισαγωγικά για οτιδήποτε θα εμφανίσεις. example_code: | ``` @@ -349,11 +347,10 @@ adventures: ``` start_code: "print 'Η ιστορία σου θα εμφανιστεί εδώ!'" 3: - story_text: |2 - - Μπορείς επίσης να προσθέσεις κάτι τυχαίο στην ιστορία σου. Οποιοδήποτε τέρας, ζώο ή άλλο εμπόδιο. + story_text: | + Μπορείς επίσης να προσθέσεις κάτι τυχαίο στην ιστορία σου. Οποιοδήποτε τέρας, ζώο ή άλλο εμπόδιο. - Αυτό πάει κάπως έτσι. + Αυτό πάει κάπως έτσι. start_code: "print Η ιστορία σου" example_code: | ``` @@ -729,13 +726,12 @@ adventures: start_code: "print 'Καλωσήλθες στο δικό σου παιχνίδι Πέτρα, ψαλίδι, χαρτί!'" 3: - story_text: |2 - - Στο επίπεδο 2 μπορούμε να εισάγουμε λίστες και να επιλέξουμε πράγματα από αυτές. + story_text: | + Στο επίπεδο 2 μπορούμε να εισάγουμε λίστες και να επιλέξουμε πράγματα από αυτές. - Αρχικά θα φτιάξεις μια λίστα με την `is`. Ύστερα μπορείς να αφήσεις τον υπολογιστή να επιλέξει κάτι από τη λίστα με την `at random` (τυχαία). + Αρχικά θα φτιάξεις μια λίστα με την `is`. Ύστερα μπορείς να αφήσεις τον υπολογιστή να επιλέξει κάτι από τη λίστα με την `at random` (τυχαία). - Για παράδειγμα, μπορείς να αφήσεις τον υπολογιστή να επιλέξει ανάμεσα σε πέτρα, ψαλίδι και χαρτί. + Για παράδειγμα, μπορείς να αφήσεις τον υπολογιστή να επιλέξει ανάμεσα σε πέτρα, ψαλίδι και χαρτί. example_code: | ``` @@ -860,19 +856,18 @@ adventures: start_code: "# place your code here" - example_code: |2- - - ``` - print Καλωσήλθατε στο εστιατόριο της Hedy! - print Σήμερα σερβίρουμε πίτσα ή λαζάνια. - food is ask Τί θα θέλατε να φάτε; - print Καλή επιλογή! Αυτό το φαγητό είναι το αγαπημένο μου! - topping is ask Θα θέλατε κρέας ή λαχανικά μαζί με αυτό; - print food with topping ετοιμάζεται! - drinks is ask Τί θα θέλατε να πιείς με αυτό; - print Σας ευχαριστώ για την παραγγελία. - print Το φαγητό και τα ποτά σας θα είναι έτοιμα αμέσως! - ``` + example_code: | + ``` + print Καλωσήλθατε στο εστιατόριο της Hedy! + print Σήμερα σερβίρουμε πίτσα ή λαζάνια. + food is ask Τί θα θέλατε να φάτε; + print Καλή επιλογή! Αυτό το φαγητό είναι το αγαπημένο μου! + topping is ask Θα θέλατε κρέας ή λαχανικά μαζί με αυτό; + print food with topping ετοιμάζεται! + drinks is ask Τί θα θέλατε να πιείς με αυτό; + print Σας ευχαριστώ για την παραγγελία. + print Το φαγητό και τα ποτά σας θα είναι έτοιμα αμέσως! + ``` story_text_2: "### Exercise\nCan you make this code more elaborate? For example by adding drinks to the order? Or...?\n" 3: story_text: | diff --git a/content/adventures/en.yaml b/content/adventures/en.yaml index 48b42f0eb01..239e390448a 100644 --- a/content/adventures/en.yaml +++ b/content/adventures/en.yaml @@ -214,11 +214,11 @@ adventures: {print} 'Great! You have passed the subject!' ``` start_code: | - answer = ask 'Do you want to learn more?' - if answer == 'yes' - print 'Go to the next adventure!' - if answer != 'yes' - print 'That is a shame!' + answer = {ask} 'Do you want to learn more?' + {if} answer == 'yes' + {print} 'Go to the next adventure!' + {if} answer != 'yes' + {print} 'That is a shame!' 15: story_text: | In this game below a code has been made to make sure the player can play on as long as they want... @@ -654,25 +654,25 @@ adventures: Add an {else} command to the example code. Make a block of line using indentation. You do this by starting each line with 4 spaces. 9: start_code: | - continue = ask 'Do you want to continue?' - if continue = yes - sure = ask 'Are you sure?' - if sure is yes - print 'We will continue' - else - print 'You are not sure' - else - print 'You do not want to continue' - example_code: | - continue = ask 'Do you want to continue?' - if continue = yes - sure = ask 'Are you sure?' - if sure is yes - print 'We will continue' - else - print 'You are not sure' - else - print 'You do not want to continue' + continue = {ask} 'Do you want to continue?' + {if} continue = yes + sure = {ask} 'Are you sure?' + {if} sure {is} yes + {print} 'We will continue' + {else} + {print} 'You are not sure' + {else} + {print} 'You do not want to continue' + example_code: | + continue = {ask} 'Do you want to continue?' + {if} continue = yes + sure = {ask} 'Are you sure?' + {if} sure {is} yes + {print} 'We will continue' + {else} + {print} 'You are not sure' + {else} + {print} 'You do not want to continue' story_text: | In this level you can also put an {if} command inside another {if} command. in_command: @@ -2497,12 +2497,12 @@ adventures: example_code: | ``` number = 10 - {for} i {in} {range} 1 to 10 + {for} i {in} {range} 1 {to} 10 {print} i * number ``` start_code: | number = 10 - {for} i {in} {range} 1 to 10 + {for} i {in} {range} 1 {to} 10 {print} i * number 12: story_text: | diff --git a/content/adventures/fy.yaml b/content/adventures/fy.yaml index 3e8907f6ee0..a98ea07af43 100644 --- a/content/adventures/fy.yaml +++ b/content/adventures/fy.yaml @@ -346,14 +346,14 @@ adventures: story_text_2: | The command `{add}` can also come in handy in your story. For example - example_code_2: |2 - - {print} He hears a sound - animals {is} 🐿, 🦔, 🦇, 🦉 - animal {is} {ask} What do you think it is? - {add} animal {to_list} animals - {print} it was a animals {at} {random} - ``` + example_code_2: | + ``` + {print} He hears a sound + animals {is} 🐿, 🦔, 🦇, 🦉 + animal {is} {ask} What do you think it is? + {add} animal {to_list} animals + {print} it was an animals {at} {random} + ``` story_text_3: | This is an example of the `{remove}` command in your story example_code_3: | diff --git a/content/adventures/hi.yaml b/content/adventures/hi.yaml index fcc2f67d15f..2505e3cf018 100644 --- a/content/adventures/hi.yaml +++ b/content/adventures/hi.yaml @@ -826,9 +826,8 @@ adventures: {print} 'those are' points ' point' ``` Can you make the code so that you get the total score for 8 dice? To do that, you have to cut and paste some lines of the code. - example_code_2: |2 - - Did you manage to calculate the score for 8 dice? That required a lot of cutting and pasting, right? We are going to make that easier in level 7! + example_code_2: | + Did you manage to calculate the score for 8 dice? That required a lot of cutting and pasting, right? We are going to make that easier in level 7! start_code: "{print} 'What will the die indicate this time?'" 15: story_text: | @@ -923,11 +922,11 @@ adventures: Do you complete the code by entering the correct commands or characters on the underscores? start_code: "{print} 'Welcome to your own rock scissors paper!'" 3: - story_text: |2 + story_text: | + You can use the `{at} {random}` command to let the computer pick rock, paper or scissors! - In this level we can enter lists and choose things from them. - You first make a list with `{is}`. Then you can let the computer choose something from the list with `{at} {random}`. - For example, you can let the computer pick from rock, paper and scissors. + ### Exercise + Finish the code by using the `{at} {random}` command. start_code: '{print} Welcome to your own rock scissors paper!' example_code: | ``` @@ -1228,22 +1227,21 @@ adventures: story_text: | In this level you can use maths to calculate the total price of your customer's order, which can make your virtual restaurant more realistic. - example_code: |2 - - You can make a simple restaurant code, like this: - ``` - {print} 'Welcome to Hedys restaurant' - {print} 'Here is our menu:' - {print} 'Our main courses are pizza, lasagne, or spaghetti' - main = {ask} 'Which main course would you like?' - price = 0 - {if} main {is} pizza price = 10 - {if} main {is} lasagne price = 12 - {if} main {is} spaghetti price = 8 - {print} 'You have ordered ' main - {print} 'That will be ' price ' dollars, please' - {print} 'Thank you, enjoy your meal!' - ``` + example_code: | + You can make a simple restaurant code, like this: + ``` + {print} 'Welcome to Restaurant Chez Hedy' + {print} 'Here is our menu:' + {print} 'Our main courses are pizza, lasagne, or spaghetti' + main = {ask} 'Which main course would you like?' + price = 0 + {if} main {is} pizza price = 10 + {if} main {is} lasagne price = 12 + {if} main {is} spaghetti price = 8 + {print} 'You have ordered ' main + {print} 'That will be ' price ' dollars, please' + {print} 'Thank you, enjoy your meal!' + ``` start_code: "# place your code here" 7: story_text: | @@ -1312,9 +1310,11 @@ adventures: food = {ask} 'What would you like to eat as your ' course '?' {print} food ' will be your ' course ``` - story_text_2: |2 - - Of course, you could also order for multiple people! + story_text_2: | + ### Exercise + Of course, you could also order for multiple people! + Can you add the correct amount of indentation before each line to make the code work properly? + Tip: some lines don't need any indentation at all. example_code_2: | ``` courses = appetizer, main course, dessert diff --git a/content/adventures/hu.yaml b/content/adventures/hu.yaml index a0335954c64..5e235381d86 100644 --- a/content/adventures/hu.yaml +++ b/content/adventures/hu.yaml @@ -267,10 +267,8 @@ adventures: ``` 3: start_code: print A te történeted - story_text: |2 - - Hozzáadhatsz valami véletlenszerűt is a történetéhez. Bármilyen szörnyet, állatot vagy - más akadályt. + story_text: | + In level 3 you can make your story more fun. Hozzáadhatsz valami véletlenszerűt is a történetéhez. Bármilyen szörnyet, állatot vagy más akadályt. example_code: | ``` @@ -280,14 +278,14 @@ adventures: story_text_2: | The command `{add}` can also come in handy in your story. For example - example_code_2: |2 - - {print} He hears a sound - animals {is} 🐿, 🦔, 🦇, 🦉 - animal {is} {ask} What do you think it is? - {add} animal {to_list} animals - {print} it was a animals {at} {random} - ``` + example_code_2: | + ``` + {print} He hears a sound + animals {is} 🐿, 🦔, 🦇, 🦉 + animal {is} {ask} What do you think it is? + {add} animal {to_list} animals + {print} it was an animals {at} {random} + ``` story_text_3: | This is an example of the `{remove}` command in your story example_code_3: | @@ -495,14 +493,12 @@ adventures: ``` 4: start_code: print 'Ki mosogat?' - story_text: |2- - - Az idézőjelek segítségével szebbé teheted a mosogatás tervezését. - Ezúttal a minta kód nem egészen teljes. - Ki tudod egészíteni a kódot a helyes parancsok vagy karakterek pontokra történő - beírásával? - Minden üres helyet egy paranccsal kell kicserélni. - Tipp: Ne felejtsd el az idézőjeleket. + story_text: | + Az idézőjelek segítségével szebbé teheted a mosogatás tervezését. + Ezúttal a minta kód nem egészen teljes. + Ki tudod egészíteni a kódot a helyes parancsok vagy karakterek pontokra történő beírásával? + Minden üres helyet egy paranccsal kell kicserélni. + Tipp: Ne felejtsd el az idézőjeleket. example_code: |- ``` emberek is anya, apa, Edit, Gizi @@ -981,23 +977,22 @@ adventures: Szórakozhatsz egy kicsit, ha hagyod, hogy Hedy megválassza a vacsora árát is! Mit fogsz kapni? - example_code: |2- - - ``` - print Üdvözöljük a Hedy's Random étteremben! - print Az egyetlen étterem amely véletlenszerűen kiválasztja az étkezést és annak árát az Ön számára! - eloetelek is saláta, leves, sajt - foetel is pizza, kelbimbó, spagetti - desszertek is brownie, fagylalt, francia sajtok - ital is kóla, sör, víz - arak is 1000 forint, 2000 forint, 3000 forint - print A következővel indul: eloetelek at random - print Ezután kiszolgáljuk: foetel at random - print És desszertként: desszertek at random - print Igyon egy italt - print Ez lesz: arak at random - print Köszönöm és élvezze az étkezést! - ``` + example_code: | + ``` + print Üdvözöljük a Hedy's Random étteremben! + print Az egyetlen étterem amely véletlenszerűen kiválasztja az étkezést és annak árát az Ön számára! + eloetelek is saláta, leves, sajt + foetel is pizza, kelbimbó, spagetti + desszertek is brownie, fagylalt, francia sajtok + ital is kóla, sör, víz + arak is 1000 forint, 2000 forint, 3000 forint + print A következővel indul: eloetelek at random + print Ezután kiszolgáljuk: foetel at random + print És desszertként: desszertek at random + print Igyon egy italt + print Ez lesz: arak at random + print Köszönöm és élvezze az étkezést! + ``` story_text_2: "Does your costumer have any allergies or do they dislike certain dishes? Then you can use the `{remove}`command to remove it from your menu.\n" example_code_2: "```\n{print} Mystery milkshake\nflavors {is} strawberry, chocolate, vanilla\nallergies {is} {ask} Are you allergic to any falvors?\n{remove} allergies {from} flavors\n{print} You get a flavors {at} {random} milkshake\n```\n" 15: @@ -1195,7 +1190,7 @@ adventures: default_save_name: Jósnő levels: 1: - start_code: print Szia, Hedy, a jósnő vagyok! + start_code: '# place your code here' story_text: |- Voltál már fesztiválon, és egy jósnő megjósolta a jövődet? Vagy játszottál már varázslatos nyolc labdával? Akkor valószínűleg tudod, hogy nem igazán tudják megjósolni a jövődet, de ettől még szórakoztató játszani! @@ -1219,24 +1214,22 @@ adventures: story_text_2: "### Exercise\nHedy now only tells you your name. Can you expand the code so that Hedy can predict more things about you?\nObviously, Hedy isn't a very good fortune teller yet, as she can only repeat the answers that were given by the players!\nTake a look in level 2 to improve your fortune teller.\n" 8: start_code: |- - print 'Hedy a jósnő vagyok!' - print 'Feltehetsz 3 kérdést.' + # place your code here story_text: |- Az 5. szinten megtanultad, hogyan kell használni az ismétlést, hogy a jósnő 3 kérdésre válaszoljon egymás után, de problémánk adódott a kérdések kiíratásával. A 7. szinten ez a probléma megoldódott az ismétlés parancs új módjának köszönhetően. A következő példában a jósnő 3 kérdést tehet fel, és kiírathatja őket! - example_code: |2- - - ``` - print 'Hedy a jósnő vagyok!' - print 'Feltehetsz 3 kérdést.' - valasz is igen, nem, talán - repeat 3 times - kerdes is ask 'Mit akarsz tudni?' - print kerdes - print 'A kristálygömböm azt mondja...' valasz at random - ``` + example_code: | + ``` + print 'Hedy a jósnő vagyok!' + print 'Feltehetsz 3 kérdést.' + valasz is igen, nem, talán + repeat 3 times + kerdes is ask 'Mit akarsz tudni?' + print kerdes + print 'A kristálygömböm azt mondja...' valasz at random + ``` 7: story_text: |- Az 6. szinten a `repeat` paranccsal beállíthatod, hogy a gép egyszerre több jóslatot mondjon. @@ -1251,51 +1244,47 @@ adventures: A 7. szinten az ismétlés parancs elrendezése megváltozik, ami lehetővé teszi több sor ismétlését egyszerre. start_code: |- + # place your code here + example_code: | + ``` print 'Hedy, a jósnő vagyok!' print 'Feltehetsz 3 kérdést!' - example_code: |2- - - ``` - print 'Hedy, a jósnő vagyok!' - print 'Feltehetsz 3 kérdést!' - repeat 3 times kerdes is ask 'Mit akarsz tudni?' - valasz is igen, nem, talan - repeat 3 times print 'A kristálygömböm azt mondja... ' valasz at random - ``` + repeat 3 times kerdes is ask 'Mit akarsz tudni?' + valasz is igen, nem, talan + repeat 3 times print 'A kristálygömböm azt mondja... ' valasz at random + ``` 6: story_text: |- A 5. szinten jövendőmondóként használhatod a matematikát előrejelzéseidben. Ez lehetővé teszi (buta) képletek kitalálását a jövő kiszámításához. Például kiszámíthatod, hogy milyen gazdag leszel, vagy hány gyermeked lesz, ha felnősz. start_code: |- + # place your code here + example_code: | + ``` print 'Hedy, a jósnő vagyok!' print 'Meg tudom jósolni, hány gyermeked lesz, ha felnősz!' - example_code: |2- - - ``` - print 'Hedy, a jósnő vagyok!' - print 'Meg tudom jósolni, hány gyermeked lesz, ha felnősz!' - kor is ask 'Hány éves vagy?' - testver is ask 'Hány testvéred van?' - magassag is ask 'Hány cm magas vagy?' - gyerekek is magassag / kor - gyerekek is gyerekek - testver - print 'Neked ...' - print gyerekek ' gyereked lesz!' - ``` - - Ha az előző példa nem volt elég buta a számodra, akkor nézd meg ezt! - - ``` - print 'Hedy vagyok a buta jósnő!' - print 'Meg tudom jósolni, milyen okos vagy!' - foci is ask '1-10-es skálás mennyire szereted a focit?' - banan is ask 'Hány banánt ettél a héten?' - higienia is ask 'Hányszor mostad meg a kezed ma?' - eredmeny is banan + higienia - eredmeny is eredmeny * foci - print 'Te ' eredmeny ' százalék okos vagy.' - ``` + kor is ask 'Hány éves vagy?' + testver is ask 'Hány testvéred van?' + magassag is ask 'Hány cm magas vagy?' + gyerekek is magassag / kor + gyerekek is gyerekek - testver + print 'Neked ...' + print gyerekek ' gyereked lesz!' + ``` + + Ha az előző példa nem volt elég buta a számodra, akkor nézd meg ezt! + + ``` + print 'Hedy vagyok a buta jósnő!' + print 'Meg tudom jósolni, milyen okos vagy!' + foci is ask '1-10-es skálás mennyire szereted a focit?' + banan is ask 'Hány banánt ettél a héten?' + higienia is ask 'Hányszor mostad meg a kezed ma?' + eredmeny is banan + higienia + eredmeny is eredmeny * foci + print 'Te ' eredmeny ' százalék okos vagy.' + ``` 5: story_text: |- A 4. szinten megtanulod (titokban) az esélyeket a magad javára billenteni a jósnő használata során! @@ -1310,17 +1299,16 @@ adventures: Ezeb az elven különféle programokat lehet készíteni, csak légy kreatív! Például létrehozhatsz egy olyan gépet, amely megjósolja, hogy kedvenc sportcsapatod legyőzi az összes versenytársat! Vagy elkészítheted Hófehérke varázslatos tükrét a falon, hogy elmondd mindenkinek, hogy te vagy a legbecsületesebb! Hagyd, hogy a fantáziád végezze a munkádat! - start_code: print 'Szia, Hedy, a jósnő vagyok!' - example_code: |2- - - ``` - print 'Szia, Hedy, a jósnő vagyok' - print 'Meg tudom jósolni, nyersz-e a lottón holnap!' - szemely is ask 'Ki vagy te?' - if szemely is Hedy print 'Bizonyosan nyerni fogsz!' else print 'Balszerencse! Valaki más nyer!' - ``` + start_code: '# place your code here' + example_code: | + ``` + print 'Szia, Hedy, a jósnő vagyok' + print 'Meg tudom jósolni, nyersz-e a lottón holnap!' + szemely is ask 'Ki vagy te?' + if szemely is Hedy print 'Bizonyosan nyerni fogsz!' else print 'Balszerencse! Valaki más nyer!' + ``` 4: - start_code: print 'Szia, Hedy, a jósnő vagyok!' + start_code: '# place your code here' story_text: |- A 3. szint nem tartalmaz új funkciókat, de lehetővé teszi az idézőjelek használatának gyakorlását. Újra elkészítheted a 2. szintű kódot, és ügyelj arra, hogy az idézőjeleket a megfelelő helyre írd! @@ -1330,15 +1318,14 @@ adventures: Fontos! Ne feledd, hogy most, amikor idézőjeleket használunk, Hedy összezavarodik, amikor az aposztrófot más szövegösszefüggésben használod. - example_code: |2- - - ``` - print 'Szia, Hedy, a jósnő vagyok!' - kerdes is ask 'Mit akarsz tudni?' - print 'Ez az amit tudni akarsz: ' kerdes - valasz is igen, nem, talan - print 'A kristálygömböm azt mondja... ' valasz at random - ``` + example_code: | + ``` + print 'Szia, Hedy, a jósnő vagyok!' + kerdes is ask 'Mit akarsz tudni?' + print 'Ez az amit tudni akarsz: ' kerdes + valasz is igen, nem, talan + print 'A kristálygömböm azt mondja... ' valasz at random + ``` 3: start_code: print Szia Hedy a jósnő vagyok! story_text: |- @@ -1400,28 +1387,27 @@ adventures: start_code: print 'Szabadulj ki a kísértetházból' - example_code: |2- - - ``` - print 'Szabadulj ki a kísértetházból' - jatekos is elo - ajtok is 1, 2, 3 - szornyek is vampir, zombi, oriaspok - for i in range 1 to 3 - if jatekos is elo - helyesajto is ajtok at random - print 'Három ajtó van előtted...' - valasztottajto is ask 'Melyik ajtót választod?' - if valasztottajto is helyesajto - print 'Itt nincs szörny!' - else - print 'Megevett a(z) ' szornyek at random - jatekos is halott - else - print 'GAME OVER' + example_code: | + ``` + print 'Szabadulj ki a kísértetházból' + jatekos is elo + ajtok is 1, 2, 3 + szornyek is vampir, zombi, oriaspok + for i in range 1 to 3 if jatekos is elo - print 'Nagyszerű! Túlélted!' - ``` + helyesajto is ajtok at random + print 'Három ajtó van előtted...' + valasztottajto is ask 'Melyik ajtót választod?' + if valasztottajto is helyesajto + print 'Itt nincs szörny!' + else + print 'Megevett a(z) ' szornyek at random + jatekos is halott + else + print 'GAME OVER' + if jatekos is elo + print 'Nagyszerű! Túlélted!' + ``` 5: story_text: |- Eddig a szintig a kísértetjárta ház játék mindig arra kérte a játékost, hogy válasszon egy ajtót, de ahogy észrevettétek, nem igazán kellett helyesen válaszolniuk. @@ -1440,12 +1426,12 @@ adventures: if valasztottajto is helyesajto print 'Nagyszerű! Kiszabadultál!' else print 'Jaj ne! Megevett a ...' szornyek at random ``` - start_code: print 'Szabadulj ki a kísértetházból' + start_code: '# place your code here' 4: story_text: |- A 3. szinten megtanulod használni az idézőjeleket a játékaidban. Át tudod alakítani a kisértetház játékot úgy, hogy megfeleljen a 3. szintnek? - start_code: print 'Szabadulj ki a kísértetházból' + start_code: '# place your code here' example_code: "```\n{print} _Escape from the haunted house!_\n{print} _There are 3 doors in front of you..._\nchoice {is} {ask} _Which door do you choose?_\n{print} _You picked door ..._ choice\nmonsters {is} a zombie, a vampire, NOTHING YOUVE ESCAPED\n{print} _You see..._\n{sleep}\n{print} monsters {at} {random}\n ```\n" 3: story_text: |- @@ -1459,7 +1445,7 @@ adventures: Végezetül szeretnénk egy kihívást küldeni Neked, hogy változtasd meg ezt a játékot olyan játékműsorrá (mint amilyenek a tévében vannak), ahol a játékosok ajtót vagy bőröndöt választanak, és valamelyik nagy díjat tartalmaz! Meg tudod csinálni? - start_code: print 'Szabadulj ki a kísértetházból' + start_code: '# place your code here' example_code: "```\n_ Escape from the haunted house!\n_ There are 3 doors in front of you...\n_ _ _ Which door do you choose?\n_ You picked door ... choice\nmonsters _ a zombie, a vampire, NOTHING YOUVE ESCAPED\n_ You see...\n{sleep}\n_ _ _ _\n```\n" 14: story_text: "In this level you can use the `<` and `>` symbol to introduce lives to your game.\n" diff --git a/content/adventures/it.yaml b/content/adventures/it.yaml index 5f2c70272c7..bfecde594b4 100644 --- a/content/adventures/it.yaml +++ b/content/adventures/it.yaml @@ -1062,9 +1062,8 @@ adventures: {print} 'those are' points ' point' ``` Can you make the code so that you get the total score for 8 dice? To do that, you have to cut and paste some lines of the code. - example_code_2: |2 - - Did you manage to calculate the score for 8 dice? That required a lot of cutting and pasting, right? We are going to make that easier in level 7! + example_code_2: | + Did you manage to calculate the score for 8 dice? That required a lot of cutting and pasting, right? We are going to make that easier in level 7! start_code: "{print} 'What will the die indicate this time?'" 7: story_text: | @@ -1137,11 +1136,11 @@ adventures: ``` start_code: "# place your code here" 3: - story_text: |2 + story_text: | + You can use the `{at} {random}` command to let the computer pick rock, paper or scissors! - In this level we can enter lists and choose things from them. - You first make a list with `{is}`. Then you can let the computer choose something from the list with `{at} {random}`. - For example, you can let the computer pick from rock, paper and scissors. + ### Exercise + Finish the code by using the `{at} {random}` command. example_code: | ``` @@ -1496,22 +1495,21 @@ adventures: story_text: | In this level you can use maths to calculate the total price of your customer's order, which can make your virtual restaurant more realistic. - example_code: |2 - - You can make a simple restaurant code, like this: - ``` - {print} 'Welcome to Hedys restaurant' - {print} 'Here is our menu:' - {print} 'Our main courses are pizza, lasagne, or spaghetti' - main = {ask} 'Which main course would you like?' - price = 0 - {if} main {is} pizza price = 10 - {if} main {is} lasagne price = 12 - {if} main {is} spaghetti price = 8 - {print} 'You have ordered ' main - {print} 'That will be ' price ' dollars, please' - {print} 'Thank you, enjoy your meal!' - ``` + example_code: | + You can make a simple restaurant code, like this: + ``` + {print} 'Welcome to Restaurant Chez Hedy' + {print} 'Here is our menu:' + {print} 'Our main courses are pizza, lasagne, or spaghetti' + main = {ask} 'Which main course would you like?' + price = 0 + {if} main {is} pizza price = 10 + {if} main {is} lasagne price = 12 + {if} main {is} spaghetti price = 8 + {print} 'You have ordered ' main + {print} 'That will be ' price ' dollars, please' + {print} 'Thank you, enjoy your meal!' + ``` start_code: "# scrivi il tuo codice qui" 7: story_text: | @@ -1580,9 +1578,11 @@ adventures: food = {ask} 'What would you like to eat as your ' course '?' {print} food ' will be your ' course ``` - story_text_2: |2 - - Of course, you could also order for multiple people! + story_text_2: | + ### Exercise + Of course, you could also order for multiple people! + Can you add the correct amount of indentation before each line to make the code work properly? + Tip: some lines don't need any indentation at all. example_code_2: | ``` courses = appetizer, main course, dessert @@ -1693,18 +1693,16 @@ adventures: story_text: | In the previous levels you've created your first fortune telling machine, but Hedy couldn't really predict anything, only {echo}. In this level you can use a variable and the `{at} {random}` command to really let Hedy choose an answer for you. Check out this code for instance: - example_code: |2 - - In this example the player can {ask} Hedy a yes-no question and Hedy will pick a random answer for you. - ``` - {print} I’m Hedy the fortune teller! - question {is} {ask} What do you want to know? - {print} This is what you want to know: question - answers {is} yes, no, maybe - {print} My crystal ball says... - {sleep} 2 - {print} answers {at} {random} - ``` + example_code: | + ``` + {print} I’m Hedy the fortune teller! + question {is} {ask} What do you want to know? + {print} This is what you want to know: question + answers {is} yes, no, maybe + {print} My crystal ball says... + {sleep} 2 + {print} answers {at} {random} + ``` story_text_2: | Now, Hedy can only answer yes, no or maybe. Can you give Hedy more answer options, like 'definitely' or '{ask} again'. start_code: "# scrivi il tuo codice qui" diff --git a/content/adventures/pt_PT.yaml b/content/adventures/pt_PT.yaml index 51af0371307..ef292e64c52 100644 --- a/content/adventures/pt_PT.yaml +++ b/content/adventures/pt_PT.yaml @@ -269,34 +269,32 @@ adventures: Podemos fazê-lo da seguinte maneira. - example_code: |2 - - ``` - animais is coruja, cobra, raposa - print Agora consegue ouvir o barulho de uma animais at random - ``` + example_code: | + ``` + animais {is} coruja, cobra, raposa + {print} Agora consegue ouvir o barulho de uma animais {at} {random} + ``` story_text_2: | The command `{add}` can also come in handy in your story. For example - example_code_2: |2 - - {print} He hears a sound - animals {is} 🐿, 🦔, 🦇, 🦉 - animal {is} {ask} What do you think it is? - {add} animal {to_list} animals - {print} it was a animals {at} {random} - ``` + example_code_2: | + ``` + {print} He hears a sound + animals {is} 🐿, 🦔, 🦇, 🦉 + animal {is} {ask} What do you think it is? + {add} animal {to_list} animals + {print} it was an animals {at} {random} + ``` story_text_3: | This is an example of the `{remove}` command in your story - example_code_3: |2 - - ``` - {print} His backpack got way too heavy. - {print} Inside were a bottle of water, a flashlight and a brick. - bag {is} water, flashlight, brick - dump {is} {ask} Which item should he dump? - {remove} dump {from} bag - ``` + example_code_3: | + ``` + {print} His backpack got way too heavy. + {print} Inside were a bottle of water, a flashlight and a brick. + bag {is} water, flashlight, brick + dump {is} {ask} Which item should he dump? + {remove} dump {from} bag + ``` start_code: "print 'A tua história será escrita aqui!'" 12: story_text: "In this level you can use the quotation marks to save multiple words in a variable.\n" @@ -748,22 +746,21 @@ adventures: story_text: | In this level you can use maths to calculate the total price of your customer's order, which can make your virtual restaurant more realistic. - example_code: |2 - - You can make a simple restaurant code, like this: - ``` - {print} 'Welcome to Hedys restaurant' - {print} 'Here is our menu:' - {print} 'Our main courses are pizza, lasagne, or spaghetti' - main = {ask} 'Which main course would you like?' - price = 0 - {if} main {is} pizza price = 10 - {if} main {is} lasagne price = 12 - {if} main {is} spaghetti price = 8 - {print} 'You have ordered ' main - {print} 'That will be ' price ' dollars, please' - {print} 'Thank you, enjoy your meal!' - ``` + example_code: | + You can make a simple restaurant code, like this: + ``` + {print} 'Welcome to Restaurant Chez Hedy' + {print} 'Here is our menu:' + {print} 'Our main courses are pizza, lasagne, or spaghetti' + main = {ask} 'Which main course would you like?' + price = 0 + {if} main {is} pizza price = 10 + {if} main {is} lasagne price = 12 + {if} main {is} spaghetti price = 8 + {print} 'You have ordered ' main + {print} 'That will be ' price ' dollars, please' + {print} 'Thank you, enjoy your meal!' + ``` start_code: "# place your code here" 7: story_text: | @@ -832,9 +829,11 @@ adventures: food = {ask} 'What would you like to eat as your ' course '?' {print} food ' will be your ' course ``` - story_text_2: |2 - - Of course, you could also order for multiple people! + story_text_2: | + ### Exercise + Of course, you could also order for multiple people! + Can you add the correct amount of indentation before each line to make the code work properly? + Tip: some lines don't need any indentation at all. example_code_2: | ``` courses = appetizer, main course, dessert diff --git a/content/adventures/sw.yaml b/content/adventures/sw.yaml index 6763142765d..ac68e3e8b71 100644 --- a/content/adventures/sw.yaml +++ b/content/adventures/sw.yaml @@ -163,14 +163,14 @@ adventures: story_text_2: | The command `{add}` can also come in handy in your story. For example - example_code_2: |2 - - {print} He hears a sound - animals {is} 🐿, 🦔, 🦇, 🦉 - animal {is} {ask} What do you think it is? - {add} animal {to_list} animals - {print} it was a animals {at} {random} - ``` + example_code_2: | + ``` + {print} He hears a sound + animals {is} 🐿, 🦔, 🦇, 🦉 + animal {is} {ask} What do you think it is? + {add} animal {to_list} animals + {print} it was an animals {at} {random} + ``` story_text_3: | This is an example of the `{remove}` command in your story example_code_3: | diff --git a/content/adventures/tr.yaml b/content/adventures/tr.yaml index 18b4ae1005c..6ece0051fb9 100644 --- a/content/adventures/tr.yaml +++ b/content/adventures/tr.yaml @@ -6,7 +6,7 @@ adventures: levels: 1: story_text: "Hedy'ye hoş geldiniz! Seviye 1'de, bir hikaye yazdırarak başlayabilirsiniz.\n\nProgramlama alanının altındaki yeşil 'Kodu çalıştır' düğmesini kullanarak kodu kendiniz deneyin.\n\nHazır mısınız? O zaman ilk komutunuzu öğrenmek için bir sonraki sekmeye gidin!\n" - start_code: '{print} Merhaba Dünya!' + start_code: '`{print}` Merhaba Dünya!' 2: story_text: | Tebrikler! Seviye 2'ye ulaştınız. Umarım şimdiden bazı harika kodlar yapmışsınızdır! @@ -39,7 +39,7 @@ adventures: start_code: "{print} Merhaba Dünya!" 4: - start_code: "{print} 'Merhaba Dünya'" + start_code: "adım {is} Sophie\n{print} Benim adım adım\n" story_text: | Önceki seviyelerde değişkenlerle pratik yaptınız, ancak bu problemle karşılaşmış olabilirsiniz. Bunun gibi bir kodu çalıştırmayı denemiş olabilirsiniz: @@ -175,7 +175,7 @@ adventures: ``` 13: start_code: |- - {print} 'Hadi bir sonraki seviyeye geçelim!' + {print} 'Hadi bir sonraki sekmeye geçelim!' story_text: | Önceki seviyelerde iki `{if}` komutunu birbirinin içine nasıl yerleştireceğinizi öğrendiniz. Bu sorunsuz çalışır, ancak size bunun gibi çok uzun ve kullanışsız kodlar verir: @@ -195,8 +195,12 @@ adventures: {print} 'Erişim reddedildi!' ``` 14: - start_code: |- - {print} 'Hadi bir sonraki sekmeye geçelim' + start_code: | + cevap = {ask} 'Daha fazlasını öğrenmek ister misiniz?' + {if} cevap == 'evet.' + {print} 'Bir sonraki maceraya gidin!' + {if} cevap != 'evet.' + {print} 'Burada biraz daha pratik yapın' story_text: | Aşağıdaki program ile okulda bir dersi geçip geçmediğinizi hesaplayabilirsiniz (yani, altı yada daha yüksek bir not). Bu kodun, 5. satırdaki çok uzun kod nedeniyle son derece verimsiz olduğunu görebilirsiniz. @@ -214,7 +218,7 @@ adventures: ``` 15: start_code: |- - {print} 'Hadi bir sonraki seviyeye geçelim!' + {print} 'Hadi bir sonraki sekmeye geçelim!' story_text: | Aşağıdaki bu oyunda, oyuncunun istediği kadar oynayabilmesini sağlamak için bir kod yapılmıştır... Ancak kod etkisiz ve çok uzun. Ayrıca, oyuncu 100 yerine 101 oyun oynamak isterse ne olacak? @@ -256,7 +260,7 @@ adventures: Not: Bu kodlar, bu bölümde bu haldeyken çalışmaz. Neresini düzelteceğinizi görmek için sonraki sekmeye gidin. 17: start_code: |- - {print} 'Hadi bir sonraki seviyeye geçelim!' + {print} 'Hadi bir sonraki sekmeye geçelim!' story_text: | Şimdi girintilemeyi biraz değiştireceğiz. Her girintiye ihtiyaç duyduğumuzda, girintiden önceki satırda `:` işaretine ihtiyacımız var. @@ -309,7 +313,7 @@ adventures: {print} isim buranın perili bir orman olmasından korkuyor ``` start_code: "{print} Sizin hikayeniz" - story_text_2: "### Alıştırma\nŞimdi sırada bir önceki seviyede oluşturduğunuz kendi hikayenize değişkenler ekleme zamanı.\n'Programlarım'a gidin, 1. seviye hikaye maceranızı bulun ve kodunuzu kopyalayın. Kodu bu seviyedeki giriş ekranınıza yapıştırın.\n\nBu kod bu seviyede çalışmayacaktır, çünkü henüz değişkenleri kullanmadınız.\nKodunuzdaki `{ask}` komutlarını ve `{echo}` komutlarını bu seviyede öğrendiğiniz doğru şekilleriyle değiştirin.\n\n**Ekleme** Hikayenizde gerilim oluşturmak için kodunuza bir {sleep} komutu ekleyin.\n" + story_text_2: "### Alıştırma\nŞimdi sırada bir önceki seviyede oluşturduğunuz kendi hikayenize değişkenler ekleme zamanı.\n'Programlarım'a gidin, 1. seviye hikaye maceranızı bulun ve kodunuzu kopyalayın. Kodu bu seviyedeki giriş ekranınıza yapıştırın.\n\nBu kod bu seviyede çalışmayacaktır, çünkü henüz değişkenleri kullanmadınız.\nKodunuzdaki `{ask}` komutlarını ve `{echo}` komutlarını bu seviyede öğrendiğiniz doğru şekilleriyle değiştirin.\n\n**Ekleme** Hikayenizde gerilim oluşturmak için kodunuza bir `{sleep}` komutu ekleyin.\n" 3: story_text: | 3. seviyede, hikayenizi daha eğlenceli hale getirebilirsiniz. Bunun gibi herhangi bir canavar, hayvan veya diğer engeller için rastgelelik kullanabilirsiniz: @@ -1035,7 +1039,7 @@ adventures: {for} gün {in} günler {print} isimler {at} {random} ' bulaşıkları ' gün ' günü yıkayacak' ``` - start_code: "# kodunuzu buraya yazın" + start_code: "günler = Pazartesi, Salı, Çarşamba, Perşembe, Cuma, Cumartesi, Pazar\nisimler = anne, baba., Emma, Sophie\n{for} gün {in} günler\n {print} isimler {at} {random} ' bulaşıkları ' gün ' günü yıkayacak'\n" dice: name: "Zar" description: "Kendi zarınızı yapın" @@ -1052,9 +1056,9 @@ adventures: example_code: | ``` seçimler {is} 1, 2, 3, 4, 5, solucan - {print} Attığın zar _ {at} {random} + {print} Attığın zar _ {at} {random} ! ``` - start_code: "{print} Bu sefer zar kaçı gösterecek?" + start_code: "seçimler {is} 1, 2, 3, 4, 5, solucan\n{print} Attığın zar _ {at} {random} !\n" example_code_2: "```\nseçimler {is} _\n```\n" story_text_2: "### Alıştırma\nYukarıdaki örnekteki zarlar belirli bir oyun için zarlardır. Normal bir zar yapabilir misiniz?\nYa da farklı bir oyundaki diğer özel zarları?\n" 4: @@ -1312,8 +1316,8 @@ adventures: Artık matematik yapabildiğinize göre, kendi başınıza bir hesap makinesi yapabilirsiniz! example_code: | ``` - sayı_1 {is} {ask} 'İlk sayıyı girin:' - sayı_2 {is} {ask} 'İkinci sayıyı girin:' + sayı_1 = {ask} 'İlk sayıyı girin:' + sayı_2 = {ask} 'İkinci sayıyı girin:' doğru_cevap = sayı_1 * sayı_2 {print} sayı_1 ' kere ' sayı_2 ' eder ' doğru_cevap ``` @@ -1329,7 +1333,7 @@ adventures: {else} {print} 'Yanlış! doğru cevap ' _ ``` - start_code: "{print} 'Hesap makinesine hoş geldiniz!'" + start_code: "sayı_1 = {ask} 'İlk numarayı girin:'\nsayı_2 = {ask} 'İkinci numarayı girin:'\ndoğru_cevap = sayı_1 * sayı_2\n{print} sayı_1 ' kere ' sayı_2 ' eder ' doğru_cevap\n" story_text_3: "**Ekleme** rastgele komutunu kullanarak bilgisayarın kendi başına rastgele toplamalar yapmasını da sağlayabilirsiniz.\n\nBu şekilde, pratik yapmak için bir sayı tablosu seçersiniz ve bundan her zaman farklı bir toplama elde edersiniz:\n" 9: story_text: | @@ -1437,8 +1441,8 @@ adventures: start_code: "# kodunuzu buraya yazın" 11: story_text: "Bir `{for}` ile çarpım tablosu alıştırma programını basitleştirebilirsiniz.\n\n### Alıştırma 1\nÖrnek kodu güzel bir çarpım tablosu yazdıracak şekilde geliştirin:
\"1 kere 10 eder 10\", \"2 kere 10 eder 20\" gibi.\n\n### Alıştırma 2\nSeviye 10'daki çarpma kodunuza geri dönün ve kodu `{for}` ve `{range}` kullanacak şekilde değiştirin.\n" - start_code: '# kodunuzu buraya yazın' - example_code: "```\nsayı = 10\n{for} i {in} {range} 1 şuraya 10\n {print} i * sayı\n```\n" + start_code: "sayı = 10\n{for} i {in} {range} 1 {to} 10\n {print} i * sayı\n" + example_code: "```\nsayı = 10\n{for} i {in} {range} 1 {to} 10\n {print} i * sayı\n```\n" 13: example_code: "```\ncevap1 = {ask} '10 kere 7 kaç eder?'\ncevap2 = {ask} '6 kere 7 kaç eder?'\n{if} _ _ _ _ _ _ _\n {print} _\n```\n" story_text: "### Alıştırma 1\nAlıştırma programını biraz daha zorlaştıralım. Oyuncu şimdi iki soruya doğru cevap vermek zorunda. Programı tamamlamak için boşlukları doldurun.\n\n### Alıştırma 2 Ekleme\nBazen hesaplamaların birden fazla doğru cevabı vardır. Örneğin, 10 hem 5'e hem de 2'ye bölünebilir. Dolayısıyla, \"Hangi sayı 10'u böler?\" sorusunu hem 2 hem de 5 cevaplanabilir.\nBirden fazla doğru cevabı olan bir hesaplama sorun, oyuncudan cevaplamasını isteyin ve `{or}` kullanarak doğru olup olmadığını belirleyin.\nProgramlama alanını temizleyin ve kendi çözümünüzü oluşturun.\n" @@ -2722,9 +2726,9 @@ adventures: {print} a + b ``` 6: - start_code: "{print} '5 kere 5 eder ' 5 * 5" + start_code: "{print} '5 artı 5 eder ' 5 + 5\n{print} '5 eksi 5 eder ' 5 - 5\n{print} '5 çarpı 5 eder ' 5 * 5\n{print} '5 bölü 5 eder ' 5 / 5\n" story_text: "## 1 + 1\nBu seviyede yeni bir şey öğreniyorsunuz: artık hesaplama da yapabileceksiniz.\n\nToplama kolaydır, matematikte olduğu gibi yazarsınız: Örneğin `5 + 5`. Çıkarma da iyi çalışır, `5 - 5` şeklindedir.\n\nÇarpma biraz farklıdır, çünkü klavyenizde çarpma simgesi yoktur. Arayın bakın, özel klavye değilse gerçekten yoktur!\nBu yüzden çarpmayı sayıların yanındaki yıldız işaretiyle yapıyoruz: `5 * 5`. Bunu \"5 çarpı 5\" olarak okuyun, en iyi şekilde böyle hatırlamanıza yardımcı olur.\n" - example_code: "```\n{print} '5 artı 5 eder ' 5 + 5\n{print} '5 eksi 5 eder ' 5 - 5\n{print} '5 çarpı 5 eder ' 5 * 5\n```\n" + example_code: "```\n{print} '5 artı 5 eder ' 5 + 5\n{print} '5 eksi 5 eder ' 5 - 5\n{print} '5 çarpı 5 eder ' 5 * 5\n{print} '5 bölü 5 eder ' 5 / 5\n```\n" name: matematik description: matematiğe giriş default_save_name: matematik @@ -2804,9 +2808,9 @@ adventures: story_text_3: "Bir şeyin başka bir şeye eşit *olmadığını* `!=` kullanarak karşılaştırabilirsiniz:\n" example_code_3: "```\nisim = {ask} 'Senin adın ne?'\n{if} isim != 'Hedy'\n {print} 'Sen Hedy değilsin.'\n```\n" 6: - story_text: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" - example_code: "```\nname = Hedy\nanswer = 20 + 4\n```\n" - start_code: "name = Hedy\nanswer = 20 + 4\n" + story_text: "Bir kelimeyi bir değişkende saklama konusunda da bir değişiklik yapıyoruz! Artık bir değişkende bir isim veya sayı sakladığımızda `{is}` yerine `=` kullanabilirsiniz, bunun gibi:\n" + example_code: "```\nisim = Hedy\ncevap = 20 + 4\n```\n" + start_code: "isim = Hedy\ncevap = 20 + 4\n" random_command: name: "{random}" description: şurada rastgele komutuna giriş @@ -2821,7 +2825,7 @@ adventures: story_text_3: "### Alıştırma\nBir kapı veya bir bavul seçtiğiniz ve içinde büyük bir ödül bulunan kendi oyun programınızı (televizyondakiler gibi) yapmak için `{at} {random}` komutunu deneyin!\nBunu yapabilir misiniz? İlk satırları sizin için örnek koda zaten koyduk.\n" example_code_3: "```\n{print} Büyük oyun gösterisi!\n{print} Önünüzde 3 bavul var...\nseçim {is} {ask} Hangi bavulu seçiyorsunuz?\nödüller {is} _\n_\n```\n" 16: - start_code: "meyve = ['elma', 'muz', 'kiraz']\n{print} meyve[rastgele]" + start_code: "arkadaşlar = ['Ahmet', 'Beren', 'Ceyda']\nşanslı_sayılar = [15, 18, 6]\n{for} i {in} {range} 1 {to} 3\n {print} arkadaşlar[i] ' için şanslı sayı'\n {print} şanslı_sayılar[i]" story_text: "Şimdi Python yöntemiyle listeler yapacağız, bu listelerin etrafında köşeli parantezler olacak! Ayrıca önceki seviyelerde öğrendiğimiz gibi her öğenin etrafında tırnak işaretlerini koyuyoruz.\nKöşeli parantezleri listedeki bir yeri belirtmek için kullanırız. {at} {random} komutu bu bölümde artık kullanılamaz." example_code: "```\narkadaşlar = ['Ahmet', 'Betül', 'Ceyda']\nşanslı_sayılar = [15, 18, 6]\n{for} i {in} {range} 1 {to} 3\n {print} arkadaşlar[i] ' için şanslı sayı'\n {print} şanslı_sayılar[i] ' sayısıdır' \n```\n" add_remove_command: @@ -2864,9 +2868,9 @@ adventures: example_code: "```\nisim {is} {ask} 'Senin adın ne?'\n{if} isim {is} Hedy\n {print} 'Hoşgeldin Hedy'\n {print} 'Bilgisayarında oynayabilirsin!'\n```\n" story_text: "## eğer... değilse...\nBir `{repeat}` komutundan sonra bir kod satır bloğunu tekrarlamayı öğrendiniz.\nŞimdi artık bir {if} veya {else} komutundan sonra bloklar oluşturmak için girinti de kullanabilirsiniz.\nÖrnek koda göz atın.\n\n### Alıştırma\nÖrnek koda bir {else} komutu ekleyin. Girinti kullanarak bir satır bloğu oluşturun. Bunu her satırı 4 boşlukla başlatarak yaparsınız.\n" 9: - start_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" - story_text: "In this level you can also put an {if} command inside another {if} command.\n" - example_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" + start_code: "devam = {ask} 'Devam etmek istiyor musun?'\n{if} devam = evet\n emin = {ask} 'Emin misin?'\n {if} emin {is} evet\n {print} 'Devam edeceğiz'\n {else}\n {print} 'Emin değilsin'\n{else}\n {print} 'Devam etmek istemiyorsun'\n" + story_text: "Bu seviyede bir {if} komutunu başka bir {if} komutunun içine de koyabilirsiniz.\n" + example_code: "devam = {ask} 'Devam etmek istiyor musun?'\n{if} devam = evet\n emin = {ask} 'Emin misin?'\n {if} emin {is} evet\n {print} 'Devam edeceğiz'\n {else}\n {print} 'Emin değilsin'\n{else}\n {print} 'Devam etmek istemiyorsun'\n" in_command: name: "{in}" description: içinde komutuna giriş @@ -2888,7 +2892,7 @@ adventures: story_text_2: "## Kısaltmalar\nÖnemli! Artık tırnak işareti kullandığımıza göre, Hedy'nin veya TC'de gibi kısaltmalar için kesme işareti kullandığınızda Hedy'nin kafasının karışacağını unutmayın.\nBu kesme işaretlerini kaldırdığınızdan ve yazım şeklini \"Hedy nin\" veya \"TC de\" olarak değiştirdiğinizden emin olun. (Tek tırnak için şimdilik başka çözümümüz yok).\nKesme işaretlerinin yanlış kullanım şeklini görmek için örnek koda göz atın.\n" example_code: "```\n{print} 'Şu andan itibaren tırnak işareti kullanmanız gerekiyor!'\ncevap {is} {ask} 'Bundan sonra ne kullanmamız gerekiyor?'\n{print} 'Kullanmamız gereken ' cevap\n```\n" example_code_2: "```\n_ Kesme işaretlerini kullanmanın yanlış yolu budur _\n{print} 'Ayşe'nin çocuklarına bakıyorum.'\n{print} 'Çocuklarla oyun'dan daha eğlenceli ne olabilir ki?'\n```\n" - start_code: "{print} 'Şu andan itibaren tırnak işareti kullanmanız gerekiyor!'\ncevap {is} {ask} 'Bundan sonra ne kullanmamız gerekiyor?'\n{print} 'Kullanmamız gereken ' cevap" + start_code: "{print} 'Şu andan itibaren tırnak işareti kullanmanız gerekiyor!'\ncevap {is} {ask} 'Bundan sonra ne kullanmamız gerekiyor?'\n{print} 'Bundan sonra ' cevap ' kullanmamız gerekiyor'" 12: story_text: "**Tüm metinlerin tırnak içinde olması gerekir**\nBu seviyeden itibaren bir metni `=` ile kaydederken tırnak işaretlerini de kullanmanız gerekecektir:\n" example_code: "```\nisim = 'Robot Hedy'\n{print} 'Merhaba ' isim\n```\n" diff --git a/content/adventures/zh_Hans.yaml b/content/adventures/zh_Hans.yaml index cd5e1880a28..47ba87358a1 100644 --- a/content/adventures/zh_Hans.yaml +++ b/content/adventures/zh_Hans.yaml @@ -602,22 +602,21 @@ adventures: story_text: | 在这一关,你可以用数学计算客人的订单总价,这会让你的虚拟餐厅更真实。 - example_code: |2 - - 你可以写一段简单的餐厅代码,像这样: - ``` - {print} '欢迎来到海蒂餐厅' - {print} '这是我们的菜单:' - {print} '我们的主菜有披萨、千层面、意面' - 主菜 = {ask} '您想要哪道主菜?' - 价格 = 0 - {if} 主菜 {is} 披萨 价格 = 10 - {if} 主菜 {is} 千层面 价格 = 12 - {if} 主菜 {is} 意面 价格 = 8 - {print} '您点了' 主菜 - {print} '请付' 价格 '元' - {print} '谢谢,祝您用餐愉快!' - ``` + example_code: | + 你可以写一段简单的餐厅代码,像这样: + ``` + {print} '欢迎来到海蒂餐厅' + {print} '这是我们的菜单:' + {print} '我们的主菜有披萨、千层面、意面' + 主菜 = {ask} '您想要哪道主菜?' + 价格 = 0 + {if} 主菜 {is} 披萨 价格 = 10 + {if} 主菜 {is} 千层面 价格 = 12 + {if} 主菜 {is} 意面 价格 = 8 + {print} '您点了' 主菜 + {print} '请付' 价格 '元' + {print} '谢谢,祝您用餐愉快!' + ``` start_code: "# 在这里写你的代码" 7: story_text: | @@ -821,18 +820,17 @@ adventures: story_text: | 在上一级,你创造了你的第一台算命机器,但海蒂不会算任何东西,只会“{echo}”。 在这一级,你可以用变量和`{at} {random}`命令来真正让海蒂为你选择一个答案。比如看看这段代码: - example_code: |2 - - 在这个例子里,玩家可以向海蒂{ask}一个是非题,然后海蒂会任意选择一个答案。 - ``` - {print} 我是海蒂半仙! - 问题 {is} {ask} 你想算什么? - {print} 你想算:问题 - 回答 {is} 是, 否, 有可能 - {print} 让我算一卦…… - {sleep} 2 - {print} 回答 {at} {random} - ``` + example_code: | + 在这个例子里,玩家可以向海蒂{ask}一个是非题,然后海蒂会任意选择一个答案。 + ``` + {print} 我是海蒂半仙! + 问题 {is} {ask} 你想算什么? + {print} 你想算:问题 + 回答 {is} 是, 否, 有可能 + {print} 让我算一卦…… + {sleep} 2 + {print} 回答 {at} {random} + ``` story_text_2: | ### 练习 现在海蒂只能回答是、否和有可能。你能否给海蒂更多回答选项,比如“肯定”或者“换个问题”。 diff --git a/content/quizzes/ar.yaml b/content/quizzes/ar.yaml index 084f1154927..cff98ed0d2f 100644 --- a/content/quizzes/ar.yaml +++ b/content/quizzes/ar.yaml @@ -280,7 +280,7 @@ levels: - option: "مرحبًا، هيدي هو اسمي" feedback: "يتم استبدال المتغير \"اسمي\" بـِ\"هيدي\"" - option: "مرحبًا، هيدي هو هيدي" - feedback: "صحيح! سيتم تصحيح هذا الخطأ في المستور الثالث!" + feedback: "صحيح! سيتم تصحيح هذا الخطأ في المستور الرابع!" correct_answer: "D" hint: "كلمة \"اسمي\" سيتم استبدالها بـِ\"هيدي\" مرتين" question_score: '10' diff --git a/content/quizzes/bg.yaml b/content/quizzes/bg.yaml index dca6b3a21b1..2d7924c14e7 100644 --- a/content/quizzes/bg.yaml +++ b/content/quizzes/bg.yaml @@ -280,7 +280,7 @@ levels: - option: "Hi my Hedy is name" feedback: "The variable name is replaced with Hedy" - option: "Hi my Hedy is Hedy" - feedback: "Correct, this mistake will be fixed in level 3!" + feedback: "Correct, this mistake will be fixed in level 4!" correct_answer: "D" hint: "'name' is being replaced with 'Hedy' in both places" question_score: '10' diff --git a/content/quizzes/bn.yaml b/content/quizzes/bn.yaml index a66f2e17fcd..acb37b75f24 100644 --- a/content/quizzes/bn.yaml +++ b/content/quizzes/bn.yaml @@ -280,7 +280,7 @@ levels: - option: "Hi my Hedy is name" feedback: "The variable name is replaced with Hedy" - option: "Hi my Hedy is Hedy" - feedback: "Correct, this mistake will be fixed in level 3!" + feedback: "Correct, this mistake will be fixed in level 4!" correct_answer: "D" hint: "'name' is being replaced with 'Hedy' in both places" question_score: '10' diff --git a/content/quizzes/ca.yaml b/content/quizzes/ca.yaml index 19cb124c13d..99810cd6e44 100644 --- a/content/quizzes/ca.yaml +++ b/content/quizzes/ca.yaml @@ -861,7 +861,7 @@ levels: - option: Hi my Hedy is name feedback: The variable name is replaced with Hedy - option: Hi my Hedy is Hedy - feedback: Correct, this mistake will be fixed in level 3! + feedback: Correct, this mistake will be fixed in level 4! correct_answer: D hint: "'name' is being replaced with 'Hedy' in both places" question_score: '10' diff --git a/content/quizzes/cs.yaml b/content/quizzes/cs.yaml index b7233ac869c..73d74add2d5 100644 --- a/content/quizzes/cs.yaml +++ b/content/quizzes/cs.yaml @@ -280,7 +280,7 @@ levels: - option: "Ahoj moje Hedy je jméno" feedback: "The variable name is replaced with Hedy" - option: "Hi my Hedy is Hedy" - feedback: "Correct, this mistake will be fixed in level 3!" + feedback: "Correct, this mistake will be fixed in level 4!" correct_answer: "D" hint: "'name' is being replaced with 'Hedy' in both places" question_score: '10' diff --git a/content/quizzes/cy.yaml b/content/quizzes/cy.yaml index 621a6ca390a..ace2221884d 100644 --- a/content/quizzes/cy.yaml +++ b/content/quizzes/cy.yaml @@ -211,7 +211,7 @@ levels: - option: Hi my Hedy is name feedback: The variable name is replaced with Hedy - option: Hi my Hedy is Hedy - feedback: Correct, this mistake will be fixed in level 3! + feedback: Correct, this mistake will be fixed in level 4! question_text: What will you see on the output screen when you run this code? correct_answer: D hint: "'name' is being replaced with 'Hedy' in both places" diff --git a/content/quizzes/da.yaml b/content/quizzes/da.yaml index 221abad6bb1..16438c4ff90 100644 --- a/content/quizzes/da.yaml +++ b/content/quizzes/da.yaml @@ -241,7 +241,7 @@ levels: - feedback: The variable name is replaced with Hedy option: Hi my Hedy is name - option: Hi my Hedy is Hedy - feedback: Correct, this mistake will be fixed in level 3! + feedback: Correct, this mistake will be fixed in level 4! correct_answer: D hint: "'name' is being replaced with 'Hedy' in both places" question_score: '10' diff --git a/content/quizzes/de.yaml b/content/quizzes/de.yaml index cb57682839d..8d8a360d898 100644 --- a/content/quizzes/de.yaml +++ b/content/quizzes/de.yaml @@ -263,7 +263,7 @@ levels: - option: "Hi my Hedy is name" feedback: "Der Variablenname wird durch Hedy ersetzt" - option: "Hi my Hedy is Hedy" - feedback: "Richtig, dieser Fehler wird in Level 3 behoben!" + feedback: "Richtig, dieser Fehler wird in Level 4 behoben!" correct_answer: "D" hint: "'name' wird an beiden Stellen durch 'Hedy' ersetzt" question_score: '10' diff --git a/content/quizzes/el.yaml b/content/quizzes/el.yaml index f10bc778081..5d791151662 100644 --- a/content/quizzes/el.yaml +++ b/content/quizzes/el.yaml @@ -280,7 +280,7 @@ levels: - option: "Hi my Hedy is name" feedback: "The variable name is replaced with Hedy" - option: "Hi my Hedy is Hedy" - feedback: "Correct, this mistake will be fixed in level 3!" + feedback: "Correct, this mistake will be fixed in level 4!" correct_answer: "D" hint: "'name' is being replaced with 'Hedy' in both places" question_score: '10' diff --git a/content/quizzes/en.yaml b/content/quizzes/en.yaml index 35221f4d0e7..d887ef14ab2 100644 --- a/content/quizzes/en.yaml +++ b/content/quizzes/en.yaml @@ -264,7 +264,7 @@ levels: - option: "Hi my Hedy is name" feedback: "The variable name is replaced with Hedy" - option: "Hi my Hedy is Hedy" - feedback: "Correct, this mistake will be fixed in level 3!" + feedback: "Correct, this mistake will be fixed in level 4!" correct_answer: "D" hint: "'name' is being replaced with 'Hedy' in both places" question_score: '10' @@ -2603,10 +2603,10 @@ levels: feedback: "Alright!" - option: |2 - ``` - flavors = 'vanilla, strawberry, chocolate' - {print} 'I would like a ' flavors {at} {random} ' cake.' - ``` + ``` + flavors = 'vanilla, strawberry, chocolate' + {print} 'I would like a ' flavors {at} {random} ' cake.' + ``` feedback: "All the different values of flavors should be in quotation marks." correct_answer: "C" hint: "The second line is the same in each code, pay attention to the first line" @@ -2666,9 +2666,9 @@ levels: password {is} {ask} 'What is the password?' {if} password {is} 'TOPSECRET' b {is} 'tomorrow at 02.00' - else + {else} b {is} 'today at 10.00' - print a + b + {print} a + b mp_choice_options: - option: "Go to the train station today at 10.00" feedback: "The agent won't be catching any bad guys here" @@ -2811,7 +2811,7 @@ levels: ``` 'prizes' = 'one million dollars', 'nothing' ``` - feedback: "You one nothing" + feedback: "You won nothing" correct_answer: "C" hint: "The items on the list should be in quotation marks" question_score: '10' @@ -2820,7 +2820,7 @@ levels: code: |- actions = 'clap your hands', 'stomp your feet', 'shout Hurray!' ??? - {for} i {in} range 0 {to} 1 + {for} i {in} {range} 0 {to} 1 {print} 'if youre happy and you know it' {print} action {print} 'if youre happy and you know it and you really want to show it' @@ -3152,7 +3152,7 @@ levels: price = 10 money = {ask} How much money do you have? buy = {ask} 'Would you like to buy this teddy bear?' - {if} money >= price and buy == 'yes' + {if} money >= price {and} buy == 'yes' {print} 'You can buy the bear!' {else} {print} 'You cannot buy this bear!' @@ -3173,7 +3173,7 @@ levels: code: | age = {ask} 'How old are you?' ticket = {ask} 'Do you have a ticket?' - {if} age _ and ticket == 'yes' + {if} age _ {and} ticket == 'yes' {print} 'You can enter the movie theater.' {else} {print} 'You are not allowed to come in!' @@ -3193,7 +3193,7 @@ levels: question_text: "How many times do you have to say you are annoyed before this annoying game stops?" code: | lives = 2 - {repeat} 10 times + {repeat} 10 {times} {if} lives != 0 answer = {ask} 'Are you annoyed yet?' {if} answer == 'yes' @@ -3265,7 +3265,7 @@ levels: chocolate = {ask} 'How many pieces of chocolate have you eaten?' {if} chocolate <= 2 {print} 'That is a healthy amount' - {if} chocolate > 2 and chocolate =< 8 + {if} chocolate > 2 {and} chocolate =< 8 {print} 'That is a bit much' {if} chocolate > 8 {print} 'You will get a stomach ache!' @@ -3304,9 +3304,9 @@ levels: question_text: "Which symbol should be used on the blank? Tip: You must keep guessing until you get it right." code: | answer = 0 - while answer _ 'Amsterdam' - answer = ask 'What is the capital city of the Netherlands?' - print 'You have given the correct answer' + {while} answer _ 'Amsterdam' + answer = {ask} 'What is the capital city of the Netherlands?' + {print} 'You have given the correct answer' mp_choice_options: - option: "`=!`" feedback: "That is not right." @@ -3346,10 +3346,10 @@ levels: hint: "When you are comparing two answers you should use ==" question_score: "10" 3: - question_text: "Which command should be filled in on the two blanks?" + question_text: "Which command should be filled in on the blank?" code: | - _ age >= 18 - print 'you are not allowed in this bar' + _ age < 18 + {print} 'you are not allowed in this bar' mp_choice_options: - option: "`{in}`" feedback: "That's not it" @@ -3366,20 +3366,20 @@ levels: question_text: "What's wrong with this code?" code: | options = 1, 2, 3, 4, 5, 6 - print 'Throw 6 as fast as you can!' + {print} 'Throw 6 as fast as you can!' thrown = 0 tries = 0 - while thrown == 6 - thrown = options at random - print 'You threw ' thrown + {while} thrown == 6 + thrown = options {at} {random} + {print} 'You threw ' thrown tries = tries + 1 - print 'Yes! You have thrown 6 in ' tries ' tries.' + {print} 'Yes! You have thrown 6 in ' tries ' tries.' mp_choice_options: - option: "In line 1 == should be used instead of =" feedback: "No that's not it" - option: "Line 2 misses quotation marks" feedback: "That's not right" - - option: "In line 5 if should have been used instead of while" + - option: "In line 5 {if} should have been used instead of {while}" feedback: "That's not it" - option: "In line 5 != should have been used instead of ==" feedback: "You are correct" @@ -3390,13 +3390,13 @@ levels: question_text: "What should be placed on the blank to make this program work correctly?" code: | wetness = 10 - while wetness != 0 - print 'Your hair is still wet, hair dryer on!' - sleep 1 - clear + {while} wetness != 0 + {print} 'Your hair is still wet, hair dryer on!' + {sleep} 1 + {clear} wetness _ - print 'All dry!' + {print} 'All dry!' mp_choice_options: - option: "= wetness" feedback: "That will not change anything" @@ -3415,12 +3415,12 @@ levels: lives = 100 {while} lives != 0 answer = {ask} 'Are you annoyed yet?' - {if} answer == 'yes' - lives = lives - 1 + {if} answer == 'yes' + lives = lives - 1 mp_choice_options: - - option: "while should be if" + - option: "{while} should be {if}" feedback: "No that is not right" - - option: "if should be while" + - option: "{if} should be {while}" feedback: "No that is not right" - option: "Line 3 should start with more indentation" feedback: "No that's not right" @@ -3430,7 +3430,7 @@ levels: hint: "Look closely at the indentation" question_score: "10" 7: - question_text: "How should this program be changed to that it works?" + question_text: "How should this program be changed so that it works?" code: | {print} 'Guess which number' numbers = 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 @@ -3460,11 +3460,11 @@ levels: 8: question_text: "Which statement is true about this automated toilet system?" code: | - while toilet == 'occupied' + {while} toilet == 'occupied' lights = 'on' air_freshener_sprays = 'yes' - sleep 60 - else + {sleep} 60 + {else} lights = 'off' mp_choice_options: - option: "The lights and air freshener will turn off after 1 minute" @@ -3476,7 +3476,7 @@ levels: - option: "The lights will always stay on." feedback: "That wouldn't be right." correct_answer: "B" - hint: "The block after the while command keeps happening while the toilet is occupied." + hint: "The block after the {while} command keeps happening while the toilet is occupied." question_score: "10" 9: question_text: "What will the diet app say if you have eaten 1600 calories today?" @@ -3484,7 +3484,7 @@ levels: calories = {ask} 'How many calories have you eaten today?' {while} calories <= 1000 {print} 'You could eat some more' - {while} calories > 1000 and calories =< 2000 + {while} calories > 1000 {and} calories =< 2000 {print} 'That is alright' {while} calories > 2000 {print} 'You have had enough for today' diff --git a/content/quizzes/eo.yaml b/content/quizzes/eo.yaml index a8196683a09..9b624ab323f 100644 --- a/content/quizzes/eo.yaml +++ b/content/quizzes/eo.yaml @@ -362,7 +362,7 @@ levels: - option: Saluton mia Hedy estas nomo feedback: La variablo `nomo` estas anstataŭigota per `Hedy` - option: Saluton mia Hedy estas Hedy - feedback: Correct, this mistake will be fixed in level 3! + feedback: Correct, this mistake will be fixed in level 4! correct_answer: D hint: "'name' is being replaced with 'Hedy' in both places" question_score: '10' diff --git a/content/quizzes/et.yaml b/content/quizzes/et.yaml index 1a197ac3d9f..e09e439b1a3 100644 --- a/content/quizzes/et.yaml +++ b/content/quizzes/et.yaml @@ -211,7 +211,7 @@ levels: - option: Hi my Hedy is name feedback: The variable name is replaced with Hedy - option: Hi my Hedy is Hedy - feedback: Correct, this mistake will be fixed in level 3! + feedback: Correct, this mistake will be fixed in level 4! question_score: '10' code: "name {is} Hedy\n{print} Hi my name is name!" correct_answer: D diff --git a/content/quizzes/fa.yaml b/content/quizzes/fa.yaml index b171629116a..32a1de9e77e 100644 --- a/content/quizzes/fa.yaml +++ b/content/quizzes/fa.yaml @@ -280,7 +280,7 @@ levels: - option: "Hi my Hedy is name" feedback: "The variable name is replaced with Hedy" - option: "Hi my Hedy is Hedy" - feedback: "Correct, this mistake will be fixed in level 3!" + feedback: "Correct, this mistake will be fixed in level 4!" correct_answer: "D" hint: "'name' is being replaced with 'Hedy' in both places" question_score: '10' diff --git a/content/quizzes/fi.yaml b/content/quizzes/fi.yaml index 5509c474b5b..68163aa6b7d 100644 --- a/content/quizzes/fi.yaml +++ b/content/quizzes/fi.yaml @@ -68,7 +68,7 @@ levels: - option: Hi my Hedy is name feedback: The variable name is replaced with Hedy - option: Hi my Hedy is Hedy - feedback: Correct, this mistake will be fixed in level 3! + feedback: Correct, this mistake will be fixed in level 4! correct_answer: D hint: "'name' is being replaced with 'Hedy' in both places" question_score: '10' diff --git a/content/quizzes/fr.yaml b/content/quizzes/fr.yaml index c76d4a8ec40..df11e3f370a 100644 --- a/content/quizzes/fr.yaml +++ b/content/quizzes/fr.yaml @@ -232,7 +232,7 @@ levels: - option: "Salut mon Hedy est nom" feedback: "La variable nom est remplacé par Hedy" - option: "Salut mon Hedy est Hedy" - feedback: "Correct, ce problème sera corrigé dans le niveau 3 !" + feedback: "Correct, ce problème sera corrigé dans le niveau 4 !" correct_answer: "D" hint: "Le mot 'nom' est remplacé par 'Hedy' aux deux endroits" question_score: '10' diff --git a/content/quizzes/fy.yaml b/content/quizzes/fy.yaml index bae8f4f1108..94c0fc7e5e6 100644 --- a/content/quizzes/fy.yaml +++ b/content/quizzes/fy.yaml @@ -280,7 +280,7 @@ levels: - option: "Hi my Hedy is name" feedback: "The variable name is replaced with Hedy" - option: "Hi my Hedy is Hedy" - feedback: "Correct, this mistake will be fixed in level 3!" + feedback: "Correct, this mistake will be fixed in level 4!" correct_answer: "D" hint: "'name' is being replaced with 'Hedy' in both places" question_score: '10' diff --git a/content/quizzes/he.yaml b/content/quizzes/he.yaml index ee3175b1244..9ca74e2216e 100644 --- a/content/quizzes/he.yaml +++ b/content/quizzes/he.yaml @@ -181,7 +181,7 @@ levels: - option: Hi my Hedy is name feedback: The variable name is replaced with Hedy - option: Hi my Hedy is Hedy - feedback: Correct, this mistake will be fixed in level 3! + feedback: Correct, this mistake will be fixed in level 4! question_text: What will you see on the output screen when you run this code? code: "name {is} Hedy\n{print} Hi my name is name!" correct_answer: D diff --git a/content/quizzes/hi.yaml b/content/quizzes/hi.yaml index 8f027fb651f..5fcaf6bc941 100644 --- a/content/quizzes/hi.yaml +++ b/content/quizzes/hi.yaml @@ -280,7 +280,7 @@ levels: - option: "Hi my Hedy is name" feedback: "The variable name is replaced with Hedy" - option: "Hi my Hedy is Hedy" - feedback: "Correct, this mistake will be fixed in level 3!" + feedback: "Correct, this mistake will be fixed in level 4!" correct_answer: "D" hint: "'name' is being replaced with 'Hedy' in both places" question_score: '10' diff --git a/content/quizzes/hu.yaml b/content/quizzes/hu.yaml index 934347a479e..3993726f490 100644 --- a/content/quizzes/hu.yaml +++ b/content/quizzes/hu.yaml @@ -280,7 +280,7 @@ levels: - option: "Hi my Hedy is name" feedback: "The variable name is replaced with Hedy" - option: "Hi my Hedy is Hedy" - feedback: "Correct, this mistake will be fixed in level 3!" + feedback: "Correct, this mistake will be fixed in level 4!" correct_answer: "D" hint: "'name' is being replaced with 'Hedy' in both places" question_score: '10' diff --git a/content/quizzes/id.yaml b/content/quizzes/id.yaml index 470e6367fda..a2c2e753fdb 100644 --- a/content/quizzes/id.yaml +++ b/content/quizzes/id.yaml @@ -280,7 +280,7 @@ levels: - option: "Hi my Hedy is name" feedback: "The variable name is replaced with Hedy" - option: "Hi my Hedy is Hedy" - feedback: "Correct, this mistake will be fixed in level 3!" + feedback: "Correct, this mistake will be fixed in level 4!" correct_answer: "D" hint: "'name' is being replaced with 'Hedy' in both places" question_score: '10' diff --git a/content/quizzes/it.yaml b/content/quizzes/it.yaml index 185c87b7b68..50bd72aa72c 100644 --- a/content/quizzes/it.yaml +++ b/content/quizzes/it.yaml @@ -280,7 +280,7 @@ levels: - option: "Hi my Hedy is name" feedback: "The variable name is replaced with Hedy" - option: "Hi my Hedy is Hedy" - feedback: "Correct, this mistake will be fixed in level 3!" + feedback: "Correct, this mistake will be fixed in level 4!" correct_answer: "D" hint: "'name' is being replaced with 'Hedy' in both places" question_score: '10' diff --git a/content/quizzes/ja.yaml b/content/quizzes/ja.yaml index 112a697dd7c..beb0586610d 100644 --- a/content/quizzes/ja.yaml +++ b/content/quizzes/ja.yaml @@ -83,7 +83,7 @@ levels: - option: Hi my Hedy is name feedback: The variable name is replaced with Hedy - option: Hi my Hedy is Hedy - feedback: Correct, this mistake will be fixed in level 3! + feedback: Correct, this mistake will be fixed in level 4! correct_answer: D hint: "'name' is being replaced with 'Hedy' in both places" question_score: '10' diff --git a/content/quizzes/kmr.yaml b/content/quizzes/kmr.yaml index d713ca6375d..754fcab5146 100644 --- a/content/quizzes/kmr.yaml +++ b/content/quizzes/kmr.yaml @@ -99,7 +99,7 @@ levels: - option: Hi my Hedy is name feedback: The variable name is replaced with Hedy - option: Hi my Hedy is Hedy - feedback: Correct, this mistake will be fixed in level 3! + feedback: Correct, this mistake will be fixed in level 4! correct_answer: D hint: "'name' is being replaced with 'Hedy' in both places" question_score: '10' diff --git a/content/quizzes/ko.yaml b/content/quizzes/ko.yaml index 473f8ad117b..05fae89ea54 100644 --- a/content/quizzes/ko.yaml +++ b/content/quizzes/ko.yaml @@ -1254,7 +1254,7 @@ levels: - option: 안녕 나는 Hedy 는 name 다 feedback: 변수명이 Hedy로 대체되었습니다 - option: 안녕 나는 Hedy 는 Hedy 다 - feedback: 맞아요, 이 실수는 레벨 3에서 고쳐질꺼에요! + feedback: 맞아요, 이 실수는 레벨 4에서 고쳐질꺼에요! correct_answer: D hint: "'name' 이 두곳 모두에서 'Hedy' 로 변경되고 있어요" question_score: '10' diff --git a/content/quizzes/nb_NO.yaml b/content/quizzes/nb_NO.yaml index 81554c358d7..c00d06540df 100644 --- a/content/quizzes/nb_NO.yaml +++ b/content/quizzes/nb_NO.yaml @@ -510,7 +510,7 @@ levels: - option: Hei mitt Hedy er navn! feedback: Variabelen 'navn' blir byttet ut med Hedy i teksten - option: Hei mitt Hedy er Hedy! - feedback: Riktig, denne feilen blir fikset i nivå 3! + feedback: Riktig, denne feilen blir fikset i nivå 4! correct_answer: D hint: "'navn' blir byttet ut med 'Hedy' begge plassene" question_score: '10' diff --git a/content/quizzes/nl.yaml b/content/quizzes/nl.yaml index 48a48849ab0..2e3f28ced28 100644 --- a/content/quizzes/nl.yaml +++ b/content/quizzes/nl.yaml @@ -280,7 +280,7 @@ levels: - option: "Hoi mijn Hedy is naam" feedback: "Het woord naam wordt vervangen door Hedy" - option: "Hoi mijn Hedy is Hedy" - feedback: "Juist! Dit probleem wordt opgelost in level 3!" + feedback: "Juist! Dit probleem wordt opgelost in level 4!" correct_answer: "D" hint: "'naam' wordt beide keren vervangen door 'Hedy'" question_score: '10' diff --git a/content/quizzes/pa_PK.yaml b/content/quizzes/pa_PK.yaml index bdd8e57f2bf..a399426ad2e 100644 --- a/content/quizzes/pa_PK.yaml +++ b/content/quizzes/pa_PK.yaml @@ -227,7 +227,7 @@ levels: - option: Hi my Hedy is name feedback: The variable name is replaced with Hedy - option: Hi my Hedy is Hedy - feedback: Correct, this mistake will be fixed in level 3! + feedback: Correct, this mistake will be fixed in level 4! correct_answer: D hint: "'name' is being replaced with 'Hedy' in both places" question_score: '10' diff --git a/content/quizzes/pl.yaml b/content/quizzes/pl.yaml index 412e81789bd..3a24ce3b5ee 100644 --- a/content/quizzes/pl.yaml +++ b/content/quizzes/pl.yaml @@ -264,7 +264,7 @@ levels: - option: "Hi my Hedy is name" feedback: "Zmienna imię jest zamieniona na Hedy" - option: "Hi my Hedy is Hedy" - feedback: "Zgadza się, ten błąd zostanie naprawiony w poziomie 3!" + feedback: "Zgadza się, ten błąd zostanie naprawiony w poziomie 4!" correct_answer: "D" hint: "'imię' jest zamienione na 'Hedy' w obu miejscach" question_score: '10' diff --git a/content/quizzes/pt_BR.yaml b/content/quizzes/pt_BR.yaml index be4d7dd2485..8a5865267da 100644 --- a/content/quizzes/pt_BR.yaml +++ b/content/quizzes/pt_BR.yaml @@ -280,7 +280,7 @@ levels: - option: "Hi my Hedy is name" feedback: "The variable name is replaced with Hedy" - option: "Hi my Hedy is Hedy" - feedback: "Correct, this mistake will be fixed in level 3!" + feedback: "Correct, this mistake will be fixed in level 4!" correct_answer: "D" hint: "'name' is being replaced with 'Hedy' in both places" question_score: '10' diff --git a/content/quizzes/pt_PT.yaml b/content/quizzes/pt_PT.yaml index d9f6f2664bf..0016a8a2a81 100644 --- a/content/quizzes/pt_PT.yaml +++ b/content/quizzes/pt_PT.yaml @@ -280,7 +280,7 @@ levels: - option: "Hi my Hedy is name" feedback: "The variable name is replaced with Hedy" - option: "Hi my Hedy is Hedy" - feedback: "Correct, this mistake will be fixed in level 3!" + feedback: "Correct, this mistake will be fixed in level 4!" correct_answer: "D" hint: "'name' is being replaced with 'Hedy' in both places" question_score: '10' diff --git a/content/quizzes/ro.yaml b/content/quizzes/ro.yaml index 04f1c2e0ebd..d40815ea618 100644 --- a/content/quizzes/ro.yaml +++ b/content/quizzes/ro.yaml @@ -69,7 +69,7 @@ levels: - option: Hi my Hedy is name feedback: The variable name is replaced with Hedy - option: Hi my Hedy is Hedy - feedback: Correct, this mistake will be fixed in level 3! + feedback: Correct, this mistake will be fixed in level 4! correct_answer: D hint: "'name' is being replaced with 'Hedy' in both places" question_score: '10' diff --git a/content/quizzes/ru.yaml b/content/quizzes/ru.yaml index cd9c433dc5c..6a3574e606c 100644 --- a/content/quizzes/ru.yaml +++ b/content/quizzes/ru.yaml @@ -280,7 +280,7 @@ levels: - option: "Hi my Hedy is name" feedback: "The variable name is replaced with Hedy" - option: "Hi my Hedy is Hedy" - feedback: "Correct, this mistake will be fixed in level 3!" + feedback: "Correct, this mistake will be fixed in level 4!" correct_answer: "D" hint: "'name' is being replaced with 'Hedy' in both places" question_score: '10' diff --git a/content/quizzes/sq.yaml b/content/quizzes/sq.yaml index 3beecf5ce66..6907a6e524f 100644 --- a/content/quizzes/sq.yaml +++ b/content/quizzes/sq.yaml @@ -69,7 +69,7 @@ levels: - option: Hi my Hedy is name feedback: The variable name is replaced with Hedy - option: Hi my Hedy is Hedy - feedback: Correct, this mistake will be fixed in level 3! + feedback: Correct, this mistake will be fixed in level 4! correct_answer: D hint: "'name' is being replaced with 'Hedy' in both places" question_score: '10' diff --git a/content/quizzes/sr.yaml b/content/quizzes/sr.yaml index 7846cc55e0b..1e84c8b23dc 100644 --- a/content/quizzes/sr.yaml +++ b/content/quizzes/sr.yaml @@ -226,7 +226,7 @@ levels: - option: Hi my Hedy is name feedback: The variable name is replaced with Hedy - option: Hi my Hedy is Hedy - feedback: Correct, this mistake will be fixed in level 3! + feedback: Correct, this mistake will be fixed in level 4! correct_answer: D hint: "'name' is being replaced with 'Hedy' in both places" question_score: '10' diff --git a/content/quizzes/sv.yaml b/content/quizzes/sv.yaml index acd84e9cd49..d7ebcc5f0e9 100644 --- a/content/quizzes/sv.yaml +++ b/content/quizzes/sv.yaml @@ -210,7 +210,7 @@ levels: - feedback: Variabeln namn ersätts med Hedy option: Hej mitt Hedy är namn - option: Hej mitt Hedy är Hedy - feedback: Stämmer – det misstaget kommer att rättas till på nivå 3! + feedback: Stämmer – det misstaget kommer att rättas till på nivå 4! correct_answer: D hint: "'namn' ersätts med 'Hedy' på båda ställena" question_score: '10' diff --git a/content/quizzes/sw.yaml b/content/quizzes/sw.yaml index 181d6a2942c..4e2fa7db5bb 100644 --- a/content/quizzes/sw.yaml +++ b/content/quizzes/sw.yaml @@ -280,7 +280,7 @@ levels: - option: "Hi my Hedy is name" feedback: "The variable name is replaced with Hedy" - option: "Hi my Hedy is Hedy" - feedback: "Correct, this mistake will be fixed in level 3!" + feedback: "Correct, this mistake will be fixed in level 4!" correct_answer: "D" hint: "'name' is being replaced with 'Hedy' in both places" question_score: '10' diff --git a/content/quizzes/te.yaml b/content/quizzes/te.yaml index 37bd2dab7d6..360bb6420b0 100644 --- a/content/quizzes/te.yaml +++ b/content/quizzes/te.yaml @@ -212,7 +212,7 @@ levels: - option: Hi my Hedy is name feedback: The variable name is replaced with Hedy - option: Hi my Hedy is Hedy - feedback: Correct, this mistake will be fixed in level 3! + feedback: Correct, this mistake will be fixed in level 4! correct_answer: D hint: "'name' is being replaced with 'Hedy' in both places" question_score: '10' diff --git a/content/quizzes/th.yaml b/content/quizzes/th.yaml index c05ad20056a..d71192d98a4 100644 --- a/content/quizzes/th.yaml +++ b/content/quizzes/th.yaml @@ -85,7 +85,7 @@ levels: feedback: The variable name is replaced with Hedy - option: Hi my Hedy is name feedback: The variable name is replaced with Hedy - - feedback: Correct, this mistake will be fixed in level 3! + - feedback: Correct, this mistake will be fixed in level 4! option: Hi my Hedy is Hedy correct_answer: D hint: "'name' is being replaced with 'Hedy' in both places" diff --git a/content/quizzes/tl.yaml b/content/quizzes/tl.yaml index cbda676cd6d..82f9b65b59b 100644 --- a/content/quizzes/tl.yaml +++ b/content/quizzes/tl.yaml @@ -196,7 +196,7 @@ levels: - feedback: The variable name is replaced with Hedy option: Hi my Hedy is name - option: Hi my Hedy is Hedy - feedback: Correct, this mistake will be fixed in level 3! + feedback: Correct, this mistake will be fixed in level 4! correct_answer: D hint: "'name' is being replaced with 'Hedy' in both places" question_score: '10' diff --git a/content/quizzes/tn.yaml b/content/quizzes/tn.yaml index fdcf96e2661..e8414815623 100644 --- a/content/quizzes/tn.yaml +++ b/content/quizzes/tn.yaml @@ -271,7 +271,7 @@ levels: - option: Hi my Hedy is name feedback: The variable name is replaced with Hedy - option: Hi my Hedy is Hedy - feedback: Correct, this mistake will be fixed in level 3! + feedback: Correct, this mistake will be fixed in level 4! correct_answer: D hint: "'name' is being replaced with 'Hedy' in both places" code: "name {is} Hedy\n{print} Hi my name is name!" diff --git a/content/quizzes/tr.yaml b/content/quizzes/tr.yaml index 4d7902bc19d..b13e6e35045 100644 --- a/content/quizzes/tr.yaml +++ b/content/quizzes/tr.yaml @@ -264,7 +264,7 @@ levels: - option: "Merhaba benim Hedy adım!" feedback: "adım değişkeni Hedy ile değiştirilir" - option: "Merhaba benim Hedy Hedy!" - feedback: "Doğru, ve bu hatayı düzeltmeyi 3. seviyede göreceksin!" + feedback: "Doğru, ve bu hatayı düzeltmeyi 4. seviyede göreceksin!" correct_answer: "D" hint: "'adım' kelimesi her iki yerde de 'Hedy' ile değiştirilir" question_score: '10' @@ -2474,601 +2474,601 @@ levels: 12: 2: correct_answer: C - question_text: Which of these codes is correct? - mp_choice_options: - - option: "```\nflavors {is} vanilla, strawberry, chocolate\n{print} 'I would like a ' flavors {at} {random} ' cake.'\n```" - feedback: All the different values of flavors should be in quotation marks. - - option: "```\n'flavors = vanilla, strawberry, chocolate'\n{print} 'I would like a ' flavors {at} {random} ' cake.'\n```" - feedback: All the different values of flavors should be in quotation marks. - - option: "```\nflavors = 'vanilla', 'strawberry', 'chocolate'\n{print} 'I would like a ' flavors {at} {random} ' cake.'\n```" - feedback: Alright! - - option: "\n```\nflavors = 'vanilla, strawberry, chocolate'\n{print} 'I would like a ' flavors {at} {random} ' cake.'\n```\n" - feedback: All the different values of flavors should be in quotation marks. - hint: The second line is the same in each code, pay attention to the first line + question_text: Bu kodlardan hangisi doğrudur? + mp_choice_options: + - option: "```\nçeşitler {is} vanilyalı, çilekli, çikolatalı\n{print} 'Benim istediğim ' çeşitler {at} {random} ' kek.'\n```" + feedback: Tüm farklı aroma çeşitleri tırnak işareti içinde olmalıdır. + - option: "```\n'çeşitler = vanilyalı, çilekli, çikolatalı'\n{print} 'Benim istediğim ' çeşitler {at} {random} ' kek.'\n```" + feedback: Tüm farklı aroma çeşitleri tırnak işareti içinde olmalıdır. + - option: "```\nçeşitler = 'vanilyalı', 'çilekli', 'çikolatalı'\n{print} 'Benim istediğim ' çeşitler {at} {random} ' kek.'\n```" + feedback: Tamamdır! + - option: "\n```\nçeşitler = 'vanilyalı, çilekli, çikolatalı'\n{print} 'Benim istediğim ' çeşitler {at} {random} ' kek.'\n```\n" + feedback: Tüm farklı aroma çeşitleri tırnak işareti içinde olmalıdır. + hint: İkinci satır her kodda aynıdır, ilk satıra dikkat edin question_score: '10' 3: mp_choice_options: - - option: "The name of the variable is different in line 1 than in line 2.\n" - feedback: Correct! - - option: "The quotation marks aren't used correctly in line 2\n" - feedback: That's not true - - feedback: That's not true - option: "You can't use the = sign when using an {ask} command\n" - - option: "Nothing is wrong.\n" - feedback: That's not true - hint: The quotation marks are used correctly + - option: "Değişkenin adı 1. satırda 2. satırdakinden farklıdır.\n" + feedback: Doğru! + - option: "Satır 2'de tırnak işaretleri doğru kullanılmamış\n" + feedback: Bu doğru değil + - feedback: Bu doğru değil + option: "Bir {ask} komutu kullanırken = işaretini kullanamazsınız\n" + - option: "Hiçbir sorun yok\n" + feedback: Bu doğru değil + hint: Tırnak işaretleri doğru kullanılmış question_score: '10' question_text: Bu kodun ne sorunu var? - code: "favorite_animal = {ask} 'What is your favorite animal?'\n{print} 'I like ' favoriteanimal ' too!'" + code: "favori_hayvan = {ask} 'En sevdiğin hayvan hangisi?'\n{print} 'Ben de ' favorihayvan ' seviyorum!'" correct_answer: A 4: mp_choice_options: - - feedback: No - option: "Line 1 and 2\n" - - option: "Line 1, 2 and 3\n" - feedback: No - - option: "Line 1, 2 and 4\n" - feedback: No - - option: "All of the lines\n" - feedback: Perfect! - question_text: In which lines are quotation marks needed to get the code to work? - code: "{print} Welcome to the online shoe shop\ncategory = {ask} What kind of shoes are you looking for?\n{if} category = high heels\n {print} High heels are 50% off now!" + - feedback: Hayır + option: "Satır 1 ve 2\n" + - option: "Satır 1, 2 ve 3\n" + feedback: Hayır + - option: "Satır 1, 2 ve 4\n" + feedback: Hayır + - option: "Tüm satırlarda\n" + feedback: Mükemmel! + question_text: Kodun çalışması için hangi satırlarda tırnak işareti gerekiyor? + code: "{print} Online ayakkabı mağazasına hoş geldiniz\nkategori = {ask} Ne tür bir ayakkabı arıyorsunuz?\n{if} kategori = yüksek topuklu\n {print} Yüksek topuklar şimdi %50 indirimli!" correct_answer: D - hint: Does line 3 need quotation marks too? + hint: 3. satırın da tırnak işaretine ihtiyacı var mı? question_score: '10' 5: - question_text: What output does Agent007 get when they put in the correct password? - code: "name {is} {ask} 'What is your name?'\n{if} name {is} 'Agent007'\n a {is} 'Go to the airport '\nelse\n a {is} 'Go to the train station '\npassword {is} {ask} 'What is the password?'\n{if} password {is} 'TOPSECRET'\n b {is} 'tomorrow at 02.00'\nelse\n b {is} 'today at 10.00'\nprint a + b" - mp_choice_options: - - option: Go to the train station today at 10.00 - feedback: The agent won't be catching any bad guys here - - option: Go to the airport tomorrow at 02.00 - feedback: You've cracked the code! - - option: Go to the train station tomorrow at 02.00 - feedback: The agent won't be catching any bad guys here - - option: Go to the airport tomorrow at 10.00 - feedback: The agent won't be catching any bad guys here + question_text: Ajan007 doğru şifreyi girdiğinde hangi gizli bilgiyi alır? + code: "isim {is} {ask} 'Adınız nedir?'\n{if} isim {is} 'Ajan007'\n yer {is} 'Havaalanına git '\nelse\n yer {is} 'Tren istasyonuna git'\nşifre {is} {ask} 'Şifre nedir?'\n{if} şifre {is} 'ÇOKGİZLİ'\n zaman {is} 'Yarın saat 02.00 de, '\n{else}\n zaman {is} 'Bugün saat 10.00 da, '\n{print} zaman + yer" + mp_choice_options: + - option: Bugün saat 10.00 da, Tren istasyonuna git + feedback: Ajan burada kötü adamları yakalayamayacak + - option: Yarın saat 02.00 de, Havaalanına git + feedback: Şifreyi çözdün! + - option: Yarın saat 02.00 de, Tren istasyonuna git + feedback: Ajan burada kötü adamları yakalayamayacak + - option: Yarın saat 10.00 da, Havaalanına git + feedback: Ajan burada kötü adamları yakalayamayacak correct_answer: B - hint: The correct password is TOPSECRET + hint: Doğru şifre ÇOKGİZLİ'dir question_score: '10' 9: mp_choice_options: - - option: "```\nprices = 'one' 'million' 'dollars', 'nothing'\n```" - feedback: You won nothing - - feedback: You won nothing - option: "```\nprices = 'one million dollars, nothing'\n```" - - option: "```\nprices = 'one million dollars', 'nothing'\n```" - feedback: Winner! - - option: "```\n'prices' = 'one million dollars', 'nothing'\n```" - feedback: You one nothing - question_text: Which code should be filled in in line 1 at the ??? - code: "???\n{print} 'You won ' prizes {at} {random} '!'" + - option: "```\nödüller = 'bir' 'milyon' 'dolar', 'hiçbir şey'\n```" + feedback: Hiçbir şey kazanamadın + - feedback: Hiçbir şey kazanamadın + option: "```\nödüller = 'bir milyon dolar, hiçbir şey'\n```" + - option: "```\nödüller = 'bir milyon dolar', 'hiçbir şey'\n```" + feedback: Kazanan! + - option: "```\n'ödüller' = 'bir milyon dolar', 'hiçbir şey'\n```" + feedback: Hiçbir şey kazanamadın + question_text: Satır 1'de ??? ile gösterilen yere hangi kod doldurulmalıdır? + code: "???\n{print} 'Kazandığınız ödül ' ödüller {at} {random} '!'" correct_answer: C - hint: The items on the list should be in quotation marks + hint: Listedeki maddeler tırnak içinde olmalıdır question_score: '10' 1: question_text: Hangi çıktı doğrudur? - code: "{print} 'three and a half plus one and a half is...'\n{print} 3.5 + 1.5" + code: "{print} 'üç buçuk artı bir buçuk...'\n{print} 3.5 + 1.5" mp_choice_options: - option: "5\n" - feedback: Don't forget the first line of code! + feedback: Kodun ilk satırını unutmayın! - option: "3.5 + 1.5\n" - feedback: This is not the one! - - option: "thee and a half plus one and a half is...\nfive\n" - feedback: Take a close look at the second line... - - option: "three and a half plus one and a half is...\n5\n" - feedback: Great job! + feedback: Bu doğru değil! + - option: "üç buçuk artı bir buçuk...\nbeş\n" + feedback: İkinci satıra yakından bakın... + - option: "üç buçuk artı bir buçuk...\n5\n" + feedback: İyi işti! correct_answer: D - hint: Both lines are printed! + hint: Her iki satır da yazılıyor! question_score: '10' 6: - question_text: Which line should be filled in at the ??? - code: "{print} 'Welcome to McHedy!'\norder = {ask} 'Would you like a hamburger or fries?'\n{if} order = 'hamburger'\n price = 12\n{if} order = 'fries'\n price = 4\ndrinks = {ask} 'Would you like a drink with that for 2 dollars?'\n{if} drinks = 'yes'\n ???\n{print} 'That will be ' price ' dollar please'\n" - mp_choice_options: - - option: "```\nprice = 14\n```\n" - feedback: What if you only order fries and a drink? - - option: "```\nprice = '14'\n```" - feedback: What if you only order fries and a drink? - - option: "```\nprice = price + 2\n```" - feedback: Excellent! - - option: "```\nprice = + 2\n```" - feedback: Almost there! + question_text: ??? ile gösterilen yere hangi satır doldurulmalıdır + code: "{print} 'McHedy'e hoş geldiniz!'\nsipariş = {ask} 'Hamburger mi yoksa patates kızartması mı istersiniz?'\n{if} sipariş = 'hamburger'\n ücret = 12\n{if} sipariş = 'kızartma'\n ücret = 4\niçecek = {ask} 'Yanında 2 dolara bir içecek ister misin?'\n{if} içecek = 'evet'\n ???\n{print} 'Toplam ' ücret ' lira, lütfen'\n" + mp_choice_options: + - option: "```\nücret = 14\n```\n" + feedback: Ya sadece patates kızartması ve içecek sipariş ederseniz? + - option: "```\nücret = '14'\n```" + feedback: Ya sadece patates kızartması ve içecek sipariş ederseniz? + - option: "```\nücret = ücret + 2\n```" + feedback: Mükemmel! + - option: "```\nücret = + 2\n```" + feedback: Neredeyse olacaktı! correct_answer: C - hint: What if you only order fries and a drink? + hint: Ya sadece patates kızartması ve içecek sipariş ederseniz? question_score: '10' 7: - question_text: Which output does a vegan get? - code: "menu = 'cookies', 'cheese', 'grapes'\n{print} \"It's my birthday! I`ve brought some snacks!\"\ndiet = {ask} 'Do you have any dietary restrictions?'\n{if} diet = 'gluten free'\n {remove} 'cookies' {from} menu\n{if} diet = 'vegan'\n {remove} 'cheese' {from} menu\n{print} 'For you I have brought: '\n{for} snack {in} menu\n {print} snack" - mp_choice_options: - - option: "It's my birthday! I've brought some snacks!\nFor you I have brought:\ncookies\ngrapes" - feedback: Terrific! - - option: "It's my birthday! I've brought some snacks!\nFor you I have brought:\ngrapes" - feedback: There's more options than just one - - option: "It's my birthday! I've brought some snacks!\nFor you I have brought:\ncheese\ngrapes" - feedback: A vegan person can't have cheese - - option: "It's my birthday! I've brought some snacks!\nFor you I have brought:\ngrapes\ncookies" - feedback: Almost there, but look at the order of snacks in the list + question_text: Bir vegan hangi çıktıyı alır? + code: "menü = 'kurabiye', 'peynir', 'üzüm'\n{print} 'Bugün benim doğum günüm! Biraz atıştırmalık getirdim!'\ndiyet = {ask} 'Herhangi bir diyet kısıtlamanız var mı?'\n{if} diyet = 'glütensiz'\n {remove} 'kurabiye' {from} menü\n{if} diyet = 'vegan'\n {remove} 'peynir' {from} menü\n{print} 'Senin için de şunu getirdim: '\n{for} atıştırmalık {in} menü\n {print} atıştırmalık" + mp_choice_options: + - option: "Bugün benim doğum günüm! Biraz atıştırmalık getirdim!\nSenin için de şunu getirdim:\nkurabiye\nüzüm" + feedback: Müthiş! + - option: "Bugün benim doğum günüm! Biraz atıştırmalık getirdim!\nSenin için de şunu getirdim:\nüzüm" + feedback: Sadece bir taneden daha fazla seçenek var + - option: "Bugün benim doğum günüm! Biraz atıştırmalık getirdim!\nSenin için de şunu getirdim:\npeynir\nüzüm" + feedback: Vegan bir insan peynir yiyemez + - option: "Bugün benim doğum günüm! Biraz atıştırmalık getirdim!\nSenin için de şunu getirdim:\nüzüm\nkurabiye" + feedback: Neredeyse oldu, ama listedeki atıştırmalıkların sırasına bakın correct_answer: A - hint: What item is removed from the list when you answer 'vegan'? + hint: "'vegan' cevabını verdiğinizde listeden hangi madde çıkarılır?" question_score: '10' 8: - question_text: Which code was used to create this output? + question_text: Bu çıktıyı oluşturmak için hangi kod kullanılmıştır? code: '3.5' mp_choice_options: - option: "```\n{print} '7 / 2'\n```" - feedback: No + feedback: Hayır - option: "```\n{print} 7 / 2\n```" - feedback: That is right! + feedback: Bu doğru! - option: "```\n{print} 7 : 2\n```" - feedback: No + feedback: Hayır - option: "```\n{print} 7 * 2\n```" - feedback: No + feedback: Hayır correct_answer: B - hint: 7 devided by 2 is 3.5 + hint: 7 bölü 2, 3,5 eder question_score: '10' 10: - question_text: Which line of code should be filled in at the ??? to complete the song ? - code: "actions = 'clap your hands', 'stomp your feet', 'shout Hurray!'\n???\n {for} i {in} range 0 {to} 1\n {print} 'if youre happy and you know it'\n {print} action\n {print} 'if youre happy and you know it and you really want to show it'\n {print} 'if youre happy and you know it'\n {print} action" + question_text: Şarkıyı tamamlamak için ??? ile gösterilen yere hangi kod satırı doldurulmalıdır? + code: "eylemler = 'ellerinizi çırpın', 'ayaklarınızı yere vurun', 'Yaşasın diye bağırın!\n???\n {for} i {in} {range} 0 {to} 1\n {print} 'eğer mutluysan ve bunu biliyorsan'\n {print} eylem\n {print} 'eğer mutluysanız ve bunu biliyorsanız ve gerçekten göstermek istiyorsanız'\n {print} 'eğer mutluysan ve bunu biliyorsan'\n {print} eylem" mp_choice_options: - option: "```\n{for} i {in} {range} 1 {to} 3\n```" - feedback: This is a hard one! All the actions on the list must be in the song. - - option: "```\n{for} action {in} actions\n```" - feedback: You are amazing! + feedback: Bu zor bir soru! Listedeki tüm eylemler şarkıda yer almalıdır. + - option: "```\n{for} eylem {in} eylemler\n```" + feedback: Sen harikasın! - option: "```\n{repeat} 3 {times}\n```" - feedback: This is a hard one! All the actions on the list must be in the song. - - option: "```\n{print} actions {at} {random}\n```" - feedback: This is a hard one! All the actions on the list must be in the song. + feedback: Bu zor bir soru! Listedeki tüm eylemler şarkıda yer almalıdır. + - option: "```\n{print} eylemler {at} {random}\n```" + feedback: Bu zor bir soru! Listedeki tüm eylemler şarkıda yer almalıdır. correct_answer: B - hint: This is a hard one! All the actions on the list must be in the song. + hint: Bu zor bir soru! Listedeki tüm eylemler şarkıda yer almalıdır. question_score: '10' 13: 2: question_score: '10' - question_text: Which command is missing in the code at the place of the ??? ? - code: "menu = 'cheese', 'sausage rolls', 'cookies'\ndiet = {ask} 'Do you have any dietary restrictions?'\n{if} diet = 'vegan' ??? diet = 'halal'\n {remove} 'sausage rolls' {from} menu" + question_text: Kodda ??? ile gösterilen yerde hangi komut eksik? + code: "menü = 'peynir', 'domuz sosis', 'kurabiyeler'\ndiyet = {ask} 'Herhangi bir diyet kısıtlamanız var mı?'\n{if} diyet = 'vegan' ??? diyet = 'helal'\n {remove} 'domuz sosis' {from} menü" mp_choice_options: - option: '`{and}`' - feedback: You don't have to be vegan and muslim + feedback: Hem vegan hem de müslüman olmak zorunda değilsiniz - option: '`{or}`' - feedback: Great thinking! + feedback: Harika bir düşünce! - option: ' `+` ' - feedback: No + feedback: Hayır - option: '`{print}`' - feedback: No + feedback: Hayır correct_answer: B - hint: Neither vegans nor muslims can eat sausage rolls. + hint: Ne veganlar ne de müslümanlar domuz sosisi yiyebilir. 7: mp_choice_options: - - option: The grey cat is called Abby - feedback: This is true! - - option: Milo the orange cat eats 4 scoops of cat nibbles - feedback: This is true - - feedback: Great job! - option: The black hamster needs to be fed a piece of carrot - - option: The yellow bird was fed this morning - feedback: This is true - question_text: Which statement is false? - code: "{print} 'Thank you for helping me take care of my pets'\n{print} 'Here is a program to help feed them'\nanimal = {ask} 'What kind of animal are they?'\ncolor = {ask} 'What colour are they?'\n{if} animal = 'cat' {and} color = 'grey'\n {print} 'That is Abby. She eats 3 scoops of cat nibbles'\n{if} animal = 'cat' {and} color = 'orange'\n {print} 'That is Milo. He eats 4 scoops of cat nibbles'\n{if} animal = 'bird' {or} color = 'black'\n {print} 'I fed them this moring! They do not need more food today'\n{if} animal = 'hamster' {and} color = 'brown'\n {print} 'You can feed them a piece of carrot'" + - option: Gri kedinin adı Abby + feedback: Bu doğru! + - option: Turuncu kedi Milo 4 kaşık kedi maması yiyor + feedback: Bu doğru + - feedback: İyi işti! + option: Siyah hamster bir parça havuçla beslenmesi gerekiyor + - option: Sarı kuş bu sabah beslendi + feedback: Bu doğru + question_text: Hangi ifade yanlıştır? + code: "{print} 'Evcil hayvanlarıma bakmama yardımcı olduğunuz için teşekkür ederim'\n{print} 'İşte onları beslemeye yardımcı olacak bir program'\nhayvan = {ask} 'Ne tür bir hayvan bunlar?'\nrenk = {ask} 'Ne renk bunlar?'\n{if} hayvan = 'kedi' {and} renk = 'gri'\n {print} 'Bu Abby. 3 kaşık kedi maması yiyor.'\n{if} hayvan = 'kedi' {and} renk = 'turuncu'\n {print} 'Bu Milo. 4 kaşık kedi maması yiyor.'\n{if} hayvan = 'kuş' {or} renk = 'siyah'\n {print} 'Onları bu sabah besledim! Bugün daha fazla yiyeceğe ihtiyaçları yok'\n{if} hayvan = 'hamster' {and} renk = 'kahverengi'\n {print} 'Onları bir parça havuçla besleyebilirsiniz'" correct_answer: C - hint: Read the last 4 lines carefully + hint: Son 4 satırı dikkatlice okuyun question_score: '10' 1: - question_text: Which code should be filled in at the ??? ? - code: "name = {ask} 'What is your name?'\nsong = {ask} 'Whould you like to hear a song?'\nbirthday = {ask} 'Is today your birthday?'\n???\n {print} 'Happy Birthday to you!'\n {print} 'Happy Birthday to you!'\n {print} 'Happy Birthday dear ' name\n {print} 'Happy Birthday to you!'" - mp_choice_options: - - option: "```\n{if} birthday {and} song = 'yes'\n```" - feedback: Almost there - - option: "```\n{if} birthday = 'yes' {and} name = 'Hedy'\n```" - feedback: Hedy only sings for you if you like to hear a song - - option: "```\n{if} song = 'yes' {and} birthday = 'yes'\n```" - feedback: Super! - - option: "```\n{if} song = 'yes' {or} birthday = 'yes'\n```" - feedback: Hedy only sings if both answers are yes + question_text: ??? ile gösterilen yere hangi kod doldurulmalıdır? + code: "isim = {ask} 'Adın ne?'\nşarkı = {ask} 'Bir şarkı dinlemek ister misin?'\ndoğumgünü = {ask} 'Bugün doğum günün mü?'\n???\n {print} 'Mutlu yıllar sana!'\n {print} 'Mutlu yıllar sana!'\n {print} 'Mutlu Yıllar sevgili ' isim\n {print} 'Mutlu yıllar sana!'" + mp_choice_options: + - option: "```\n{if} doğumgünü {and} şarkı = 'evet'\n```" + feedback: Neredeyse olacak + - option: "```\n{if} doğumgünü = 'evet' {and} isim = 'Hedy'\n```" + feedback: Hedy, sadece şarkı dinlemek isterseniz sizin için şarkı söyler + - option: "```\n{if} şarkı = 'evet' {and} doğumgünü = 'evet'\n```" + feedback: Süper! + - option: "```\n{if} şarkı = 'evet' {or} doğumgünü = 'evet'\n```" + feedback: Hedy sadece her iki cevap da evet ise şarkı söyler correct_answer: C - hint: Hedy sings if you want to hear a song and it's you birthday + hint: Hedy, eğer bir şarkı duymak istiyorsanız ve bugün doğum gününüzse size şarkı söylüyor question_score: '10' 3: - question_text: Which output is given to a member without a discount code? - code: "member = {ask} 'Do you have a membership card?'\ndiscount = {ask} 'Do you have a discount code?'\n{if} member = 'yes' {or} discount = 'yes'\n {print} 'You get a free apple pie!'\n{else}\n {print} 'That will be 5 dollars please'" - mp_choice_options: - - option: You get a free pie! - feedback: Great job! - - option: That will be 5 dollars please - feedback: That is not true - - option: This code won't work, so there is no output - feedback: There is nothing wrong with the code - - option: There is no way of knowing - feedback: There is! Read the question carefully + question_text: İndirim kodu olmayan bir üyeye hangi çıktı verilir? + code: "üye = {ask} 'Üyelik kartınız var mı?'\nindirim = {ask} 'İndirim kodunuz var mı?'\n{if} üye = 'evet' {or} indirim = 'evet'\n {print} 'Bedava elmalı turta alacaksın!'\n{else}\n {print} 'Toplam 5 dolar lütfen'" + mp_choice_options: + - option: Bedava elmalı turta alacaksın! + feedback: İyi işti! + - option: Toplam 5 dolar lütfen + feedback: Bu doğru değil + - option: Bu kod çalışmaz, bu nedenle çıktı yoktur + feedback: Kodda yanlış bir şey yok + - option: Bunu bilmenin hiçbir yolu yok + feedback: Evet var! Soruyu dikkatlice okuyun correct_answer: A - hint: Mind the command `{or}` in line 3 + hint: Satır 3'teki `{or}` komutuna dikkat edin question_score: '10' 4: - question_text: Which line of code should follow this line in rock-paper-scissors game? - code: "{if} computer_choice {is} 'rock' {and} your_choice {is} 'paper'" - mp_choice_options: - - option: "```\n{print} 'you win'\n```" - feedback: You win! - - option: "```\n{print} 'you lose'\n```" - feedback: You lose! - - option: "```\n{print} 'tie'\n```" - feedback: It's only a tie if both choices are the same - - option: "```\n{print} 'try again'\n```" - feedback: Try again! + question_text: Taş-kağıt-makas oyununda bu satırı hangi kod satırı takip etmelidir? + code: "{if} bilgisayarın_seçimi {is} 'taş' {and} senin_seçimin {is} 'kağıt'" + mp_choice_options: + - option: "```\n{print} 'kazandın'\n```" + feedback: Sen kazandın! + - option: "```\n{print} 'kaybettin'\n```" + feedback: Kaybettin! + - option: "```\n{print} 'berabere'\n```" + feedback: Sadece iki seçenek de aynı olursa eşitlik olur + - option: "```\n{print} 'tekrar deneyin'\n```" + feedback: Tekrar deneyin! correct_answer: A - hint: Paper beats rock + hint: Kağıt taşı yener question_score: '10' 5: - question_text: Which statement is true about this code? - code: "{if} name = 'Cinderella' {and} shoe_size = 38\n {print} 'You are my one true love!'" - mp_choice_options: - - option: Every person with shoe size 38 is this prince's one true love - feedback: The prince is a little more picky than that! - - option: Every person named Cinderella is this prince's one true love - feedback: The prince is a little more picky than that! - - option: Every person that is named Cinderella and has shoe size 38 is this prince's one true love - feedback: Fantastic! - - option: Every person that's not named Cinderella and does not have shoe size 38 is this prince's one true love - feedback: The prince is a little more picky than that! + question_text: Bu kodla ilgili hangi ifade doğrudur? + code: "{if} isim = 'Sindirella' {and} ayakkabı_numarası = 38\n {print} 'Sen benim tek gerçek aşkımsın!'" + mp_choice_options: + - option: Ayakkabı numarası 38 olan herkes bu prensin tek gerçek aşkıdır + feedback: Prens bundan biraz daha seçicidir! + - option: Sindirella adındaki herkes bu prensin tek gerçek aşkıdır + feedback: Prens bundan biraz daha seçicidir! + - option: Adı Sindirella olan ve ayakkabı numarası 38 olan herkes bu prensin tek gerçek aşkıdır + feedback: Harika! + - option: Adı Sindirella olmayan ve ayakkabı numarası 38 olmayan herkes bu prensin tek gerçek aşkıdır + feedback: Prens bundan biraz daha seçicidir! correct_answer: C - hint: Both statements have to be true + hint: Her iki ifade de doğru olmalıdır question_score: '10' 6: question_text: Bu kodla ilgili ifadelerden hangisi doğrudur? - code: "{print} 'Let me guess which family member you are!'\nglasses = {ask} 'Do you wear glasses?'\nfemale = {ask} 'Are you female?'\n{if} glasses = 'yes' {and} female = 'yes'\n {print} 'You must be Sophie!'\n{if} glasses = 'no' {and} female = 'yes'\n {print} 'You must be Marleen!'\n{if} glasses = 'yes' {and} female = 'no'\n {print} 'You must be Wouter!'\n{if} glasses = 'no' {and} female = 'no'\n {print} 'You must be Michael!'" - mp_choice_options: - - option: Michael is a boy with glasses - feedback: Try again - - option: Marleen is a girl with glasses - feedback: Try again - - option: Wouter is a boy without glasses - feedback: Try again - - option: Sophie is a girl with glasses - feedback: Great job! + code: "{print} 'Hangi aile üyesi olduğunuzu tahmin edeyim!'\ngözlük = {ask} 'Gözlük takıyor musun?'\nkadın = {ask} 'Kadın mısınız?'\n{if} gözlük = 'evet' {and} kadın = 'evet'\n {print} 'Sen Sophie olmalısın!'\n{if} gözlük = 'hayır' {and} kadın = 'evet'\n {print} 'Sen Marleen olmalısın!'\n{if} gözlük = 'evet' {and} kadın = 'hayır'\n {print} 'Sen Wouter olmalısın!'\n{if} gözlük = 'hayır' {and} kadın = 'hayır'\n {print} 'Sen Michael olmalısın!'" + mp_choice_options: + - option: Michael gözlüklü bir erkek + feedback: Tekrar deneyin + - option: Marleen gözlüklü bir kız + feedback: Tekrar deneyin + - option: Wouter gözlüksüz bir erkek + feedback: Tekrar deneyin + - option: Sophie gözlüklü bir kız + feedback: İyi işti! correct_answer: D - hint: Take a good look! Or do you need glasses? + hint: İyi bakın! Yoksa gözlüğe mi ihtiyacınız var? question_score: '10' 8: - question_text: What output do you get if you order popcorn but no drink? - code: "{print} 'Welcome to the movie theater'\npopcorn = {ask} 'Would you like some popcorn?'\ndrink = {ask} 'Would you like a drink?'\n{if} popcorn = 'yes' {and} drink = 'yes'\n {print} 'That will be 8 dollars please'\n{if} popcorn = 'no' {and} drink = 'yes'\n {print} 'That will be 3 dollars please'\n{if} popcorn = 'yes' {and} drink = 'no'\n {print} 'That will be 5 dollars please'\n{if} popcorn = 'no' {and} drink = 'no'\n {print} 'Ok'\n{print} 'Enjoy the movie'" + question_text: Patlamış mısır sipariş edip içecek almazsanız hangi çıktıyı alırsınız? + code: "{print} 'Sinema salonuna hoş geldiniz'\nmısır = {ask} 'Patlamış mısır ister misin?'\niçecek = {ask} 'İçecek bir şey ister misin?'\n{if} mısır = 'evet' {and} içecek = 'evet'\n {print} '8 dolar lütfen.'\n{if} mısır = 'hayır' {and} içecek = 'evet'\n {print} '3 dolar lütfen.'\n{if} mısır = 'evet' {and} içecek = 'hayır'\n {print} '5 dolar lütfen.'\n{if} mısır = 'hayır' {and} içecek = 'hayır'\n {print} 'Tamamdır'\n{print} 'Filmin tadını çıkarın'" mp_choice_options: - - option: "Welcome to the movie theater\nThat will be 8 dollars please\nEnjoy the movie" - feedback: You have paid too much! - - option: "Welcome to the movie theater\nThat will be 5 dollars please\nEnjoy the movie" + - option: "Sinema salonuna hoş geldiniz\n8 dolar lütfen\nFilmin tadını çıkarın" + feedback: Çok fazla ödeme yaptınız! + - option: "Sinema salonuna hoş geldiniz\n5 dolar lütfen\nFilmin tadını çıkarın" feedback: İnanılmaz! - - option: "Welcome to the movie theater\nThat will be 3 dollars please\nEnjoy the movie" - feedback: That's not enough money! - - option: "Welcome to the movie theater\nOk\nEnjoy the movie" - feedback: You have to pay for your popcorn! + - option: "Sinema salonuna hoş geldiniz\n3 dolar lütfen\nFilmin tadını çıkarın" + feedback: Bu para yeterli değil! + - option: "Sinema salonuna hoş geldiniz\nTamamdır\nFilmin tadını çıkarın" + feedback: Patlamış mısırın parasını ödemek zorundasın! correct_answer: B - hint: popcorn = yes and drink = no + hint: mısır = evet ve içecek = hayır question_score: '10' 9: question_text: Bu kodun ne sorunu var? - code: "1 chocolate = {ask} 'Would you like chocolate sauce on your ice cream?'\n2 sprinkles = {ask} 'Would you like sprinkles on your ice cream?'\n3 {if} chocolate {and} sprinkles = 'yes'\n4 {print} 'Ice cream with chocolate sauce and sprinkles, coming up!'\n5 {if} chocolate = 'yes' {and} sprinkles = 'no'\n6 {print} 'Ice cream with chocolate sauce, coming up!'\n7 {if} chocolate = 'no' {and} sprinkles = 'yes'\n8 {print} 'Ice cream with sprinkles, coming up'\n9 {if} chocolate = 'no' {and} sprinkles = 'no'\n10 {print} 'Just plain icecream, coming up!'" - mp_choice_options: - - option: "Line 3 should be:\n```\n{if} chocolate = 'yes' {and} sprinkles = 'yes'\n```\n" - feedback: Correct! - - option: "Line 3 should be:\n```\n{if} chocolate = 'no' {and} sprinkles = 'no'\n```\n" - feedback: This is not what I ordered! - - option: "Line 5 should be:\n```\n{if} chocolate = 'yes' {and} sprinkles = 'yes'\n```\n" - feedback: This is not what I ordered! - - option: "Line 7 should be:\n```\n{if} chocolate = 'yes' {and} sprinkles = 'no'\n```\n" - feedback: This is not what I ordered! + code: "1 çikolata = {ask} 'Dondurmanızın üzerine çikolata sosu ister misiniz?'\n2 serpme = {ask} 'Dondurmanızın üzerine renkli serpme ister misiniz?'\n3 {if} çikolata {and} serpme = 'evet'\n4 {print} 'Çikolata soslu ve serpmeli dondurma geliyor!'\n5 {if} çikolata = 'evet' {and} serpme = 'hayır'\n6 {print} 'Çikolata soslu dondurma, geliyor!'\n7 {if} çikolata = 'hayır' {and} serpme = 'evet'\n8 {print} 'Serpmeli dondurma, geliyor'\n9 {if} çikolata = 'hayır' {and} serpme = 'hayır'\n10 {print} 'Sade dondurma, geliyor!'" + mp_choice_options: + - option: "3. satır şöyle olmalı:\n```\n{if} çikolata = 'evet' {and} serpme = 'evet'\n```\n" + feedback: Doğru! + - option: "3. satır şöyle olmalı: \n```\n{if} çikolata = 'hayır' {and} serpme = 'hayır'\n```\n" + feedback: Sipariş ettiğim şey bu değildi! + - option: "5. satır şöyle olmalı:\n```\n{if} çikolata = 'evet' {and} serpme = 'evet'\n```\n" + feedback: Sipariş ettiğim şey bu değildi! + - option: "7. satır şöyle olmalı:\n```\n{if} çikolata = 'evet' {and} serpme = 'hayır'\n```\n" + feedback: Sipariş ettiğim şey bu değildi! correct_answer: A - hint: There is a mistake in line 3 + hint: Satır 3'te bir hata var question_score: '10' 10: - question_text: Which command needs to be in line 8 at the place of the ??? ? - code: "{print} 'Welcome to the product finder of this supermarkt'\nitem = {ask} 'What product are you looking for?'\nbakery = 'bread', 'buns', 'muffins'\ndrinks = 'soda', 'water', 'lemonade'\nsnacks = 'chips', 'nuts', 'dips'\nfrozen = 'fries', 'icecream', 'pizza'\nfruit = 'bananas', 'apples', 'oranges'\n{if} item {in} snacks ??? item {in} drinks\n {print} 'This item is in aisle 3'\n{if} item {in} bakery {or} item {in} bakery\n {print} 'This item in in the back of the store'\n{if} item {in} fruit\n {print} 'The fruit is sold near the register'" + question_text: 8. satırda ???'nin yerinde hangi komutun olması gerekir? + code: "{print} 'Bu süpermarketin ürün bulucusuna hoş geldiniz'\nürün = {ask} 'Hangi ürünü arıyorsunuz?'\nfırın = 'ekmek', 'çörekler', 'kekler'\niçecek = 'soda', 'su', 'limonata'\natıştırmalık = 'cips', 'kuruyemiş', 'dip sos'\ndonmuş = 'patates kızartması', 'dondurma', 'pizza'\nmeyve = 'muzlar', 'elmalar', 'portakallar'\n{if} ürün {in} atıştırmalık ??? ürün {in} içecek\n {print} 'Bu ürün 3. koridorda'\n{if} ürün {in} fırın {or} ürün {in} fırın\n {print} 'Bu ürün mağazanın arka tarafında'\n{if} ürün {in} meyve\n {print} 'Meyveler kasanın yanında satılıyor'" mp_choice_options: - option: '`{and}`' - feedback: There are no items that are both the list of snacks and the list of drinks + feedback: Hem atıştırmalık listesinde hem de içecek listesinde olan hiçbir öğe yoktur - option: '`{or}`' - feedback: Great job! + feedback: İyi işti! - option: '`{in}`' - feedback: No + feedback: Hayır - option: '`{if}`' - feedback: No + feedback: Hayır correct_answer: B - hint: The item is either in the list of snacks, or in the list of drinks + hint: Ürün ya atıştırmalıklar listesindedir ya da içecekler listesindedir question_score: '10' 14: 2: mp_choice_options: - - option: '{if} name = Hedy' - feedback: No - - option: '{if} age = 24' - feedback: No - - option: answer = {ask} 'What is your answer' - feedback: Yes! - - option: answer == {ask} 'How are you doing?' - feedback: No - question_text: Which of these codes has used the correct = or == symbol? + - option: '{if} isim = Hedy' + feedback: Hayır + - option: '{if} yaş = 24' + feedback: Hayır + - option: cevap = {ask} 'Cevabınız nedir?' + feedback: Evet! + - option: cevap == {ask} 'Nasılsınız?' + feedback: Hayır + question_text: Bu kodlardan hangisi = veya == sembolünü doğru şekilde kullanmıştır? correct_answer: C - hint: When you are comparing two answers you should use == + hint: İki yanıtı karşılaştırırken == kullanmalısınız question_score: '10' 3: correct_answer: C - hint: There are 130 people allowed in the club - question_text: Which symbols should be filled in on the two blanks? - code: "guests = {ask} 'How many people are at the party?'\n{if} guests _ 130\n {print} 'You can come in!'\n{if} guests _ 130\n {print} 'Im sorry, the club is full. '\n {print} 'You have to wait for a guest to leave'\n" - mp_choice_options: - - option: '`>` and `<`' - feedback: That's not it - - option: '`=` and `>=`' - feedback: That's not it - - option: '`<` and `>=`' - feedback: You are right - - option: ' `+` and `==`' - feedback: That's not it + hint: Kulübe 130 kişinin girmesine izin verilmektedir + question_text: Gösterilen iki boşluğa hangi semboller doldurulmalıdır? + code: "misafirler = {ask} 'Partide kaç kişi var?'\n{if} misafirler _ 130\n {print} 'İçeri gelebilirsiniz!'\n{if} misafirler _ 130\n {print} 'Üzgünüm, kulüp dolu.'\n {print} 'Bir misafirin gitmesini beklemek zorundasınız'\n" + mp_choice_options: + - option: '`>` ve `<`' + feedback: Bu doğru değil + - option: '`=` ve `>=`' + feedback: Bu doğru değil + - option: '`<` ve `>=`' + feedback: Haklısın + - option: ' `+` ve `==`' + feedback: Bu doğru değil question_score: '10' 6: mp_choice_options: - - feedback: It stops after 2 times - option: 10 times - - option: 0 times - feedback: It stops after 2 times - - option: 1 time - feedback: It stops after 2 times - - feedback: That is correct - option: 2 times + - feedback: 2 kez denedikten sonra duruyor + option: 10 kere + - option: 0 kere + feedback: 2 kez denedikten sonra duruyor + - option: 1 kere + feedback: 2 kez denedikten sonra duruyor + - feedback: Bu doğru + option: 2 kere correct_answer: D - code: "lives = 2\n{repeat} 10 times\n {if} lives != 0\n answer = {ask} 'Are you annoyed yet?'\n {if} answer == 'yes'\n lives = lives - 1\n" - question_text: How many times do you have to say you are annoyed before this annoying game stops? - hint: "!= means 'is not'" + code: "canlar = 2\n{repeat} 10 {times}\n {if} canlar != 0\n cevap = {ask} 'Daha sinirlenmedin mi?'\n {if} cevap == 'evet'\n canlar = canlar - 1\n" + question_text: Bu sinir bozucu oyunun durması için daha kaç kez rahatsız olduğunuzu söylemeniz gerekiyor? + hint: "!= simgesi 'eşit değildir' anlamına gelir" question_score: '10' 7: mp_choice_options: - - feedback: That's not quite right. - option: "`'Lower'` and `'Higher'` and `'You win!'`" - - option: "`'Higher'` and `'Lower'` and `'You win!'`" - feedback: You win! - - option: "`'You win!'` and `'Lower!'` and `'Higher'`" - feedback: That's not quite right. - - option: "`'Lower!'` and `'You win!'` and `'Higher!'`" - feedback: That's not quite right. + - feedback: Bu tam olarak doğru değil. + option: "`'Aşağı'` ve `'Yukarı'` ve `'Kazandın!'`" + - option: "`'Yukarı'` ve `'Aşağı'` ve `'Kazandın!'`" + feedback: Kazandın! + - option: "`'Kazandın!'` ve `'Aşağı!'` ve `'Yukarı'`" + feedback: Bu tam olarak doğru değil. + - option: "`'Aşağı!'` ve `'Kazandın!'` ve `'Yukarı!'`" + feedback: Bu tam olarak doğru değil. correct_answer: B - question_text: What should be filled in on the three blanks? - code: "{print} 'Guess which number'\nnumbers = 1, 2, 3, 4, 5, 6, 7, 8, 9, 10\nnumber = numbers {at} {random}\ngame = 'on'\n{for} i {in} {range} 1 {to} 10\n {if} game == 'on'\n guess = {ask} 'Which number do you think it is?'\n {if} guess < number\n {print} _\n {if} guess > number\n {print} _\n {if} guess == number\n {print} _\n game = 'over'\n" - hint: The last one should say you win. + question_text: Üç boşluğa neler doldurulmalıdır? + code: "{print} 'Tahmin et hangi sayı'\nsayılar = 1, 2, 3, 4, 5, 6, 7, 8, 9, 10\nsayı = sayılar {at} {random}\noyun = 'devam'\n{for} i {in} {range} 1 {to} 10\n {if} oyun == 'devam'\n tahmin = {ask} 'Sence hangi numara?'\n {if} tahmin < sayı\n {print} _\n {if} tahmin > sayı\n {print} _\n {if} tahmin == sayı\n {print} _\n oyun = 'tamam'\n" + hint: Sonuncusu senin kazandığını söylemeli. question_score: '10' 9: mp_choice_options: - - option: 1 or more - feedback: No - - option: 2 or more - feedback: No - - option: 8 or more - feedback: Almost - - option: 9 or more - feedback: Great! - question_text: How many pieces of chocolate will give you a stomach ache according to this fitbit? - code: "chocolate = {ask} 'How many pieces of chocolate have you eaten?'\n {if} chocolate <= 2\n {print} 'That is a healthy amount'\n {if} chocolate > 2 and chocolate =< 8\n {print} 'That is a bit much'\n {if} chocolate > 8\n {print} 'You will get a stomach ache!'\n" + - option: 1 veya daha fazla + feedback: Hayır + - option: 2 veya daha fazla + feedback: Hayır + - option: 8 veya daha fazla + feedback: Neredeyse + - option: 9 veya daha fazla + feedback: Harika! + question_text: Bu fitbit'e göre kaç parça çikolata midenizi ağrıtacak? + code: "çikolata = {ask} 'Kaç parça çikolata yedin?'\n {if} çikolata <= 2\n {print} 'Bu sağlıklı bir miktar'\n {if} çikolata > 2 {and} çikolata =< 8\n {print} 'Bu biraz fazla oldu.'\n {if} çikolata > 8\n {print} 'Karnın ağrıyacak!'\n" correct_answer: D - hint: '> 8 means more than 8' + hint: '> 8, 8''den fazla anlamına gelir' question_score: '10' 1: - question_text: Which symbol should be used on the blank? - code: "name _ {ask} 'Who are you?'\n{if} name == 'Hedy'\n {print} 'Me too!'\n" + question_text: Boşlukta hangi sembol kullanılmalıdır? + code: "isim _ {ask} 'Kimsin sen?'\n{if} isim == 'Hedy'\n {print} 'Ben de!'\n" mp_choice_options: - option: '`=>`' - feedback: This is not a symbol. + feedback: Bu bir sembol değil. - option: '`==`' - feedback: We are not comparing anything, just asking. + feedback: Hiçbir şeyi karşılaştırmıyoruz, sadece soruyoruz. - option: '`!=`' - feedback: We are not comparing anything, just asking + feedback: Hiçbir şeyi karşılaştırmıyoruz, sadece soruyoruz - option: '`=`' - feedback: Right! + feedback: Doğru! correct_answer: D - hint: We are not comparing anything, we are just asking a name. + hint: Hiçbir şeyi karşılaştırmıyoruz, sadece bir isim soruyoruz. question_score: '10' 4: question_text: Bu kodun ne sorunu var? - code: "price = 10\nmoney = {ask} How much money do you have?\nbuy = {ask} 'Would you like to buy this teddy bear?'\n{if} money >= price and buy == 'yes'\n {print} 'You can buy the bear!'\n{else}\n {print} 'You cannot buy this bear!'\n" - mp_choice_options: - - option: In line 1 == should be used instead of = - feedback: No that's not it - - option: Line 2 misses quotation marks - feedback: You are correct - - option: In line 4 = should have been used instead of == - feedback: No that's not it - - option: In line 4 <= should have been used instead of >= - feedback: No that's not it + code: "fiyat = 10\npara = {ask} Ne kadar paran var?\nsatış = {ask} 'Bu oyuncak ayıyı satın almak ister misiniz?'\n{if} para >= fiyat {and} satış == 'evet'\n {print} 'Ayıyı satın alabilirsin!'\n{else}\n {print} 'Bu ayıyı satın alamazsınız!'\n" + mp_choice_options: + - option: 1. satırda = yerine == kullanılmalıdır + feedback: Hayır, öyle olmaz + - option: 2. satırda tırnak işaretleri eksik + feedback: Haklısın + - option: 4. satırda == yerine = kullanılmalıydı + feedback: Hayır, öyle olmaz + - option: 4. satırda >= yerine <= kullanılmalıydı + feedback: Hayır, öyle olmaz correct_answer: B - hint: The symbols are right + hint: Semboller doğru question_score: '10' 5: mp_choice_options: - option: '`> 12`' - feedback: 12 year olds are allowed too - - feedback: Great! + feedback: 12 yaşındakilere de izin var + - feedback: Harika! option: '`>= 12`' - option: '`< 12`' - feedback: These kids are too young! + feedback: Bu çocuklar çok küçük! - option: '`<= 12`' - feedback: These kids are too young - question_text: 'Which symbol should be filled in on the blanks if the movie is suitable for kids for the age of 12 and up? ' - code: "age = {ask} 'How old are you?'\nticket = {ask} 'Do you have a ticket?'\n{if} age _ and ticket == 'yes'\n {print} 'You can enter the movie theater.'\n{else}\n {print} 'You are not allowed to come in!'\n" + feedback: Bu çocuklar çok küçük + question_text: 'Film 12 yaş ve üzeri çocuklar için uygunsa boşluklara hangi semboller doldurulmalıdır? ' + code: "yaş = {ask} 'Kaç yaşındasınız?'\nbilet = {ask} 'Biletiniz var mı?'\n{if} yaş _ {and} bilet == 'evet'\n {print} 'Sinemaya girebilirsiniz.'\n{else}\n {print} 'İçeri giremezsiniz!'\n" correct_answer: B - hint: '> means greater than' + hint: '> simgesi büyüktür anlamına gelir' question_score: '10' 8: - question_text: Which statement is true about this roller coaster? - code: "length = {ask} 'Please fill in your length in cm'\n{if} length < 120\n {print} 'Sorry, you cannot go on this roller coaster.'\n{else}\n {print} 'Enjoy the ride'\n" - mp_choice_options: - - option: You must be taller than 120 cm to go on the roller coaster - feedback: True! - - option: You must be taller than 119 cm to go on the roller coaster - feedback: If you are 120 cm you won't get in - - feedback: '> means greater than' - option: You must be shorter than 120 cm to go on the roller coaster - - option: There are no length restrictions to go on the roller coaster - feedback: There are. + question_text: Bu hız treni hakkında hangi ifade doğrudur? + code: "boy = {ask} 'Lütfen boyunuzu cm cinsinden girin'\n{if} boy < 120\n {print} 'Üzgünüm, bu hız trenine binemezsiniz.'\n{else}\n {print} 'Yolculuğun tadını çıkarın'\n" + mp_choice_options: + - option: Hız trenine binmek için 120 cm'den uzun olmalısınız + feedback: Doğru! + - option: Hız trenine binmek için 119 cm'den uzun olmalısınız + feedback: Ama eğer 120 cm iseniz içeri giremezsiniz + - feedback: '> simgesi büyüktür anlamına gelir' + option: Hız trenine binmek için 120 cm'den kısa olmalısınız + - option: Hız trenine binmek için herhangi bir boy sınırlaması yoktur + feedback: Hayır, var. correct_answer: A - hint: '> means greater than' + hint: '> simgesi büyüktür anlamına gelir' question_score: '10' 10: mp_choice_options: - - option: "'player 1 wins'" - feedback: Look at who has the highest score! - - option: "'player 2 wins'" - feedback: Yes! - - option: "'player 2 loses'" - feedback: Look at who has the highest score! - - option: "'It is a tie'" - feedback: No it's not, one player has a higher score - question_text: What should be filled in in the blanks? - code: "{print} 'Whoever gets the most points wins!'\n{if} points_player_1 < points_player_2\n {print} _\n" + - option: "'oyuncu 1 kazanır'" + feedback: En yüksek puanı kimin aldığına bakın! + - option: "'oyuncu 2 kazanır'" + feedback: Evet! + - option: "'oyuncu 2 kaybeder'" + feedback: En yüksek puanı kimin aldığına bakın! + - option: "'Bu bir beraberlik'" + feedback: Hayır değil, bir oyuncunun puanı daha yüksek + question_text: Boşluklara ne doldurulmalıdır? + code: "{print} 'En çok puanı alan kazanır!'\n{if} puanlar_oyuncu_1 < puanlar_oyuncu_2\n {print} _\n" correct_answer: B - hint: You win the game by having the most points + hint: En çok puana sahip olunca oyunu kazanırsınız question_score: '10' 15: 1: - question_text: 'Which symbol should be used on the blank? Tip: You must keep guessing until you get it right.' - code: "answer = 0\nwhile answer _ 'Amsterdam'\n answer = ask 'What is the capital city of the Netherlands?'\nprint 'You have given the correct answer'\n" + question_text: 'Boşlukta hangi sembol kullanılmalıdır? İpucu: Doğruyu bulana kadar tahmin etmeye devam etmelisiniz.' + code: "cevap = 0\n{while} cevap _ 'Ankara'\n cevap = {ask} 'Türkiye`nin başkenti neresidir?'\n{print} 'Doğru cevabı verdiniz'\n" mp_choice_options: - - feedback: That is not right. + - feedback: Bu doğru değil. option: '`=!`' - option: '`==`' - feedback: You don't have to keep guessing if you've given the right answer. + feedback: Doğru cevabı verirseniz tahmin etmeye devam etmek zorunda değilsiniz. - option: '`!=`' - feedback: Correct + feedback: Doğru - option: '`=`' - feedback: That's not it - hint: Keep guessing until you say Amsterdam + feedback: Bu doğru değil + hint: Sen Ankara diyene kadar tahmin etmeye devam edersin question_score: '10' correct_answer: C 2: - question_text: Which of these codes has used the correct symbol(s)? - mp_choice_options: - - option: "```\n{while} name = Hedy\n```\n" - feedback: No - - option: "```\n{while} age = 24\n```\n" - feedback: No - - option: "```\n{while} time > 0\n```\n" - feedback: Yes! - - option: "```\n{while} answer == yes'\n```\n" - feedback: A quotation mark is missing + question_text: Bu kodlardan hangisinde doğru sembol(ler) kullanılmıştır? + mp_choice_options: + - option: "```\n{while} isim = Hedy\n```\n" + feedback: Hayır + - option: "```\n{while} yaş = 24\n```\n" + feedback: Hayır + - option: "```\n{while} zaman > 0\n```\n" + feedback: Evet! + - option: "```\n{while} cevap == evet'\n```\n" + feedback: Bir tırnak işareti eksik correct_answer: C - hint: When you are comparing two answers you should use == + hint: İki yanıtı karşılaştırırken == kullanmalısınız question_score: '10' 3: - question_text: Which command should be filled in on the two blanks? - code: "_ age >= 18\n print 'you are not allowed in this bar'\n" + question_text: Boşluğa hangi komut doldurulmalıdır? + code: "_ yaş < 18\n {print} 'Bu bara giremezsin.'\n" mp_choice_options: - option: '`{in}`' - feedback: That's not it + feedback: Bu doğru değil - option: '`{while}`' - feedback: You are right + feedback: Haklısın - option: '`{for}`' - feedback: That's not it + feedback: Bu doğru değil - option: '`{range}`' - feedback: That's not it - hint: You are not allowed in the bar as long as you are 17 or younger + feedback: Bu doğru değil + hint: Yaşınız 17 veya daha küçük olduğu sürece bara giremezsiniz question_score: '10' correct_answer: B 4: question_text: Bu kodun ne sorunu var? - code: "options = 1, 2, 3, 4, 5, 6\nprint 'Throw 6 as fast as you can!'\nthrown = 0\ntries = 0\nwhile thrown == 6\n thrown = options at random\n print 'You threw ' thrown\n tries = tries + 1\nprint 'Yes! You have thrown 6 in ' tries ' tries.'\n" - mp_choice_options: - - option: In line 1 == should be used instead of = - feedback: No that's not it - - option: Line 2 misses quotation marks - feedback: That's not right - - option: In line 5 if should have been used instead of while - feedback: That's not it - - option: In line 5 != should have been used instead of == - feedback: You are correct + code: "seçenekler = 1, 2, 3, 4, 5, 6\n{print} 'Atabildiğin kadar hızlı 6 at!'\natılan = 0\ndeneme = 0\n{while} atılan == 6\n atılan = seçenekler {at} {random}\n {print} 'Attığın sayı' atılan\n deneme = deneme + 1\n{print} 'Evet! ' deneme ' denemede 6 atmayı başardın.'\n" + mp_choice_options: + - option: 1. satırda = yerine == kullanılmalıdır + feedback: Hayır, bu değil + - option: 2. satırda tırnak işaretleri eksik + feedback: Bu doğru değil + - option: 5. satırda {while} yerine {if} kullanılmalıydı + feedback: Bu doğru değil + - option: 5. satırda == yerine != kullanılmalıydı + feedback: Haklısın correct_answer: D - hint: There is something wrong in line 5 + hint: Satır 5'te yanlış bir şey var question_score: '10' 5: - question_text: What should be placed on the blank to make this program work correctly? - code: "wetness = 10\nwhile wetness != 0\n print 'Your hair is still wet, hair dryer on!'\n sleep 1\n clear\n wetness _\n\nprint 'All dry!'\n" - mp_choice_options: - - option: = wetness - feedback: That will not change anything - - option: = wetness = 1 - feedback: You can't have two times = in one line - - option: = wetness - 1 - feedback: You are correct! - - option: = wetness + 1 - feedback: The program should count down + question_text: Bu programın doğru çalışması için boşluğa ne yerleştirilmelidir? + code: "ıslaklık = 10\n{while} ıslaklık != 0\n {print} 'Saçın hala ıslak, saç kurutma makinesi açık!'\n {sleep} 1\n {clear}\n ıslaklık _\n\n{print} 'Hepsi kurudu!'\n" + mp_choice_options: + - option: = ıslaklık + feedback: Bu hiçbir şeyi değiştirmeyecek + - option: = ıslaklık = 1 + feedback: Bir satırda iki kere = olamaz + - option: = ıslaklık - 1 + feedback: Haklısın! + - option: = ıslaklık + 1 + feedback: Program geri doğru saymalıdır correct_answer: C - hint: wetness should get less each time + hint: ıslaklık her seferinde azalmalıdır question_score: '10' 6: mp_choice_options: - - option: while should be if - feedback: No that is not right - - option: if should be while - feedback: No that is not right - - option: Line 3 should start with more indentation - feedback: No that's not right - - option: Line 2 should start with less indentation - feedback: That is correct + - option: '{while}, {if} olmalıdır' + feedback: Hayır, bu doğru değil + - option: '{if}, {while} olmalıdır' + feedback: Hayır, bu doğru değil + - option: 3. satır daha fazla girinti ile başlamalıdır + feedback: Hayır, bu doğru değil + - option: Satır 2 daha az girintiyle başlamalıdır + feedback: Bu doğru question_text: Bu kodun ne sorunu var? - code: "lives = 100\n {while} lives != 0\n answer = {ask} 'Are you annoyed yet?'\n{if} answer == 'yes'\n lives = lives - 1\n" + code: "canlar = 100\n {while} canlar != 0\n cevap = {ask} 'Daha sinirlenmedin mi?'\n {if} cevap == 'evet'\n canlar = canlar - 1\n" correct_answer: D - hint: Look closely at the indentation + hint: Girintilere yakından bakın question_score: '10' 7: - code: "{print} 'Guess which number'\nnumbers = 1, 2, 3, 4, 5, 6, 7, 8, 9, 10\nnumber = numbers {at} {random}\ngame = 'on'\n{if} game == 'on'\n guess = {ask} 'Which number do you think it is?'\n {if} guess < number\n {print} _\n {if} guess > number\n {print} _\n {if} guess == number\n {print} _\n game = 'over'\n" - mp_choice_options: - - option: '... change the first {if} into a {while}' - feedback: Perfect! - - option: '... change the second {if} into a {while}' - feedback: That's not quite right. - - option: '... change the third {if} into a {while}' - feedback: That's not quite right. - - option: '... change the fourth {if} into a {while}' - feedback: That's not quite right. + code: "{print} 'Tahmin et hangi sayı'\nsayılar = 1, 2, 3, 4, 5, 6, 7, 8, 9, 10\nsayı = sayılar {at} {random}\noyun = 'devam'\n{if} oyun == 'devam'\n tahmin = {ask} 'Sence hangi sayı?'\n {if} tahmin < sayı\n {print} _\n {if} tahmin > sayı\n {print} _\n {if} tahmin == sayı\n {print} _\n oyun = 'bitti'\n" + mp_choice_options: + - option: '... ilk {if}''i {while} olarak değiştirin' + feedback: Mükemmel! + - option: '... ikinci {if}''i {while} olarak değiştirin' + feedback: Bu tam olarak doğru değil. + - option: '... üçüncü {if}''i {while} olarak değiştirin' + feedback: Bu tam olarak doğru değil. + - option: '... dördüncü {if}''i {while} olarak değiştirin' + feedback: Bu tam olarak doğru değil. correct_answer: A - hint: The last one should say you win. + hint: Sonuncusu senin kazandığını söylemeli. question_score: '10' - question_text: How should this program be changed to that it works? + question_text: Bu programın çalışması için nasıl değiştirilmelidir? 8: - question_text: Which statement is true about this automated toilet system? - code: "while toilet == 'occupied'\n lights = 'on'\n air_freshener_sprays = 'yes'\n sleep 60\nelse\n lights = 'off'\n" - mp_choice_options: - - option: The lights and air freshener will turn off after 1 minute - feedback: False! - - option: The air freshener sprays once every minute and the lights stay on the whole time while you are on the toilet - feedback: Great job - - option: The air freshener sprays once you leave the toilet. - feedback: It only sprays when you're in there. - - option: The lights will always stay on. - feedback: That wouldn't be right. + question_text: Bu otomatik tuvalet sistemi hakkında hangi ifade doğrudur? + code: "{while} tuvalet == 'dolu'\n ışıklar = 'açık'\n hava_tazeleyici_sprey = 'evet'\n {sleep} 60\n{else}\n ışıklar = 'kapalı'\n" + mp_choice_options: + - option: Işıklar ve oda spreyi 1 dakika sonra kapanacaktır + feedback: Yanlış! + - option: Oda spreyi her dakika bir kez püskürtülür ve tuvaletteyken ışıklar sürekli açık kalır + feedback: Harika bir iş + - option: Oda spreyi tuvaletten çıktığınızda püskürüyor. + feedback: Sadece siz oradayken püskürüyor. + - option: Işıklar her zaman açık kalacaktır. + feedback: Bu doğru olmazdı. correct_answer: B - hint: The block after the while command keeps happening while the toilet is occupied. + hint: '{while} komutundan sonraki blok, tuvalet dolu olduğu sürece devam eder.' question_score: '10' 9: - question_text: What will the diet app say if you have eaten 1600 calories today? - code: "chocolate = {ask} 'How many calories have you eaten today?'\n {while} calories <= 1000\n {print} 'You could eat some more'\n {while} calories > 1000 and calories =< 2000\n {print} 'That is alright'\n {while} calories > 2000\n {print} 'You have had enough for today'\n" - mp_choice_options: - - option: Nothing. 1600 is not programmed into the app. - feedback: No - - option: you could eat some more - feedback: No - - option: That is alright - feedback: Yes! - - option: You have eaten enough for today - feedback: No + question_text: Bugün 1600 kalori yediyseniz diyet uygulaması ne söyleyecek? + code: "kalori= {ask} 'Bugün kaç kalori aldınız?'\n {while} kalori <= 1000\n {print} 'Biraz daha yiyebilirsin.'\n {while} kalori > 1000 {and} kalori =< 2000\n {print} 'Sorun değil'\n {while} kalori > 2000\n {print} 'Bugünlük bu kadar yeter.'\n" + mp_choice_options: + - option: Hiçbir şey. 1600 uygulamaya programlanmamıştır. + feedback: Hayır + - option: Biraz daha yiyebilirsin + feedback: Hayır + - option: Sorun değil + feedback: Evet! + - option: Bugünlük bu kadar yeter + feedback: Hayır correct_answer: C - hint: 1600 is between 1000 and 2000 + hint: 1600, 1000 ile 2000 arasındadır question_score: '10' 10: - question_text: 'What should be filled in in the blanks? Tip: the player with the most points is in the lead.' - code: "name_player_1 = {ask} 'Name player 1:'\nname_player_2 = {ask} 'Name player 2:'\n{while} points_player_1 > points_player_2\n {print} _ ' is in the lead right now!'\n" - mp_choice_options: - - option: name_player_1 - feedback: You are right! - - option: name_player_2 - feedback: No they are losing! - - option: points_player_1 - feedback: You should fill in a name, not a number - - option: points_player_2 - feedback: You should fill in a name, not a number + question_text: 'Boşluğa ne gelmelidir? İpucu: En çok puan alan oyuncu liderdir.' + code: "isim_oyuncu_1 = {ask} 'İsim oyuncu 1:'\nisim_oyuncu_2 = {ask} 'İsim oyuncu 2:'\n{while} puan_oyuncu_1 > puan_oyuncu_2\n {print} _ ' şu anda lider durumda!'\n" + mp_choice_options: + - option: isim_oyuncu_1 + feedback: Haklısın! + - option: isim_oyuncu_2 + feedback: Hayır, o kaybediyor! + - option: puan_oyuncu_1 + feedback: Bir sayı değil, bir isim girmelisiniz + - option: puan_oyuncu_2 + feedback: Bir sayı değil, bir isim girmelisiniz correct_answer: A - hint: You win the game by having the most points. Your name should appear on the screen + hint: En çok puana sahip olarak oyunu kazanırsınız. Adınız ekranda görünmelidir question_score: '10' diff --git a/content/quizzes/uk.yaml b/content/quizzes/uk.yaml index 75aab83c1ab..a97674d7854 100644 --- a/content/quizzes/uk.yaml +++ b/content/quizzes/uk.yaml @@ -795,7 +795,7 @@ levels: - feedback: The variable name is replaced with Hedy option: Hi my Hedy is name - option: Hi my Hedy is Hedy - feedback: Correct, this mistake will be fixed in level 3! + feedback: Correct, this mistake will be fixed in level 4! code: "name {is} Hedy\n{print} Hi my name is name!" hint: "'name' is being replaced with 'Hedy' in both places" question_score: '10' diff --git a/content/quizzes/ur.yaml b/content/quizzes/ur.yaml index d06c8e56bdd..d6673589c6b 100644 --- a/content/quizzes/ur.yaml +++ b/content/quizzes/ur.yaml @@ -242,7 +242,7 @@ levels: - option: Hi my Hedy is name feedback: The variable name is replaced with Hedy - option: Hi my Hedy is Hedy - feedback: Correct, this mistake will be fixed in level 3! + feedback: Correct, this mistake will be fixed in level 4! question_score: '10' correct_answer: D hint: "'name' is being replaced with 'Hedy' in both places" diff --git a/content/quizzes/vi.yaml b/content/quizzes/vi.yaml index 83bd04946bb..a70c72e46c3 100644 --- a/content/quizzes/vi.yaml +++ b/content/quizzes/vi.yaml @@ -363,7 +363,7 @@ levels: - option: Hi my Hedy is name feedback: The variable name is replaced with Hedy - option: Hi my Hedy is Hedy - feedback: Correct, this mistake will be fixed in level 3! + feedback: Correct, this mistake will be fixed in level 4! correct_answer: D hint: "'name' is being replaced with 'Hedy' in both places" question_score: '10' diff --git a/content/quizzes/zh_Hans.yaml b/content/quizzes/zh_Hans.yaml index 6abd07f8e32..f8a166b06e7 100644 --- a/content/quizzes/zh_Hans.yaml +++ b/content/quizzes/zh_Hans.yaml @@ -280,7 +280,7 @@ levels: - option: "你好,我的 海蒂 是 名字" feedback: "变量“名字”会被替换成海蒂" - option: "你好,我的 海蒂 是 海蒂" - feedback: "正确,这个问题会在第三关解决!" + feedback: "正确,这个问题会在第四关解决!" correct_answer: "D" hint: "两个“名字”都会被替换成“海蒂”" question_score: '10' diff --git a/content/quizzes/zh_Hant.yaml b/content/quizzes/zh_Hant.yaml index 838d762abf0..55a90da056c 100644 --- a/content/quizzes/zh_Hant.yaml +++ b/content/quizzes/zh_Hant.yaml @@ -226,7 +226,7 @@ levels: - option: Hi my Hedy is name feedback: The variable name is replaced with Hedy - option: Hi my Hedy is Hedy - feedback: Correct, this mistake will be fixed in level 3! + feedback: Correct, this mistake will be fixed in level 4! correct_answer: D hint: "'name' is being replaced with 'Hedy' in both places" question_score: '10' diff --git a/content/slides/tr.yaml b/content/slides/tr.yaml index 7fc25c12ae6..f704b360241 100644 --- a/content/slides/tr.yaml +++ b/content/slides/tr.yaml @@ -120,8 +120,8 @@ levels: text: "`{add}` `{to}` komutunun tersi `{remove}` `{from}` komutudur.\nBu komut listeden bir öğeyi kaldırır.\n" editor: "\n" 9: - text: "Enjoy the adventures in level 3!\n" - header: Let's get to work! + text: "Seviye 3'teki maceraların tadını çıkarın!\n" + header: Hadi işe koyulalım! 4: 1: header: 4. seviyeye hoş geldiniz diff --git a/translations/ca/LC_MESSAGES/messages.po b/translations/ca/LC_MESSAGES/messages.po index c6233c4985e..6d25b4bdd97 100644 --- a/translations/ca/LC_MESSAGES/messages.po +++ b/translations/ca/LC_MESSAGES/messages.po @@ -8,8 +8,8 @@ msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "POT-Creation-Date: 2023-09-22 21:29+0200\n" -"PO-Revision-Date: 2023-10-01 00:35+0000\n" -"Last-Translator: aniollidon \n" +"PO-Revision-Date: 2023-10-01 07:42+0000\n" +"Last-Translator: Yılmaz Durmaz \n" "Language-Team: none\n" "Language: ca\n" "MIME-Version: 1.0\n" @@ -479,6 +479,7 @@ msgstr "Duplica" msgid "echo_and_ask_mismatch_exception" msgstr "Desajust entre `{echo}` i `{ask}`" +#, fuzzy msgid "echo_out" msgstr "A partir del nivell 2 `{echo}` ja no serà necessari. Ara pots repetir la resposta amb `{ask}` i `{print}`. Exemple: `nom {is} {ask} Com et dius? {print} Hola nom`" diff --git a/translations/en/LC_MESSAGES/messages.po b/translations/en/LC_MESSAGES/messages.po index c2c81da1eb3..115dd70aab4 100644 --- a/translations/en/LC_MESSAGES/messages.po +++ b/translations/en/LC_MESSAGES/messages.po @@ -8,8 +8,8 @@ msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "POT-Creation-Date: 2023-09-22 21:29+0200\n" -"PO-Revision-Date: 2023-09-27 11:57+0000\n" -"Last-Translator: Étienne Charignon \n" +"PO-Revision-Date: 2023-10-01 00:33+0000\n" +"Last-Translator: Yılmaz Durmaz \n" "Language-Team: en \n" "Language: en\n" "MIME-Version: 1.0\n" @@ -553,7 +553,7 @@ msgid "echo_and_ask_mismatch_exception" msgstr "Echo and ask mismatch" msgid "echo_out" -msgstr "Starting in level 2 `{echo}` is no longer needed. You can repeat an answer with `{ask}` and `{print}` now. Example: `name is {ask} What are you called? {print} hello name`" +msgstr "Starting in level 2 `{echo}` is no longer needed. You can repeat an answer with `{ask}` and `{print}` now. Example: `name {is} {ask} What are you called? {print} hello name`" msgid "edit_code_button" msgstr "Edit code" diff --git a/translations/tr/LC_MESSAGES/messages.po b/translations/tr/LC_MESSAGES/messages.po index 09144d46ffd..b1d2c4698d8 100644 --- a/translations/tr/LC_MESSAGES/messages.po +++ b/translations/tr/LC_MESSAGES/messages.po @@ -3,7 +3,7 @@ msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2023-09-22 21:29+0200\n" -"PO-Revision-Date: 2023-09-27 04:01+0000\n" +"PO-Revision-Date: 2023-10-01 07:42+0000\n" "Last-Translator: Yılmaz Durmaz \n" "Language-Team: tr \n" "Language: tr\n" @@ -552,10 +552,7 @@ msgid "echo_and_ask_mismatch_exception" msgstr "yankıla ve sor uyuşmazlığı" msgid "echo_out" -msgstr "" -"2. seviyeden itibaren, {echo} artık gerekli değildir. Şimdi bir cevabı " -"{ask} ve {print} kullanarak tekrarlayabilirsiniz. Örnek: isim {ask} Senin" -" adın ne? {print} merhaba isim" +msgstr "2. seviyeden itibaren, {echo} artık gerekli değildir. Şimdi bir cevabı {ask} ve {print} kullanarak tekrarlayabilirsiniz. Örnek: isim {is} {ask} Senin adın ne? {print} merhaba isim" msgid "edit_code_button" msgstr "Kodu düzenle" From 1709a63a02986e3c6b39044919ec358e3762fec6 Mon Sep 17 00:00:00 2001 From: Tobias Preuss Date: Sun, 1 Oct 2023 09:42:05 +0200 Subject: [PATCH 08/15] Translated using Weblate (German) Currently translated at 52.0% (26 of 50 strings) Translated using Weblate (German) Currently translated at 59.0% (410 of 694 strings) Translated using Weblate (German) Currently translated at 58.7% (408 of 694 strings) Translated using Weblate (English) Currently translated at 100.0% (694 of 694 strings) Co-authored-by: Tobias Preuss Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/de/ Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/en/ Translate-URL: https://hosted.weblate.org/projects/hedy/parsons/de/ Translation: Hedy/Adventures Translation: Hedy/Parsons --- content/adventures/de.yaml | 18 +++++++++--------- content/adventures/en.yaml | 6 +++--- content/parsons/de.yaml | 4 ++-- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/content/adventures/de.yaml b/content/adventures/de.yaml index 8517ac6bb3b..d1b215e19b3 100644 --- a/content/adventures/de.yaml +++ b/content/adventures/de.yaml @@ -214,7 +214,7 @@ adventures: {print} Name hat Angst, dass es in diesem Wald spukt. ``` start_code: "{print} Deine Geschichte" - story_text_2: "### Übung\nNun ist es an der Zeit Variablen zu deiner eigenen Geschichte aus dem vorigen Level hinzu zu fügen.\nGehe zu \"Meine Programme\", suche dein Level 1 Geschichten-Abenteuer und kopiere den Code. Füge den Code in den Eingabebereich in diesem Level ein.\n\nDieser Code wird nicht funktionieren, weil du noch keine Variablen benutzt hast.\nÄndere den `{ask}` Befehl und den `{echo}` Befehl in deinem Code in die richtige Form, die du in diesem Level gelernt hast.\n\n**Extra** Füge deinem Code den warte-Befehl hinzu, um Spannung in deiner Geschichte aufzubauen.\n" + story_text_2: "### Übung\nNun ist es an der Zeit Variablen zu deiner eigenen Geschichte aus dem vorigen Level hinzu zu fügen.\nGehe zu \"Meine Programme\", suche dein Level 1 Geschichten-Abenteuer und kopiere den Code. Füge den Code in den Eingabebereich in diesem Level ein.\n\nDieser Code wird nicht funktionieren, weil du noch keine Variablen benutzt hast.\nBringe den `{ask}` Befehl und den `{echo}` Befehl in deinem Code in die richtige Form, die du in diesem Level gelernt hast.\n\n**Extra** Füge deinem Code den `{sleep}`-Befehl hinzu, um Spannung in deiner Geschichte aufzubauen.\n" 12: story_text: |- In diesem Level werden Anführungszeichen benötigt, um mehrere Wörter in einer Variablen zu speichern. @@ -2406,9 +2406,9 @@ adventures: default_save_name: is_command levels: 2: - story_text: "## Variables\nYou can name a word with `{is}`. This is called a **variable**. In this example we made a variable called name and a variable called age. You can use the word name anywhere in your code and it will be replaced by Hedy, like this:\n" + story_text: "## Variablen\nDu kannst einem Wort mit `{is}` einen Wert geben. Dieses Wort nennt man eine **Variable**. In diesem Beispiel haben wir eine Variable namens name und eine Variable names age benutzt. Du kannst das Wort name irgendwo in deinem Code verwenden. Es wird von Hedy automatisch ersetzt, wie hier:\n" example_code: "```\nname {is} Hedy\nage {is} 15\n{print} name is age years old\n```\n" - story_text_2: "### Exercise\nTime to make your own variables!\nIn the example code we made an example of the variable `favorite_animals`. In line 1 the variable is set, and in line 2 we haved used the variable in a print command.\nFirstly, finish our example by filling in your favorite animal in the blanks. Then make at least 3 of these codes yourself. Pick a variable, and set the variable with the {is} command. Then use it with a {print} command, just like we did.\n" + story_text_2: "### Übung\nEs ist Zeit, deine eigenen Variablen zu definieren.\nIm Beispiel-Code zeigen wir ein Beispiel mit der Variable `favorite_animals`. In Zeile 1 wird die Variable gesetzt, und in Zeile 2 verwenden wir die Variable in einem `{print}` Befehl.\nZuerst, vervollständige unser Beispiel, in dem du dein Lieblingstier in die Leerstelle einträgst. Dann denke dir mindestens 3 eigene Code-Beispiele aus. Wähle eine Variable und gib der Variable mit dem `{is}` Befehl einen Wert. Dann verwenden den `{print}` Befehl, so wie wir es gezeigt haben.\n" example_code_2: "```\nfavorite_animals is _\n{print} I like favorite_animals\n```\n" start_code: "name {is} Hedy\nage {is} 15\n{print} name is age years old" 14: @@ -2430,12 +2430,12 @@ adventures: story_text: "We are going to make lists the Python way, with square brackets around the lists! We also keep the quotation marks around each item like we have learned in previous levels.\nWe use square brackets to point out a place in a list. The {at} {random} command can not be used anymore." example_code: "```\nfriends = ['Ahmed', 'Ben', 'Cayden']\nlucky_numbers = [15, 18, 6]\n{for} i {in} {range} 1 {to} 3\n {print} 'the lucky number of ' friends[i]\n {print} 'is ' lucky_numbers[i]\n```\n" 3: - story_text: "## At random\nIn this level you can make a list using the `{is}` command. You can let the computer choose a random item from that list. You do that with `{at} {random}`.\n" + story_text: "## An zufällig\nIn diesem Level kannst du eine Liste mit dem `{is}` Befehl erstellen. Du kannst den Computer einen zufälligen Eintrag aus dieser Liste auswählen lassen. Das machst du mit `{at} {random}`.\n" example_code: "```\nanimals {is} dogs, cats, kangaroos\n{print} animals {at} {random}\n```\n" story_text_2: "You can use the `{at} {random}` command in a sentence as well.\n" example_code_2: "```\nfood {is} sandwich, slice of pizza, salad, burrito\n{print} I am going to have a food {at} {random} for lunch.\n```\n" start_code: "animals {is} dog, cat, kangaroo\n{print} animals {at} {random}\n" - story_text_3: "### Exercise\nTry out the `{at} {random}` command by making your own gameshow (like the ones on tv) where you choose a door or suitcase and it contains a big price!\nCan you do it? We have already put the first lines into the example code.\n" + story_text_3: "### Übung\nProbiere den `{at} {random}` Befehl aus und erschaffe deine eigene Spielesendung (wie die im Fernsehen), wo du eine Tür order einen Koffer auswählst und sich dort ein großer Preis versteckt!\nKannst du es tun? Wir haben schon mal die ersten Zeilen in den Beispielcode eingefügt.\n" example_code_3: "```\n{print} The big gameshow!\n{print} There are 3 suitcases in front of you...\nchosen {is} {ask} Which suitcase do you choose?\nprices {is} _\n_\n```\n" name: "{random}" description: introducing at random command @@ -2446,7 +2446,7 @@ adventures: default_save_name: sleep_command levels: 2: - story_text: "## The sleep command\nAnother new command in this level is `{sleep}`, which pauses your program for a second. If you type a number behind the {sleep} command, the program pauses for that amount of seconds.\n" + story_text: "Ein weiterer neuer Befehl in diesem Level ist der `{sleep}` Befehl. Er pausiert dein Programm für eine Sekunde. Wenn du eine Zahl hinter den {sleep} Befehl schreibst, pausiert dein Programm für diese Anzahl an Sekunden.\n\n### Übung\nÜbe den neuen Befehl, in dem du dir eigenen Code ausdenkst, der mindestens 3 mal den Befehl {sleep} verwendet. Mit jeden {sleep} Befehl soll die Pausierzeit anders sein.\n" example_code: "```\n{print} My favorite colour is...\n{sleep} 2\n{print} green!\n```\n" start_code: "{print} My favorite colour is...\n{sleep} 2\n{print} green!" repeat_command: @@ -2472,7 +2472,7 @@ adventures: default_save_name: rock_2 levels: 2: - story_text: "Now that you have learned how to use the `{ask} command, you can make your rock, paper, scissors code interavtive too!\n\n### Exercise\nMake the rock, paper, scissors code interactive by adding the `{ask}` command and a question to your rock, paper, scissors code.\n" + story_text: "Jetzt, da du gelernt hast, wie man den `{ask}` Befehl einsetzt, kannst du den Stein, Schere, Papier Code auch interaktiv machen!\n\n### Übung\nMache den Stein, Schere, Papier Code interaktiv, in dem du den `{ask}` Befehl und eine Frage zu deinem Stein, Schere, Papier Code hinzufügst.\n" example_code: "```\nchoice is _\n{print} I choose choice\n```\n" start_code: "# place your code here" harry_potter: @@ -2498,9 +2498,9 @@ adventures: example_code_3: "```\n_ How are you doing?\n_\n```\n" start_code: "{print} Hello!\n{ask} What is your name?\n{echo} hello\n" 2: - story_text: "## The ask command\nNow that we can use **variables** in our codes, we no longer need the `{echo}` command.\nWe can use variables to store the answers to our questions and this way we can use the answer to multiple questions in our codes.\nCheck it out:\n\nThis way your code is becoming interactive!\n" + story_text: "## Der frage Befehl\nJetzt, wo du **Variablen** in deinen Programmen benutzen kannst, brauchen wir den `{echo}` Befehl nicht mehr.\nWir können Variablen verwenden, um die Antworten auf unsere Fragen zu speichern. Dadurch können wir die Antwort an mehreren Stellen im Code verwenden.\nProbiere es aus:\n\nDamit wird dein Code viel interaktiver!\n" example_code: "```\nname {is} {ask} What is your name?\n{print} Hello name\nage {is} {ask} How old are you?\n{print} name is age years old.\n```\n" - story_text_2: "### Exercise\nIn the previous tab you have practised with setting variables with the `{is}` command.\nYou have created at least 3 variables and used them with a print command.\nNow, instead of setting the variables we want you to make the variables interactive, like we did in our example.\n\nCopy your code from the previous tab and make the variables interactive by using `{ask}` commands.\n" + story_text_2: "### Übung\nIn vorherigen Übung hast du das Setzen von Variablen mit dem `{is}` Befehl geübt.\nDu hast mindestens 3 Variablen definiert und sie im print Befehl verwendet.\nJetzt wollen wir die Variablen wie unserem Beispiel interaktiv machen, statt sie zu setzen.\n\nKopiere den Code der vorherigen Übung hierher und mache sie mit `{ask}` Befehlen interaktiv.\n" example_code_2: "```\nfavorite_animals is ask What is your favorite animal?\nprint I like favorite_animals\n```\n" start_code: "name {is} {ask} What is your name?\n{print} Hello name\nage {is} {ask} How old are you?\n{print} name is age years old." add_remove_command: diff --git a/content/adventures/en.yaml b/content/adventures/en.yaml index 239e390448a..502fa6f8455 100644 --- a/content/adventures/en.yaml +++ b/content/adventures/en.yaml @@ -11,7 +11,7 @@ adventures: Try the code yourself with the green 'Run code' button under the programming field. Ready? Then go to the next tab to learn your first command! - start_code: "{print} hello world!" + start_code: "`{print}` hello world!" 2: story_text: | Congratulations! You've reached level 2. Hopefully you've already made some awesome codes! @@ -1140,7 +1140,7 @@ adventures: This code won't work in this level, because you have not used variables yet. Change the `{ask}` commands and `{echo}` commands in your code to the correct form that you've learned in this level. - **Extra** Add a {sleep} command to your code to build up tension in your story. + **Extra** Add a `{sleep}` command to your code to build up tension in your story. example_code: |- ``` name {is} {ask} What is the name of the main character? @@ -2224,7 +2224,7 @@ adventures: levels: 2: story_text: | - Now that you have learned how to use the `{ask}` command, you can make your rock, paper, scissors code interavtive too! + Now that you have learned how to use the `{ask}` command, you can make your rock, paper, scissors code interactive too! ### Exercise Make the rock, paper, scissors code interactive by adding the `{ask}` command and a question to your rock, paper, scissors code. diff --git a/content/parsons/de.yaml b/content/parsons/de.yaml index e24e7a92801..01ec45074d4 100644 --- a/content/parsons/de.yaml +++ b/content/parsons/de.yaml @@ -22,8 +22,8 @@ levels: 2: 1: story: | - You and your friends are going to watch some Netflix. - Show which movie you're about to watch and wish the viewers lot of fun! + Du und deine Freunde wollen etwas auf Netflix gucken. + Zeige den Film, den ihr anschauen wollt und wünsche den Zuschauern viel Freude! code: |- {print} Es ist Zeit für einen Netflix-Abend film {is} Sonic der Igel 2 From 6f10d3490253dc8df4ec2a9b6dfe7beacb07f652 Mon Sep 17 00:00:00 2001 From: Roi Gabay Date: Sun, 1 Oct 2023 09:42:05 +0200 Subject: [PATCH 09/15] Translated using Weblate (Hebrew) Currently translated at 94.1% (178 of 189 strings) Co-authored-by: Roi Gabay Translate-URL: https://hosted.weblate.org/projects/hedy/commands/he/ Translation: Hedy/Cheatsheets --- content/cheatsheets/he.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/cheatsheets/he.yaml b/content/cheatsheets/he.yaml index 2b788bac787..62559603873 100644 --- a/content/cheatsheets/he.yaml +++ b/content/cheatsheets/he.yaml @@ -38,7 +38,7 @@ name: '{ask}' explanation: בקשו תוצאה של חישוב ואז בידקו אם הוא נכון. - demo_code: "זוויות = {ask} 'כמה זוויות?'\nזווית = 360 / זוויות\n{forward} 50" - name: '{ask} ו {if} עם צב' + name: '`{ask}` ו `{if}` עם צב' explanation: שאלו את המשתמש כמה זוויות הם.ן רוצים.ות. 8: - name: '{print}' From 3cae22309cd2ff703e3da53a0c3e211739d7354f Mon Sep 17 00:00:00 2001 From: gallegonovato Date: Sun, 1 Oct 2023 09:42:06 +0200 Subject: [PATCH 10/15] Translated using Weblate (Spanish) Currently translated at 100.0% (1926 of 1926 strings) Translated using Weblate (Spanish) Currently translated at 100.0% (694 of 694 strings) Co-authored-by: gallegonovato Translate-URL: https://hosted.weblate.org/projects/hedy/adventures/es/ Translate-URL: https://hosted.weblate.org/projects/hedy/quizzes/es/ Translation: Hedy/Adventures Translation: Hedy/Quizzes --- content/adventures/es.yaml | 66 +++++++++++++++++++------------------- content/quizzes/es.yaml | 42 ++++++++++++------------ 2 files changed, 54 insertions(+), 54 deletions(-) diff --git a/content/adventures/es.yaml b/content/adventures/es.yaml index 59704ccde82..3dc1ff2ef0d 100644 --- a/content/adventures/es.yaml +++ b/content/adventures/es.yaml @@ -11,7 +11,7 @@ adventures: Prueba el código por ti mismo con el botón verde 'Ejecutar código' bajo el bloque de programación. ¿Preparado? ¡Entonces ve a la siguiente pestaña para aprender tu primer comando! - start_code: "{print} hola mundo!" + start_code: "`{print}` ¡hola mundo!" 2: story_text: | ¡Enhorabuena! Has alcanzado el nivel 2. ¡Espero que ya hayas hecho algunos códigos increíbles! @@ -41,7 +41,7 @@ adventures: `My Sophie is Sophie`. En este nivel, este problema se soluciona mediante el uso de comillas. - start_code: "{print} 'Hola mundo'" + start_code: "Mi nombre {is} Sophie\n{print} Mi nombre es nombre\n" example_code: "```\nnombre {is} Sofia\n{print} Mi nombre es nombre\n```\n" 5: start_code: |- @@ -108,15 +108,15 @@ adventures: story_text: "Quizá hayas intentado usar números decimales en aventura del restaurante. Si lo hiciste, te habrás dado cuenta que Hedy no todavía los entendía y siempre los redondeaba.\nDesde este nivel en adelante puedes usar números decimales.\n" example_code: "```\nhamburguesa = 5\nbebida = 2\ntotal = hamburguesa + bebida\nimprimir 'Has pedido una hamburguesa y una bebida'\nimprimir 'Eso cuesta ' total ' dólares por favor'\n```\n" 13: - start_code: "{print} '¡Vayamos al siguiente nivel!'" + start_code: "{print} '¡Vamos a la siguiente pestaña!'" story_text: "En los niveles anteriores aprendiste cómo poner dos comandos `{if}` uno dentro de otro. Esto funciona bien, pero resulta en códigos extensos e inmanejables como este:\n\nEn este sistema tienes que poner el nombre de usuario correcto y la contraseña correcta.\nEn este nivel aprenderás el comando `{and}` que hará este código !mucho más corto y más entendible!\n¡Compruébalo!\n" example_code: "```\nnombre_usuario = {ask} '¿Cuál es tu nombre de usuario?'\ncontraseña = {ask} '¿Cuál es tu contraseña?'\n{if} nombre_usuario {is} 'Hedy'\n {if} contraseña {is} 'secreta'\n {print} '¡Bienvenido Hedy!'\n {else}\n {print} 'Acceso denegado'\n{else}\n {print} '¡Acceso denegado!'\n```\n" 14: - start_code: "{print} 'Vayamos a la siguiente pestaña'" + start_code: "contesta = {ask} '¿Quieres saber más?'\n{if} contesta == 'Si'\n {print} '¡A la siguiente aventura!'\n{if} ¡Contesta != 'si'\n {print} '¡Qué pena!'\n" story_text: "Con el programa de abajo puedes calcular si has aprobado una asignatura en el colegio (por lo tanto, una nota de seis o superior).\nPuedes ver que este código es extremadamente ineficiente, debido al código tan largo en la línea 5.\nTodas las diferentes notas de 1 a 5 tuvieron que programarse por separado. Afortunadamente para ti, en este nivel aprenderás como hacer esto sin este código !extremadamente largo!\n" example_code: "```\nprimer_curso = {ask} '¿Qué nota conseguiste en tu primer examen?'\nsegundo_curso = {ask} '¿Qué nota conseguiste en tu segundo examen?'\nsuma = primer_curso + segundo_curso\nmedia_curso = suma / 2\n{if} media_curso = 1 {or} media_curso = 2 {or} media_curso = 3 {or} media_curso = 4 {or} media_curso = 5\n {print} '¡Oh no! Has suspendido la asignatura...'\n{else}\n {print} '¡Genial! ¡Has aprobado la asignatura!'\n```\n" 15: - start_code: "{print} '¡Vayamos al siguiente nivel!'" + start_code: "{print} '¡Vamos a la siguiente pestaña!'" story_text: "En el juego de abajo, se ha preparado un código para asegurarse que el jugador pueda jugar tanto como quieran...\nPero el código es ineficiente y tarda mucho. Además, ¿y si el jugador quiere jugar 101 partidas en vez de 100?\n¿No puede jugar hasta el infinito?\n!En este nivel aprenderás un comando que hará todo esto mucho más fácil!\n" example_code: "```\njuego {is} 'iniciado'\n{for} i {in} {range} 1 {to} 100\n {if} juego {is} 'iniciado'\n respuesta = {ask} '¿Quieres continuar?'\n {if} respuesta {is} 'no'\n juego {is} 'finalizado'\n {if} respuesta {is} 'si'\n {print} 'Ok continuemos'\n```\n" 16: @@ -124,7 +124,7 @@ adventures: story_text: "En este nivel creceremos un poco más hacia código real de Python. También aprenderás como hacer que dos listas coincidan.\nAsí puedes programar un código en el que el animal correcto coincide con el sonido correcto.\nPorque los dos código de abajo... !Obviamente no tienen sentido!\n" example_code: "```\nanimales = 'gallina', 'caballo', 'vaca'\nsonidos = 'cluck', 'neigh', 'moo'\n{for} animal {in} animales\n {print} 'Un ' animal ' dice ' sonidos {at} {random}\n```\nTambién puedes intentar que funcione así, pero....\n```\nanimales = 'gallina', 'caballo', 'vaca'\nsonidos = 'cluck', 'neigh', 'moo'\n{for} animal {in} animales\n {for} sonido {in} sonidos\n {print} 'Un ' animal ' dice ' sonido\n```\nNota: Estos códigos no funcionarán así en este nivel. Dirígete a la siguiente pestaña para ver qué partes necesitas corregir." 17: - start_code: "{print} '¡Vayamos al siguiente nivel!'" + start_code: "{print} '¡Vamos a la siguiente pestaña!'" story_text: "Ahora vamos a cambiar un poco la indentación. Cada vez que necesitemos una sangría, necesitaremos `:` en la línea anterior a la sangría.\n\nEn este nivel también se puede utilizar un nuevo comando: `{ elif }`. `{elif}` es la abreviatura de {else} {if} y lo necesitas cuando quieres hacer 3 (¡o más!) opciones.\n¡Compruébalo!\n" 18: start_code: "{print} ('¡¡¡Gran trabajo!!!')" @@ -171,7 +171,7 @@ adventures: ``` start_code: "{print} Tu historia" - story_text_2: "### Ejercicio\nAhora es momento de añadir variables a la historia que hiciste en el nivel anterior.\nVe a 'Mis Programas', busca tu historia del nivel 1 y copia el código. Pega el código en tu pantalla de entrada en este nivel.\n\nEste código no funcionará en este nivel, porque no has usado variables aún.\nCambia los comandos `{ask}` y `{echo}` en tu código a la forma correcta que aprendiste en este nivel.\n\n**Extra** añade un comando {sleep} a tu código para crear tensión en la historia.\n" + story_text_2: "### Ejercicio\nAhora es momento de añadir variables a la historia que hiciste en el nivel anterior.\nVe a 'Mis Programas', busca tu historia del nivel 1 y copia el código. Pega el código en tu pantalla de entrada en este nivel.\n\nEste código no funcionará en este nivel, porque no has usado variables aún.\nCambia los comandos `{ask}` y `{echo}` en tu código a la forma correcta que aprendiste en este nivel.\n\n**Extra** añade un comando `{sleep}` a tu código para crear tensión en la historia.\n" 7: story_text: | En una historia, a veces es necesario repetir algo. Por ejemplo, si alguien pide ayuda, o si se canta una canción. @@ -631,7 +631,7 @@ adventures: 10: example_code: "```\ndías = Lunes, Martes, Miércoles, Jueves, Viernes, Sábado, Domingo\nnombres = mamá, papá, Emma, Sofía\n{for} día {in} días\n {print} nombres {at} {random} ' Hará los platos el ' día\n```\n" story_text: "En este nivel puedes hacer un horario de lavado de platos de forma fácil.\n\n### Ejercicio\nAgrega una tarea secundaria, como aspirar o planchar, y asegúrate que también esté dividida para toda la semana.\n
**Extra** El programa no es justo, puedes tener mala suerte y lavar toda la semana. ¿Cómo puedes hacer el programa más justo?\n" - start_code: '# pon tu código aquí' + start_code: "días = lunes, martes, miércoles, jueves, viernes, sábado, domingo\nnombres = mamá, papá, Emma, Sophie\n{for} día {in} días\n {print} nombres {at} {random} ' lava los platos el ' día\n" dice: name: "Dados" description: "Crea tu propio juego de dados" @@ -704,11 +704,11 @@ adventures: ![Dado con números del 1 al 5 y un gusanito en lugar del 6](https://cdn.jsdelivr.net/gh/felienne/hedy@24f19e9ac16c981517e7243120bc714912407eb5/coursedata/img/dobbelsteen.jpeg) example_code: | ``` - opciones {is} 1, 2, 3, 4, 5, gusanito - {print} tu lanzas_ {at} {random} + opciones {is} 1, 2, 3, 4, 5, lombriz de tierra + {print} ¡Lanzaste _ {at} {random}! ``` - start_code: "{print} ¿Qué salió esta vez?" + start_code: "opciones {is} 1, 2, 3, 4, 5, lombriz de tierra\n{print} ¡Lanzaste _ {at} {random}!\n" example_code_2: "```\nopciones {is} _\n```\n" story_text_2: "### Ejercicio\nLos dados en el ejemplo de arriba son dados para un juego en específico. ¿Puedes hacer un dado normal?\n¿U otro dado especial para un juego diferente?\n" 15: @@ -903,10 +903,10 @@ adventures: Ahora que puedes calcular, ¡puedes hacer una calculadora! example_code: | ``` - numero_1 {is} {ask} 'Llena el primer número:' - numero_2 {is} {ask} 'Llena el segundo número:' - respuesta_correcta = numero_1 * numero_2 - {print} numero_1 ' por ' numero_2 ' es ' respuesta_correcta + número_1 = {ask} 'Rellena el primer número:' + número_2 = {ask} 'Escribe el segundo número:' + respuesta_correcta = número_1 * número_2 + {print} número_1 ' por ' número_2 ' es ' la respuesta_correcta ``` story_text_2: | ### Ejercicio @@ -919,7 +919,7 @@ adventures: {if} respuesta {is} _ {print} '¡Buen trabajo!' {else} {print} '¡Incorrecto! Era ' _ ``` - start_code: "{print} '¡Bienvenido a tu propia calculadora!'" + start_code: "número_1 = {ask} 'Introduce el primer número:'\nnúmero_2 = {ask} Escribe el segundo número:'\nrespuesta_correcta = número_1 * número_2\n{print} número_1 ' por ' número_2 ' es ' la respuesta_correcta\n" story_text_3: "**Extra** También puedes dejar que el ordenador haga sumas aleatorias por sí mismo usando random.\n\nAsí eliges un número de tablas para practicar, y de ahí siempre obtienes una suma diferente:\n" 14: story_text: "En este nivel puedes programar el juego 'Adivina el número'\n" @@ -938,9 +938,9 @@ adventures: example_code: "```\npuntaje = 0\n{for} i {in} {range} 0 {to} 9\n números = 1, 2, 3, 4, 5, 6, 7, 8, 9, 10\n número1 = números {at} {random}\n número2 = números {at} {random}\n correcta = número1 * número2\n respuesta = 0\n {while} respuesta != correcta\n {print} '¿Cuánto es ' número1 ' por ' número2 '?'\n respuesta = {ask} 'Escribe tu respuesta:'\n {print} 'Tu respuesta es ' respuesta\n {print} '¡Buen trabajo!'\n{print} '¡Ganaste!'\n```\n" start_code: '# pon tu código aquí' 11: - example_code: "```\nnúmero = 10\n{for} i {in} {range} 1 a 10\n {print} i * número\n```\n" + example_code: "```\nnúmero = 10\n{for} i {in} {range} 1 {to} 10\n {print} i * número\n```\n" story_text: "Con `{for}` puedes simplificar programas de practica de las tablas de multiplicación.\n\n### Ejercicio 1\nMejora el código de ejemplo para que\n\n### Ejercicio 2\nVuelve al código de multiplicación del nivel 10, y modifícalo para que use un `{for}` y `{range}`.\n" - start_code: '# pon tu código aquí' + start_code: "número = 10\n{for} i {in} {range} 1 {to} 10\n {print} i * number\n" 13: story_text: | ### Ejercicio 1 @@ -1094,7 +1094,7 @@ adventures: Así: start_code: "# pon tu código aquí" - example_code: "```\n_ ¡Hola, soy Hedy la adivina!\n_ ¿Quién eres?\n_ Déjame echar un vistazo a mi bola de cristal.\n_ Veo... Veo...\n_ Tu nombre es\n```\n" + example_code: "```\n_¡Hola, soy Hedy la adivina!\n_¿Quién eres tú?\n_Déjame echar un vistazo en mi bola de cristal.\n_Veo... Veo...\n_Tu nombre es\n```\n" story_text_2: "### Ejercicio\nCopia el código de ejemplo en tu pantalla de entrada y rellena los espacios en blanco para hacer que tu código funcione.\n**Extra** Cambia el código y deja que el adivino no sólo prediga tu nombre, sino también tu edad, tu equipo favorito de deporte o cualquier otra cosa sobre ti mismo.\n" 3: story_text: | @@ -1105,7 +1105,7 @@ adventures: story_text_2: "### Ejercicio\nAhora Hedy sólo puede responder si, no o quizás. ¿Puedes darle más opciones a Hedy, como 'sin duda' o 'pregunta de nuevo'.\n" 12: story_text: "Desde el nivel 12, tendrás que usar comillas en las listas, antes y después de cada elemento.\n\n### Ejercicio \nAñade dos predicciones a la lista" - example_code: "```\nfortuna = 'te resbalarás en una cáscara de plátano', _\n{print} 'Echaré un vistazo a tu futuro en mi bola de cristal.'\n{print} 'Veo... Veo...\n{sleep}\n{print} tu fortuna {at} {random}\n```\n" + example_code: "```\nfortuna = 'te resbalarás en una cáscara de plátano', _\n{print} 'Echaré un vistazo a tu futuro en mi bola de cristal.'\n{print} 'Veo... Veo...'\n{sleep}\n{print} tu fortuna {at} {random}\n```\n" start_code: '# pon tu código aquí' 10: story_text: "En este nivel aprenderás a programar el juego MACC (mansión, apartamento, cabaña, casa). En este juego puedes predecir para todos los jugadores a la vez, cuál será su futuro.\n\n### Ejercicio\nLlena los huecos en blanco usando el nuevo comando que has aprendido en este nivel.\n" @@ -1410,9 +1410,9 @@ adventures: story_text_3: "También puedes comparar si algo *no* es igual a otra cosa usando `!=` tal que así:\n" example_code_3: "```\nnombre = {ask} '¿Cómo te llamas?'\n{if} nombre != 'Hedy'\n {print} 'Tu no eres Hedy'\n```\n" 6: - story_text: "We also make a change in storing a word in a variable! You may now use `=` instead of `{is}` when we store a name or a number in a variable, like this:\n" - example_code: "```\nname = Hedy\nanswer = 20 + 4\n```\n" - start_code: "name = Hedy\nanswer = 20 + 4\n" + story_text: "¡También hacemos un cambio al almacenar una palabra en una variable! Ahora se puede utilizar `=` en lugar de `{is}` cuando almacenamos un nombre o un número en una variable, así:\n" + example_code: "```\nnombre = Hedy\nrespuesta = 20 + 4\n```\n" + start_code: "nombre = Hedy\nrespuesta = 20 + 4\n" add_remove_command: levels: 3: @@ -1453,9 +1453,9 @@ adventures: example_code: "```\nnombre {is} {ask} '¿Cómo te llamas?'\n{if} nombre {is} Hedy\n {print} 'Bienvenido Hedy'\n {print} '¡Puedes jugar en tu ordenador!'\n```\n" story_text: "## Si… Sino…\nHas aprendido a repetir un bloque de líneas de código tras un comando `{repeat}`.\nAhora puedes usar la sangría para hacer bloques tras un comando {if} o {else}.\nComprueba el código de ejemplo.\n\n### Ejercicio\nAñade un comando {else} al código de ejemplo. Haz un bloque de línea usando sangría. Haz esto empezando cada línea con 4 espacios.\n" 9: - start_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" - story_text: "In this level you can also put an {if} command inside another {if} command.\n" - example_code: "continue = ask 'Do you want to continue?'\nif continue = yes\n sure = ask 'Are you sure?'\n if sure is yes\n print 'We will continue'\n else\n print 'You are not sure'\nelse\n print 'You do not want to continue'\n" + start_code: "continuar = {ask} '¿Deseas continuar?'\n{if} continuar = sí\n seguro = {ask} '¿Está seguro?'\n {if} seguro {is} sí\n {print} 'Continuaremos'\n {else}\n {print} 'No estás seguro'\n{else}\n {print} 'No deseas continuar'.\n" + story_text: "En este nivel también puedes poner un comando {if} dentro de otro comando {if}.\n" + example_code: "continuar = {ask} \"¿Deseas continuar?\n{if} continuar = sí\n seguro = {ask} '¿Estás seguro?'\n {if} seguro {is} sí\n {print} 'Continuamos' \n {else}\n {print} 'No estás seguro'\n{else}\n {print} 'No deseas continuar'.\n" repeat_command: name: "{repeat}" description: comando repetir @@ -1521,7 +1521,7 @@ adventures: default_save_name: piedra_2 levels: 2: - story_text: "Ahora que has aprendido como usar el comando `{ask}`, ¡también puedes hacer tu código interactivo de piedra, papel, tijeras!\n\n### Ejercicio\nHaz el código interactivo de piedra, papel, tijeras añadiendo el comando `{ask}` y una pregunta a tu código de piedra, papel, tijeras.\n" + story_text: "Ahora que has aprendido a utilizar el comando `{ask}`, ¡también puedes hacer que tu código de piedra, papel o tijera sea interactivo!\n\n### Ejercicio\nHaz que el código de piedra, papel o tijera sea interactivo añadiendo el comando `{ask}` y una pregunta a tu código de piedra, papel o tijera.\n" example_code: "```\nopción {is} _\n{print} Yo elijo opción\n```\n" start_code: "# pon tu código aquí" harry_potter: @@ -1566,7 +1566,7 @@ adventures: story_text_3: "### Ejercicio\nPrueba el comando `{at} {random}` haciendo tu propio espectáculo (como los de la tele) donde eliges una puerta o maleta y ¡tendrá un gran premio!\n¿Puedes hacerlo? Ya hemos puesto las primeras líneas en el código de ejemplo.\n" example_code_3: "```\n{print} ¡El gran espectáculo!\n{print} Hay 3 maletas delante tuyo...\nelegida {is} {ask} ¿Qué maleta eliges?\npremios {is} _\n_\n```\n" 16: - start_code: "fruta = ['manzana', 'plátano', 'cereza']\n{print} fruta[aleatorio]" + start_code: "amigos = ['Ahmed', 'Ben', 'Cayden']\nlucky_numbers = [15, 18, 6]\n{for} i {in} {range} 1 {to} 3\n {print} 'el número de la suerte de tus ' amigos[i]\n {print} 'es ' lucky_numbers[i]" story_text: "Vamos a hacer listas a la manera de Python, con corchetes alrededor de las listas! También mantendremos las comillas en cada objeto como hemos aprendido en los niveles anteriores.\nUsamos corchetes para señalar una posición en una lista. El comando {at} {random} ya no se puede utilizar." example_code: "```\namigos = ['Ahmed', 'Ben', 'Cayden']\nnumeros_suerte = [15, 18, 6]\n{for} i {in} {range} 1 {to} 3\n {print} 'el número de la suerte de ' amigos[i]\n {print} 'es ' numeros_suerte[i]\n```\n" in_command: @@ -1590,7 +1590,7 @@ adventures: story_text_2: "## Contracciones\n¡Importante! Ten en cuenta que estamos usando comillas, Hedy se confundirá cuando uses el apóstrofe para contracciones como I'm o What's.\nAsegúrate de eliminar esos apóstrofes y cambia la ortografía a I am o What is.\nComprueba el código de ejemplo para ver la forma incorrecta de usar los apóstrofes.\n" example_code: "```\n{print} '¡A partir de ahora tienes que usar las comillas!'\nrespuesta {is} {ask} '¿Qué tienes que usar a partir de ahora?'\n{print} 'Tenemos que usar ' respuesta\n```\n" example_code_2: "```\n_ Esta es la manera incorrecta de usar apóstrofes _\n{print} 'I'm babysitting my sister's kids'\n{print} 'What's more fun than that?'\n```\n" - start_code: "{print} '¡A partir de ahora tienes que usar las comillas!'\nrespuesta {is} {ask} '¿Qué tienes que usar a partir de ahora?'\n{print} 'Tenemos que usar ' respuesta" + start_code: "{print} '¡Debes usar comillas a partir de ahora!'\nanswer {is} {ask} ¿Qué tenemos que usar a partir de ahora?\n{print} 'Necesitamos usar ' answer 'de ahora en adelante'" 12: story_text: "**Todos los textos tienen que ir entre comillas**\nPara este nivel también tendrás que usar comillas cuando almacenes un texto con `=`:\n" example_code: "```\nnombre = 'El Robot Hedy'\n{print} 'Hola ' nombre\n```\n" @@ -1611,10 +1611,10 @@ adventures: story_text: "## Para\nEn este nivel aprendemos un nuevo código llamado `{for}`. Con `{for}` puedes hacer una lista y usar todos los elementos.\n`{for}` crea un bloque, como `{repeat}` y `{if}` así todas las líneas dentro del bloque necesita empezar con 4 espacios." example_code: "```\nanimales {is} perro, gato, pez globo\n{for} animal {in} animales\n {print} 'Yo amo ' animal\n```\n" 11: - start_code: | + start_code: |- {for} contador {in} {range} 1 {to} 10 {print} contador - {print} 'Listos o no, allí voy.' + {print} 'Listo o no. ¡Allá voy!' story_text: "En este nivel, añadimos una nueva forma del `{for}`. En niveles anteriores, usamos `{for}` con una lista, pero también podemos usar `{for}` con números.\nEsto lo hacemos añadiendo un nombre de variable, seguido por `{in}` `{range}`. Entonces escribimos el número en el que empezar, `{to}` y el número en el que terminar.\n\n¡Prueba este ejemplo a ver qué pasa! Otra vez en este nivel, tendrás que usar sangrías en las líneas situadas debajo de las sentencias `{for}`." example_code: | ``` @@ -1632,9 +1632,9 @@ adventures: default_save_name: cálculos levels: 6: - start_code: "{print} '5 veces 5 es ' 5 * 5" + start_code: "{print} '5 más 5 es ' 5 + 5\n{print} '5 menos 5 es ' 5 - 5\n{print} '5 veces 5 es ' 5 * 5\n{print} '5 dividido por 5 es ' 5 / 5\n" story_text: "## 1 + 1\nEn este nivel aprenderás algo nuevo: ahora también puedes calcular.\n\nLa suma es fácil, se escribe como en matemáticas: `5 + 5` por ejemplo. La resta funciona igual, es `5 - 5`.\n\nLa multiplicación es un poco diferente, porque no hay símbolo de multiplicar en tu teclado. 'Sólo busca, no hay realmente!\nEso es porque multiplicamos con el asterisco sobre el 8: `5 * 5`. Léelo como \"5 veces 5\" para recordarlo mejor.\n" - example_code: "```\n{print} '5 más 5 es ' 5 + 5\n{print} '5 menos 5 es ' 5 - 5\n{print} '5 veces 5 es ' 5 * 5\n```\n" + example_code: "```\n{print} '5 más 5 es ' 5 + 5\n{print} '5 menos 5 es ' 5 - 5\n{print} '5 veces 5 es ' 5 * 5\n{print} '5 dividido por 5 es ' 5 / 5\n```\n" 12: start_code: "{print} 'los números decimales ahora tienen que usar un punto'\n{print} 2.5 + 2.5" story_text: "**Números decimales**\nHasta ahora, Hedy no permitía números decimales como 1.5, pero ahora permitimos eso. Ten en cuenta que los ordenadores usan el `.` para los números decimales." diff --git a/content/quizzes/es.yaml b/content/quizzes/es.yaml index 2bcc3a58837..e9c33540a84 100644 --- a/content/quizzes/es.yaml +++ b/content/quizzes/es.yaml @@ -264,7 +264,7 @@ levels: - option: "Hola mi Hedy es nombre" feedback: "El nombre de la variable se reemplaza por Hedy" - option: "Hola mi Hedy es Hedy" - feedback: "Correcto, ¡este error se va arreglar en el tercer nivel!" + feedback: "¡Correcto, este error se solucionará en el nivel 4!" correct_answer: "D" hint: "'nombre' se está reemplazando con 'Hedy' en los dos lugares" question_score: '10' @@ -2497,7 +2497,7 @@ levels: feedback: Todos los diferentes valores de sabores deberían estar entre comillas. - option: "```\nsabores = 'vainilla, fresa, chocolate'\n{print} 'Me gustaría tomar una tarta de ' sabores {at} {random}\n```" feedback: ¡Muy bien! - - option: "\n ```\n sabores = 'vainilla, fresa, chocolate'\n {print} 'Me gustaría un pastel de ' sabores {at} {random} '.'\n ```\n" + - option: "\n ```\n sabores = 'vainilla, fresa, chocolate'\n {print} 'Me gustaría un pastel de ' sabores {at} {random} '.'\n ```\n" feedback: Todos los diferentes valores de sabores deberían estar entre comillas. correct_answer: C hint: La segunda línea es la misma en cada código, presta atención a la primera línea @@ -2519,7 +2519,7 @@ levels: 5: correct_answer: B question_text: ¿Qué resultado tendrá el Agente007 cuando pongan la contraseña correcta? - code: "nombre {is} {ask} '¿Cuál es su nombre?'\n{if} nombre {is} 'Agente007'\n a {is} 'Ir al aeropuerto '\nsino\n a {is} 'Ir a la estación de tren '\ncontraseña {is} {ask} '¿Cuál es la contraseña?'\n{if} contraseña {is} 'TOPSECRET'\n b {is} 'mañana a las 02.00'\nsino\n b {is} 'hoy a las 10.00'\nimprimir a + b" + code: "nombre {is} {ask} ¿Cuál es tu nombre?\n{if} nombre {is} 'Agente007'\n a {is} 'Ve al aeropuerto '\nsi no\n a {is} 'Ve a la estación de tren'\ncontraseña {is} {ask} ¿Cuál es la contraseña?\n{if} contraseña {is} 'ALTO SECRETO'\n b {is} 'mañana a las 02.00'\n{else}\n b {is} 'hoy a las 10.00'\n{print} a + b" mp_choice_options: - option: Ve a la estación de trenes hoy a las 10.00 feedback: El agente no atrapará a ningún malo aquí @@ -2602,13 +2602,13 @@ levels: - option: "```\npremios = 'un millón de dólares', 'nada'\n```" feedback: ¡Ganador! - option: "```\n'premios' = 'un millón de dólares', 'nada'\n```" - feedback: Tú nada + feedback: No ganaste nada correct_answer: C hint: Los objetos de la lista deben ir entre comillas question_score: '10' 10: question_text: ¿Qué línea de código debe rellenarse en ??? para completar la canción ? - code: "acciones = 'aplaude', 'pisa fuerte', 'grita ¡Hurra!'\n???\n {for} i {in} rango 0 {to} 1\n {print} 'si estás feliz y lo sabes'\n {print} accion\n {print} 'si estás feliz y lo sabes y realmente quieres mostrarlo'\n {print} 'si estás feliz y lo sabes'\n {print} accion" + code: "acciones = 'aplaude', 'pisa fuerte', 'grita ¡Hurra!'\n???\n {for} i {in} {range} 0 {to} 1\n {print} 'si estás feliz y lo sabes'\n {print} accion\n {print} 'si estás feliz y lo sabes y realmente quieres mostrarlo'\n {print} 'si estás feliz y lo sabes'\n {print} accion" mp_choice_options: - option: "```\n{for} i {in} {range} 1 {to} 3\n```" feedback: ¡Esta es difícil! En la canción deben aparecer todas las acciones de la lista. @@ -2804,7 +2804,7 @@ levels: question_score: '10' 4: correct_answer: B - code: "precio = 10\ndinero = {ask} ¿Cuánto dinero tienes?\ncomprar = {ask} '¿Quieres comprar este osito de peluche?'\n{if} dinero >= precio y comprar == 'sí'\n {print} '¡Puedes comprar el oso!'\n{else}\n {print} '¡No puedes comprar el oso!'\n" + code: "precio = 10\ndinero = {ask} ¿Cuánto dinero tienes?\ncomprar = {ask} '¿Quieres comprar este osito de peluche?'\n{if} dinero >= precio {and} comprar == 'sí'\n {print} '¡Puedes comprar el oso!'\n{else}\n {print} '¡No puedes comprar el oso!'\n" mp_choice_options: - option: En la línea 1 se debería haber usado == en vez de = feedback: No, no es eso @@ -2829,7 +2829,7 @@ levels: feedback: Se para tras 2 veces - option: 2 veces feedback: Eso es correcto - code: "vidas = 2\n{repeat} 10 veces\n {if} vidas != 0\n respuesta = {ask} '¿Ya estás enfadado?'\n {if} respuesta == 'sí'\n vidas = vidas - 1\n" + code: "vidas = 2\n{repeat} 10 {times}\n {if}¡ vidas != 0\n respuesta = {ask} '¿Ya estás enfadado?'\n {if} respuesta == 'sí'\n vidas = vidas - 1\n" correct_answer: D hint: "!= significa 'no es'" 9: @@ -2842,7 +2842,7 @@ levels: option: 8 o más - feedback: ¡Genial! option: 9 o más - code: "chocolate = {ask} '¿Cuántos trozos de chocolate te has comido?'\n {if} chocolate <= 2\n {print} 'Eso es una cantidad sana'\n {if} chocolate > 2 y chocolate =< 8\n {print} 'Eso es demasiado'\n {if} chocolate > 8\n {print} '¡Te va a doler el estómago!'\n" + code: "chocolate = {ask} ¿Cuántos trozos de chocolate has comido?\n {if} chocolate <= 2\n {print} 'Es una cantidad saludable'\n {if} chocolate > 2 {and} chocolate =< 8\n {print} 'Es demasiado'.\n {if} chocolate > 8\n {print} '¡Te dolerá el estómago!\n" question_text: ¿Cuántas porciones de chocolate harán que te duela el estómago de acuerdo a este fitbit? question_score: '10' correct_answer: D @@ -2879,7 +2879,7 @@ levels: question_score: '10' 5: question_text: '¿Qué símbolo debe rellenarse en los espacios en blanco si la película es apta para niños a partir de 12 años? ' - code: "edad = {ask} '¿Cuántos años tienes?'\nentrada = {ask} '¿Tienes una entrada?'\n{if} edad _ y entrada == 'sí'\n {print} 'Puedes entrar al cine.'\n{else}\n {print} '¡No puedes entrar!'\n" + code: "edad = {ask} '¿Cuántos años tienes?'\nentrada = {ask} '¿Tienes una entrada?'\n{if} edad _ {and} entrada == 'sí'\n {print} 'Puedes entrar al cine.'\n{else}\n {print} '¡No puedes entrar!'\n" mp_choice_options: - option: '`> 12`' feedback: También se admite a los de 12 años @@ -2925,7 +2925,7 @@ levels: 15: 1: question_text: '¿Qué símbolo debería usarse en el espacio en blanco? Consejo: Debes seguir adivinando hasta que lo consigas.' - code: "respuesta = 0\nwhile respuesta _ 'Amsterdam'\n respuesta = ask '¿Cuál es la capital de Paises Bajos?'\nprint 'Has dado la respuesta correcta'\n" + code: "respuesta = 0\n{while} respuesta _ 'Amsterdam'\n respuesta = {ask} ¿Cuál es la capital de los Países Bajos?\n{print} 'Has dado la respuesta correcta'\n" mp_choice_options: - option: '`=!`' feedback: Eso no es correcto. @@ -2953,8 +2953,8 @@ levels: hint: Cuando comparas dos respuestas debes usar == question_score: '10' 3: - question_text: ¿Qué comando debe rellenarse en los dos espacios en blanco? - code: "_ edad >= 18\n print 'no se te permite entrar en este bar'\n" + question_text: ¿Qué comando debe completar los espacio en blanco? + code: "_age < 18\n {print} 'no tienes permitido entrar en este bar'\n" mp_choice_options: - option: '`{in}`' feedback: No es eso @@ -2969,13 +2969,13 @@ levels: hint: No puedes entrar al bar si tienes 17 años o menos 4: question_text: ¿Qué le pasa a este código? - code: "opciones = 1, 2, 3, 4, 5, 6\nprint '¡Lanza un 6 lo antes posible!'\nlanzamientos = 0\nintentos = 0\nwhile lanzamientos == 6\n lanzamientos = opciones at random\n print 'Lanzaste ' thrown\n intentos = intentos + 1\nprint '¡Sí! Has lanzado 6 en ' intentos ' intentos.'\n" + code: "opciones = 1, 2, 3, 4, 5, 6\n{print} '¡Lanza 6 tan rápido como puedas!'\nlanzado = 0\nintentos = 0\n{while} lanzado == 6\n lanzado = opciones {at} {random}\n {print} 'Has lanzado ' lanzado\n intentos = intentos + 1\n{print} '¡Sí! Has lanzado 6 veces en ' intentos.'\n" mp_choice_options: - option: En la línea 1 debe utilizarse == en vez de = feedback: No es eso - option: Faltan comillas en la línea 2 feedback: Eso no está bien - - option: En la línea 5 se debería haber usado if en vez de while + - option: En la línea 5 debería haberse utilizado {if} en lugar de {while} feedback: No es eso - option: En la línea 5 se debería haber usado != en vez de == feedback: Tienes razón @@ -2984,7 +2984,7 @@ levels: correct_answer: D 5: question_text: ¿Qué hay que poner en el espacio en blanco para hacer que este programa funcione correctamente? - code: "humedad = 10\nwhile humedad != 0\n print 'Tu pelo sigue mojado, ¡secador activado!'\n sleep 1\n clear\n humedad _\n\nprint '¡Todo seco!'\n" + code: "humedad = 10\n{while} ¡ humedad != 0\n {print} 'Tu pelo sigue mojado, ¡el secador está encendido!'\n {sleep} 1\n {clear}\n humedad _\n\n{print} \"¡Todo seco!\n" mp_choice_options: - option: = humedad feedback: Eso no cambiará nada @@ -2999,11 +2999,11 @@ levels: question_score: '10' 6: question_text: ¿Qué le pasa a este código? - code: "vidas = 100\n {while} vidas != 0\n respuesta = {ask} '¿Ya estás enfadado?'\n{if} respuesta == 'sí'\n vidas = vidas - 1\n" + code: "vidas = 100\n {while} ¡ vidas != 0\n respuesta = {ask} '¿Ya estás enfadado?'\n {if} respuesta == 'sí\n vidas = vidas - 1\n" mp_choice_options: - - option: while debe ser if + - option: '{while} debería ser {if}' feedback: No, eso no es correcto - - option: if debe ser while + - option: '{if} debería ser {while}' feedback: No, eso no es correcto - option: La línea 3 debe empezar con más sangría feedback: No, eso no es correcto @@ -3013,7 +3013,7 @@ levels: hint: Presta atención a la sangría question_score: '10' 7: - question_text: ¿Cómo se debe cambiar este programa para que funcione? + question_text: ¿Cómo debería modificarse este programa para que funcione? code: "{print} 'Adivina el número'\nnúmeros = 1, 2, 3, 4, 5, 6, 7, 8, 9, 10\nnúmero = números {at} {random}\njuego = 'encendido'\n{if} juego == 'encendido'\n respuesta = {ask} 'Which número do you think it is?'\n {if} respuesta < número\n {print} _\n {if} respuesta > número\n {print} _\n {if} respuesta == número\n {print} _\n juego = 'acabado'\n" mp_choice_options: - option: '... cambia el primer {if} por un {while}' @@ -3029,7 +3029,7 @@ levels: question_score: '10' 8: question_text: ¿Qué sentencia es cierta sobre este sistema de baño automático? - code: "while baño == 'ocupado'\n luces = 'encendido'\n pulverizar_ambientados = 'sí'\n sleep 60\nelse\n luces = 'apagado'\n" + code: "{while} aseo == 'ocupado'\n luces = 'encendidas'\n air_freshener_sprays = 'yes'\n {sleep} 60\n{else}\n luces = 'apagadas'\n" mp_choice_options: - option: Las luces y el ambientador se apagarán tras 1 minuto feedback: ¡Falso! @@ -3043,7 +3043,7 @@ levels: hint: El bloque después del comando while sigue ocurriendo mientras el baño está ocupado. question_score: '10' 9: - code: "calorías = {ask} '¿Cuántas calorías has comido hoy?'\n {while} calorías <= 1000\n {print} 'Puedes comer más'\n {while} calorías > 1000 and calorias =< 2000\n {print} 'Está bien'\n {while} calorías > 2000\n {print} 'Ya has comido suficiente hoy'\n" + code: "calorías = {ask} '¿Cuántas calorías has comido hoy?'\n {while} calorías <= 1000\n {print} 'Podrías comer un poco más'\n {while} calorías > 1000 {and} calorías =< 2000\n {print} 'Está bien'\n {while} calorías > 2000\n {print} 'Ya has comido suficiente por hoy'\n" mp_choice_options: - option: Nada. 1600 no está programado en la aplicación. feedback: No From e281a424bdc0c7fcc4b5b8ded1e7db8f249cc5e8 Mon Sep 17 00:00:00 2001 From: Felienne Hermans Date: Sun, 1 Oct 2023 10:16:40 +0200 Subject: [PATCH 11/15] force werkzeug --- requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements.txt b/requirements.txt index 8755eb9e6a8..e52d6e4516a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,5 @@ Flask==2.3.2 +Werkzeug==2.3.7 lark==1.1.1 gunicorn==19.9.0 flask-compress==1.4.0 From 67e3660e2b6120430549507d091a5b1685caa540 Mon Sep 17 00:00:00 2001 From: Felienne Hermans Date: Sun, 1 Oct 2023 10:49:56 +0200 Subject: [PATCH 12/15] fix en start code --- content/adventures/en.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/adventures/en.yaml b/content/adventures/en.yaml index 502fa6f8455..4b3a3ea270d 100644 --- a/content/adventures/en.yaml +++ b/content/adventures/en.yaml @@ -11,7 +11,7 @@ adventures: Try the code yourself with the green 'Run code' button under the programming field. Ready? Then go to the next tab to learn your first command! - start_code: "`{print}` hello world!" + start_code: "{print} hello world!" 2: story_text: | Congratulations! You've reached level 2. Hopefully you've already made some awesome codes! From 2ae676c4871387f5dc8af9ac1642ba501d0d9395 Mon Sep 17 00:00:00 2001 From: Felienne Hermans Date: Sun, 1 Oct 2023 11:08:00 +0200 Subject: [PATCH 13/15] indent fixes --- content/adventures/bg.yaml | 62 +++++++++++++++++++------------------- content/adventures/nl.yaml | 3 +- grammars/keywords-ca.lark | 44 +++++++++++++-------------- 3 files changed, 54 insertions(+), 55 deletions(-) diff --git a/content/adventures/bg.yaml b/content/adventures/bg.yaml index 39c7814b567..f6c29c01f12 100644 --- a/content/adventures/bg.yaml +++ b/content/adventures/bg.yaml @@ -171,7 +171,7 @@ adventures: In the example code, we continue until a correct answer has been given. If the correct answer is never given, the loop never ends! - example_code: |2 + example_code: | ``` answer = 0 @@ -186,7 +186,7 @@ adventures: story_text: |- We are going to make lists the Python way, with square brackets around the lists! We also keep the quotation marks around each item like we have learned in previous levels. You can use the square brackets as well to point out a place in the lists. - example_code: |2 + example_code: | ``` friends = ['Ahmed', 'Ben', 'Cayden'] @@ -246,7 +246,7 @@ adventures: За тази цел ти ще напишеш малко повече код. Ха! - example_code: |2 + example_code: | ``` name is ask Как се нарича главаната героиня? @@ -271,7 +271,7 @@ adventures: start_code: "repeat 5 times print 'Помо-о-о-щ!'" 5: - story_text: |2 + story_text: | В четвърто ниво ще направиш историята си дори по-цветиста и забавна! Тук ще прибавиш различни възможни завършеци, за да има изненадващ край. @@ -318,7 +318,7 @@ adventures: ``` start_code: "print 'Твоята история ще се появи тук!'" 3: - story_text: |2 + story_text: | Към историята, която пишеш можеш да добавиш нещо произволно и неочаквано, примерно чудовище, животно или някаква пречка. @@ -335,7 +335,7 @@ adventures: ``` story_text_3: | This is an example of the `{remove}` command in your story - example_code_3: |2 + example_code_3: | ``` @@ -390,7 +390,7 @@ adventures: story_text: | Songs often contain a lot of repetition. Sometimes the repetition is also based on counting. For example, in the well-known song 'Bottles of beer'. You can program that song with a little math. - example_code: |2 + example_code: | ``` @@ -416,7 +416,7 @@ adventures: Baby Shark You can make this song much shorter with a `{repeat}`! Can you finish the code? - example_code: |2 + example_code: | ``` @@ -429,7 +429,7 @@ adventures: 8: story_text: | In a previous level you've programmed the song 'Bottles of beer'. You made one verse and then had to copy the verses 99 times. In level 7 you can repeat the song 99 times, just by adding one simple line! - example_code: |2 + example_code: | ``` @@ -505,7 +505,7 @@ adventures: 12: story_text: | In this song we can make it even easier to program '{if} you're happy and you know it, clap your hands'. Because we can put all of the actions in a variable, check it out: - example_code: |2 + example_code: | ``` @@ -591,7 +591,7 @@ adventures: Ползвай 90 градуса, за да завиеш 1/4 (една четвърт). Едно пълно завъртане е равно на 360 градуса. Представи си как би могла да "нарисуваш" фигура от свързани линии с програмиране? Може би триъгълник? Кръг? - example_code: |2 + example_code: | ``` print "Рисуване на фигура" @@ -684,14 +684,14 @@ adventures: example_code_2: "```\n{color} {white}\n{forward} -80\n{color} {green}\n{forward} 50\n{color} {yellow}\n{forward} 50\n{color} {red}\n{forward} 50\n```\n" story_text_2: "You can also change the color of the lines with the command `{color}`. Check out the example.\nYou can also use the command `{color} {white}` to make 'invisible' lines. You could use these white lines to move the turtle anywhere in the screen before you start drawing.\n" 3: - story_text: |2 + story_text: | Докато рисуваш костенурката можеш да добавиш и командата `random`. С нея костенурката ще поеме в произволна посока всеки път. Ползвай `at random` в комбинация с променлива с повече стойности, не само една. Ползвай примера отдолу и увеличи листа с още стойности, освен 10, 50, 90, 150, 250. - example_code: |2 + example_code: | ``` ъгли is 10, 50, 90, 150, 250 @@ -753,7 +753,7 @@ adventures: story_text_2: "If you are extremely unlucky the previous program might choose you to to the dishes for the whole week! That's not fair!\nTo create a fairer system you can use the `{remove}` command to remove the chosen person from the list. This way you don't have to do the dishes again untill everybody has had a turn.\n\nMonday and tuesday are ready for you! Can you add the rest of the week?\nAnd... can you come up with a solution for when your list is empty?\n" example_code_2: "```\npeople = mom, dad, Emma, Sophie\ndishwasher = people {at} {random}\n{print} 'Monday the dishes are done by: ' dishwasher\n{remove} dishwasher {from} people\ndishwasher = people {at} {random}\n{print} 'Tuesday the dishes are done by: ' dishwasher\n{remove} dishwasher {from} people\ndishwasher = people {at} {random}\n```\n" 5: - story_text: |2 + story_text: | С командата `if` ще създадем възможност за повече избор в програмата ни. Можеш да програмираш реакция на системата по определен избор. @@ -771,7 +771,7 @@ adventures: start_code: "print 'Кой мие чиниите?'" 4: - story_text: |2 + story_text: | Сега ползвай кавички, за да подобриш графика на миячите на чинии. Този път в кода има пропуски, отбелязани с черта за подчертаване '_'. @@ -1126,7 +1126,7 @@ adventures: In this level you can use nesting to make your restaurant more realistic and more fun! For example you would {ask} for sauce {if} somebody orders fries, but you wouldn't {if} someone orders pizza! Check out the example, and try this at your own virtual restaurant! - example_code: |2 + example_code: | ``` @@ -1154,7 +1154,7 @@ adventures: 10: story_text: | In this level you'll learn how to easily {ask} your guests' orders in a short code. - example_code: |2 + example_code: | ``` @@ -1163,7 +1163,7 @@ adventures: food = {ask} 'What would you like to eat as your ' course '?' {print} food ' will be your ' course ``` - story_text_2: |2 + story_text_2: | Of course, you could also order for multiple people! @@ -1180,7 +1180,7 @@ adventures: 11: story_text: | We can use the `{for} i {in} {range} 1 {to} 5` to {print} the orders from multiple customers in an orderly manner. - example_code: |2 + example_code: | ``` @@ -1202,7 +1202,7 @@ adventures: 12: story_text: | From this level on you can use decimal numbers to make you menu more realistic. - example_code: |2 + example_code: | ``` @@ -1225,7 +1225,7 @@ adventures: In this level we can use the new commands to upgrade our restaurant. We use `{and}` to see {if} two things are both the case. - example_code: |2 + example_code: | ``` price = 10 @@ -1241,7 +1241,7 @@ adventures: story_text: | With the `{while}` you can make sure your costumers can keep adding orders until they are done. - example_code: |2 + example_code: | ``` @@ -1308,7 +1308,7 @@ adventures: If you pick the right door you'll survive, but {if} not a terrible monster might... In level 1 we start our haunted house game by making up a scary story and {ask} the player what monster they'll see in the haunted house. - example_code: |2 + example_code: | @@ -1332,7 +1332,7 @@ adventures: 2: story_text: | In this haunted house you can choose your monsters with emojis. Of course you could also use words. - example_code: |2 + example_code: | ``` monster_1 {is} 👻 @@ -1376,7 +1376,7 @@ adventures: Up until this level the haunted house game always asked the player to choose a door, but as you might have noticed, they didn't really have to answer correctly. If the player filled in a completely random answer, the game would still work and the player might even win (despite not picking a door). In this level you can only win the game by picking the same door Hedy picked randomly. - example_code: |2 + example_code: | ``` @@ -1399,7 +1399,7 @@ adventures: Now it's very hard to win this game, can you make it easier to win? For example by only having 1 wrong door and 2 correct doors instead of 1 correct door and 2 wrong ones? - example_code: |2 + example_code: | ``` @@ -1426,7 +1426,7 @@ adventures: 11: story_text: | In this level we've changed the repeat command and we've added a line to our haunted house that tells the player in which room they are. - example_code: |2 + example_code: | ``` @@ -1454,7 +1454,7 @@ adventures: 14: story_text: | In this level you can use the `<` and `>` symbol to introduce lives to your game. - example_code: |2 + example_code: | ``` @@ -1485,7 +1485,7 @@ adventures: This haunted house game uses the connection between the lists you can use in this level. For example: all the properties that belong to the zombie are first in all the lists, witch second and vampire third. Check out the code! - example_code: |2 + example_code: | ``` @@ -1545,7 +1545,7 @@ adventures: 5: story_text: | Make your own program to practice your vocabulary in a new language. - example_code: |2 + example_code: | ``` {print} 'Learn French!' @@ -1561,7 +1561,7 @@ adventures: story_text: | Make your own program to practice your vocabulary in a new language. - example_code: |2 + example_code: | ``` french_words = ['bonjour', 'ordinateur', 'pomme de terre'] diff --git a/content/adventures/nl.yaml b/content/adventures/nl.yaml index f5cf17e5942..505039fbbe8 100644 --- a/content/adventures/nl.yaml +++ b/content/adventures/nl.yaml @@ -1638,8 +1638,7 @@ adventures: ``` start_code: "# Schrijf jouw code hier" 13: - story_text: |2 - + story_text: | ### Opdracht 1 Maak het sommenoefenprogramma nu extra moeilijk. De speler moet twee sommen achter elkaar goed hebben. Maak de codes op de streepjes af. diff --git a/grammars/keywords-ca.lark b/grammars/keywords-ca.lark index 33c8f311ec6..835c0f2c904 100644 --- a/grammars/keywords-ca.lark +++ b/grammars/keywords-ca.lark @@ -1,13 +1,13 @@ _DEFINE: ("defineix" | "define") _SPACE? _CALL: ("crida" | "call") _SPACE? -_WITH: ("with" | "with") _SPACE? +_WITH: ("amb" | "with") _SPACE? _DEF: ("def" | "def") _SPACE? -_RETURN: ("return" | "return") _SPACE? -_PRINT: ("imprimir" | "print") _SPACE? -_ASK: ("preguntar" | "ask") _SPACE? -_ECHO: ("mostrar" | "echo") _SPACE? -_FORWARD: ("avançar" | "forward") _SPACE? -_TURN: ("girar" | "turn") _SPACE? +_RETURN: ("retorna" | "return") _SPACE? +_PRINT: ("imprimeix" | "print") _SPACE? +_ASK: ("pregunta" | "ask") _SPACE? +_ECHO: ("eco" | "echo") _SPACE? +_FORWARD: ("avança" | "forward") _SPACE? +_TURN: ("gira" | "turn") _SPACE? left: ("esquerra" | "left") _SPACE? right: ("dreta" | "right") _SPACE? black: ("negre" | "black") _SPACE? @@ -17,35 +17,35 @@ gray: ("gris" | "gray") _SPACE? green: ("verd" | "green") _SPACE? orange: ("taronja" | "orange") _SPACE? pink: ("rosa" | "pink") _SPACE? -purple: ("violeta" | "purple") _SPACE? +purple: ("lila" | "purple") _SPACE? red: ("vermell" | "red") _SPACE? white: ("blanc" | "white") _SPACE? yellow: ("groc" | "yellow") _SPACE? _IS: _SPACE ("és" | "is") _SPACE -_SLEEP: ("dormir" | "sleep") _SPACE? -_ADD_LIST: ("afegir" | "add") _SPACE +_SLEEP: ("dorm" | "sleep") _SPACE? +_ADD_LIST: ("afegeix" | "add") _SPACE _TO_LIST: _SPACE ("a" | "to") _SPACE -_REMOVE: ("esborrar" | "remove") _SPACE +_REMOVE: ("esborra" | "remove") _SPACE _FROM: _SPACE ("de" | "from") _SPACE -_AT: _SPACE ("a posició" | "at") _SPACE +_AT: _SPACE ("a" | "at") _SPACE random: ("aleatori" | "random") _SPACE? -_IN: _SPACE ("dins de" | "in") _SPACE -_NOT_IN: _SPACE ("no dins de" | "not in") _SPACE +_IN: _SPACE ("dins" | "in") _SPACE +_NOT_IN: _SPACE ("no dins" | "not in") _SPACE _IF: ("si" | "if") _SPACE _ELSE: "sino" | "else" _AND: _SPACE ("i" | "and") _SPACE -_REPEAT: ("repetir" | "repeat") _SPACE +_REPEAT: ("repeteix" | "repeat") _SPACE _TIMES: _SPACE ("vegades" | "times") -_FOR: ("per a cada" | "for") _SPACE -_RANGE: ("seqüència" | "range") _SPACE? +_FOR: ("per" | "for") _SPACE +_RANGE: ("rang" | "range") _SPACE? _TO: _SPACE ("fins" | "to") _SPACE _STEP: "pas" | "step" -_ELIF: _SPACE? ("si no si" | "elif") _SPACE -_INPUT: ("entrada" | "input") +_ELIF: _SPACE? ("sinosi" | "elif") _SPACE +_INPUT: ("entra" | "input") _OR: _SPACE ("o" | "or") _SPACE _WHILE: ("mentre" | "while") _SPACE _LENGTH: "mida" | "length" _COLOR : ("color" | "color") _SPACE? -_PRESSED: ("pitjat" | "pressed") _SPACE? -_BUTTON: ("botó" | "button") _SPACE? -clear: ("Neteja" | "clear") _SPACE? +_PRESSED: ("pressionat" | "pressed") _SPACE? +_BUTTON: ("boto" | "button") _SPACE? +clear: ("neteja" | "clear") _SPACE? From 5631bc0db4e111e42b1846aded61064e6cc3db06 Mon Sep 17 00:00:00 2001 From: Felienne Hermans Date: Sun, 1 Oct 2023 11:16:38 +0200 Subject: [PATCH 14/15] fix quotes --- content/adventures/ca.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/adventures/ca.yaml b/content/adventures/ca.yaml index b27df944999..c27d843377d 100644 --- a/content/adventures/ca.yaml +++ b/content/adventures/ca.yaml @@ -681,7 +681,7 @@ adventures: story_text: "Hem arribat al codi Python real! Això vol dir que hem d'utilitzar parèntesis amb `{print}` i `{range}` d'ara endavant.\nAixò també significa que podeu utilitzar a partir d'aquest nivell el codi d'Hedy en qualsevol entorn Python sempre que utilitzeu les comandes angleses. Si no has fet encara, pots canviar-ho la pestanya del menú de comandes per fer-ho." example_code: "```\n{print}('Hola!')\n{for} i {in} {range}(1, 10):\n {print}('Aquesta és la línia ', i)\n```\n" story_text_2: Si vols imprimir més d'un element, necessites separar-los per comes. - example_code_2: "```\ntemperatura = 25\n{print}('Fa ', temperatura , ' graus a l\\'exterior')\n```\n" + example_code_2: "```\ntemperatura = 25\n{print}('Fa ', temperatura , \" graus a l'exterior\")\n```\n" story_text_3: L'últim canvi que ens falta per aconseguir que el codi sigui Python és canviar `{ask}` per `{input}`. example_code_3: "```\n{print}(' El meu nom és Hedy!')\nnom = {input}('Quin és el teu nom?')\n{print}('El teu nom és ', nom)\n```\n" for_command: From 4470ec7384389a81f6256e51e2e26a6164753fca Mon Sep 17 00:00:00 2001 From: Felienne Hermans Date: Sun, 1 Oct 2023 11:30:10 +0200 Subject: [PATCH 15/15] fixes es --- content/adventures/es.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/content/adventures/es.yaml b/content/adventures/es.yaml index 3dc1ff2ef0d..889433154ac 100644 --- a/content/adventures/es.yaml +++ b/content/adventures/es.yaml @@ -906,7 +906,7 @@ adventures: número_1 = {ask} 'Rellena el primer número:' número_2 = {ask} 'Escribe el segundo número:' respuesta_correcta = número_1 * número_2 - {print} número_1 ' por ' número_2 ' es ' la respuesta_correcta + {print} número_1 ' por ' número_2 ' es ' respuesta_correcta ``` story_text_2: | ### Ejercicio @@ -919,7 +919,7 @@ adventures: {if} respuesta {is} _ {print} '¡Buen trabajo!' {else} {print} '¡Incorrecto! Era ' _ ``` - start_code: "número_1 = {ask} 'Introduce el primer número:'\nnúmero_2 = {ask} Escribe el segundo número:'\nrespuesta_correcta = número_1 * número_2\n{print} número_1 ' por ' número_2 ' es ' la respuesta_correcta\n" + start_code: "número_1 = {ask} 'Introduce el primer número:'\nnúmero_2 = {ask} Escribe el segundo número:'\nrespuesta_correcta = número_1 * número_2\n{print} número_1 ' por ' número_2 ' es ' respuesta_correcta\n" story_text_3: "**Extra** También puedes dejar que el ordenador haga sumas aleatorias por sí mismo usando random.\n\nAsí eliges un número de tablas para practicar, y de ahí siempre obtienes una suma diferente:\n" 14: story_text: "En este nivel puedes programar el juego 'Adivina el número'\n" @@ -940,7 +940,7 @@ adventures: 11: example_code: "```\nnúmero = 10\n{for} i {in} {range} 1 {to} 10\n {print} i * número\n```\n" story_text: "Con `{for}` puedes simplificar programas de practica de las tablas de multiplicación.\n\n### Ejercicio 1\nMejora el código de ejemplo para que\n\n### Ejercicio 2\nVuelve al código de multiplicación del nivel 10, y modifícalo para que use un `{for}` y `{range}`.\n" - start_code: "número = 10\n{for} i {in} {range} 1 {to} 10\n {print} i * number\n" + start_code: "número = 10\n{for} i {in} {range} 1 {to} 10\n {print} i * número\n" 13: story_text: | ### Ejercicio 1 @@ -1094,7 +1094,7 @@ adventures: Así: start_code: "# pon tu código aquí" - example_code: "```\n_¡Hola, soy Hedy la adivina!\n_¿Quién eres tú?\n_Déjame echar un vistazo en mi bola de cristal.\n_Veo... Veo...\n_Tu nombre es\n```\n" + example_code: "```\n_¡Hola, soy Hedy la adivina!\n_ ¿Quién eres tú?\n_ Déjame echar un vistazo en mi bola de cristal.\n_ Veo... Veo...\n_ Tu nombre es\n```\n" story_text_2: "### Ejercicio\nCopia el código de ejemplo en tu pantalla de entrada y rellena los espacios en blanco para hacer que tu código funcione.\n**Extra** Cambia el código y deja que el adivino no sólo prediga tu nombre, sino también tu edad, tu equipo favorito de deporte o cualquier otra cosa sobre ti mismo.\n" 3: story_text: | @@ -1453,9 +1453,9 @@ adventures: example_code: "```\nnombre {is} {ask} '¿Cómo te llamas?'\n{if} nombre {is} Hedy\n {print} 'Bienvenido Hedy'\n {print} '¡Puedes jugar en tu ordenador!'\n```\n" story_text: "## Si… Sino…\nHas aprendido a repetir un bloque de líneas de código tras un comando `{repeat}`.\nAhora puedes usar la sangría para hacer bloques tras un comando {if} o {else}.\nComprueba el código de ejemplo.\n\n### Ejercicio\nAñade un comando {else} al código de ejemplo. Haz un bloque de línea usando sangría. Haz esto empezando cada línea con 4 espacios.\n" 9: - start_code: "continuar = {ask} '¿Deseas continuar?'\n{if} continuar = sí\n seguro = {ask} '¿Está seguro?'\n {if} seguro {is} sí\n {print} 'Continuaremos'\n {else}\n {print} 'No estás seguro'\n{else}\n {print} 'No deseas continuar'.\n" + start_code: "continuar = {ask} '¿Deseas continuar?'\n{if} continuar = sí\n seguro = {ask} '¿Está seguro?'\n {if} seguro {is} sí\n {print} 'Continuaremos'\n {else}\n {print} 'No estás seguro'\n{else}\n {print} 'No deseas continuar'\n" story_text: "En este nivel también puedes poner un comando {if} dentro de otro comando {if}.\n" - example_code: "continuar = {ask} \"¿Deseas continuar?\n{if} continuar = sí\n seguro = {ask} '¿Estás seguro?'\n {if} seguro {is} sí\n {print} 'Continuamos' \n {else}\n {print} 'No estás seguro'\n{else}\n {print} 'No deseas continuar'.\n" + example_code: "continuar = {ask} \"¿Deseas continuar?\n{if} continuar = sí\n seguro = {ask} '¿Estás seguro?'\n {if} seguro {is} sí\n {print} 'Continuamos' \n {else}\n {print} 'No estás seguro'\n{else}\n {print} 'No deseas continuar'\n" repeat_command: name: "{repeat}" description: comando repetir @@ -1590,7 +1590,7 @@ adventures: story_text_2: "## Contracciones\n¡Importante! Ten en cuenta que estamos usando comillas, Hedy se confundirá cuando uses el apóstrofe para contracciones como I'm o What's.\nAsegúrate de eliminar esos apóstrofes y cambia la ortografía a I am o What is.\nComprueba el código de ejemplo para ver la forma incorrecta de usar los apóstrofes.\n" example_code: "```\n{print} '¡A partir de ahora tienes que usar las comillas!'\nrespuesta {is} {ask} '¿Qué tienes que usar a partir de ahora?'\n{print} 'Tenemos que usar ' respuesta\n```\n" example_code_2: "```\n_ Esta es la manera incorrecta de usar apóstrofes _\n{print} 'I'm babysitting my sister's kids'\n{print} 'What's more fun than that?'\n```\n" - start_code: "{print} '¡Debes usar comillas a partir de ahora!'\nanswer {is} {ask} ¿Qué tenemos que usar a partir de ahora?\n{print} 'Necesitamos usar ' answer 'de ahora en adelante'" + start_code: "{print} '¡Debes usar comillas a partir de ahora!'\nanswer {is} {ask} '¿Qué tenemos que usar a partir de ahora?'\n{print} 'Necesitamos usar ' answer 'de ahora en adelante'" 12: story_text: "**Todos los textos tienen que ir entre comillas**\nPara este nivel también tendrás que usar comillas cuando almacenes un texto con `=`:\n" example_code: "```\nnombre = 'El Robot Hedy'\n{print} 'Hola ' nombre\n```\n"