English | العربية | |
ask |
⟷ | اسأل |
color |
⟷ | لون |
forward |
⟷ | تقدم |
play |
⟷ | play |
print |
⟷ | قول |
turn |
⟷ | استدر |
is |
⟷ | هو |
sleep |
⟷ | انتظر |
add |
⟷ | اضف |
at |
⟷ | بشكل |
from |
⟷ | من |
random |
⟷ | عشوائي |
remove |
⟷ | ازل |
to |
⟷ | الى |
clear |
⟷ | مسح |
else |
⟷ | وإلا |
if |
⟷ | اذا |
if_pressed |
⟷ | if_pressed |
in |
⟷ | في |
not_in |
⟷ | not in |
repeat |
⟷ | كرر |
times |
⟷ | مرة |
for |
⟷ | لكل |
في هذا المستوى نتعلم أمراً جديداً وهو الأمر لكل
. باستخدام الأمرلكل
يمكننا المرور على كل العناصر الموجودة في قائمة. لكل
تقوم بخلق مجموعة من الأوامر تختها كما في الأوامر كرر
واذا
لذلك يجب علينا ان نستخدم الإزاحة (نضع الفراغات) للسطور البرمجية التي نريد كتابتها مع الأمر لكل
.
حيواناتي_المفضلة هو الكلب، الزرافة، السلحفاة
لكل حيوان في حيواناتي_المفضلة
قول "أنا أحب " حيوان
In this level we learn a new code called لكل
. With لكل
you can make a list and use all elements.
لكل
creates a block, like كرر
and اذا
so all lines in the block need to start with 4 spaces.
animals = dog, cat, blobfish
لكل animal في animals
قول 'I love ' animal
Finish this code by adding لكل action في actions
to line 2.
actions = clap your hands, stomp your feet, shout Hurray!
_
كرر 2 مرة
قول 'If youre happy and you know it, ' action
انتظر 2
قول 'If youre happy and you know it, and you really want to show it'
قول 'If youre happy and you know it, ' action
انتظر 3
In this level you can make a schedule for the whole week in an easy way!
Add a second chore, such as vacuuming or tidying up, and make sure it is also divided for the whole week.
Extra The program is not fair, you can be unlucky and wash up all week. How could you make the program more fair?
days = Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday
names = mom, dad, Emma, Sophie
لكل day في days
قول names بشكل عشوائي ' does the dishes on ' day
Is everybody taking too long throwing the dice? In this level you can let Hedy throw all the dice at once! Change the names into names of your friends or family, and finish the code.
players = Ann, John, Jesse
choices = 1, 2, 3, 4, 5, 6
_ _ _ _
قول player ' throws ' choices بشكل عشوائي
انتظر
In this level you'll learn how to program the game MASH (mansion, apartment, shack, house). In this game you can predict for all the players at once, what their future will look like.
Fill in the blanks by using the new command that you've learned this level.
houses = mansion, apartment, shack, house
loves = nobody, a royal, their neighbour, their true love
pets = dog, cat, elephant
names = Jenna, Ryan, Jim
_
قول name ' lives in a ' houses بشكل عشوائي
قول name ' will marry ' loves بشكل عشوائي
قول name ' will get a ' pets بشكل عشوائي ' as their pet.'
انتظر
In this level you can make the turtle draw a figure. The turtle will travel the distances in the list, one by one, making bigger and bigger steps.
Add a 90 degree turn in the loop, so that a spiral is drawn. Add at least 5 numbers to the list, so the spiral grows larger. (extra) can you change the spiral into another shape? Experiment with numbers for the turn!
The spiral is drawn outwards, make it go inwards?
استدر 90
distances = 10, 20, 30, 40, 50, 60
لكل distance في distances
تقدم distance
Recreate the drawings with the turtle!
Hint Nested Hexagon:
distances = 100, 80, 60, 40, 20
لكل distance في distances
_
Hint Traffic Lights:
colors = red, yellow, green
لكل chosen_color في colors
لون _
كرر _
Christmas lights
Hint Christmas Lights:
Start by moving to the left side of the screen with an invisible white line. Then hang up the Christmas lights!
لون white
استدر -90
تقدم 300
استدر 90
colors = red, blue, yellow, purple, green, orange, pink
لكل chosen_color في colors
_
We can also make a Harry Potter themed fortune teller. Fill in blanks such that 9 lines are printed. Extra Change the theme of the fortune teller into something else, such as your favorite book, film or tv show.
houses = Gryffindor, Slytherin, Hufflepuff, Ravenclaw
subjects = potions, defence against the dark arts, charms, transfiguration
fears = Voldemort, spiders, failing your OWL test
names = Harry, Ron, Hermione
_
_ قول name ' is placed in ' houses بشكل عشوائي
_ قول name ' is great at ' subjects بشكل عشوائي
_ قول name 's greatest fear is ' fears بشكل عشوائي
With لكل
you can print make the whole baby shark song (including all the other sharks in the family) in only 6 lines!
Can you make the baby shark code even shorter by using a لكل
command? Finish the example code.
family = baby, mammy, daddy, grandma, grandpa
_ _ _ _
قول _
Print the song Five little monkeys jumping on the bed. Look up the text if you don't remember.
Extra Print the song Old MacDonald had a farm, and make sure all animals make a different sound, using an اذا
.
monkeys = 5, 4, 3, 2, 1
In this level you can use the لكل
command in your story. In this way you could easily program the children's book 'Brown bear, Brown bear, what do you see'.
Look at the story if you do not know it, and make sure it is printed as in the book.
animals = _ , _ , _
قول 'Brown bear, Brown bear'
قول 'What do you see?'
In the previous levels you have often made your own rock paper scissors game. Can you finish the code and use the لكل
command properly to get the game to work?
choices = _
players = _
لكل _
This calculator game helps you practise your tables of multiplication!
Fill in the blanks. We want this program to ask the player these questions:
How much is 1 times 1?
How much is 1 times 2?
How much is 1 times 3?
How much is 2 times 1?
How much is 2 times 2?
How much is 2 times 3?
How much is 3 times 1?
How much is 3 times 2?
How much is 3 times 3?
_
numbers = 1, 2, 3
لكل _
لكل _
answer = اسأل _
correct = number_1 * number_2
اذا answer هو correct
قول 'Great job!'
وإلا
قول 'That is wrong. The right answer is ' correct
In this level you'll learn how to easily ask orders for different courses.
Finish the code with an اسأل
on the blanks such that the customer is asked what they want to eat for each course.
courses = appetizer, main course, dessert
لكل course في courses
قول 'What is your order for ' course '?'
_
_
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.
_ courses = appetizer, main course, dessert
_ names = Timon, Ono
_ لكل name في names
_ لكل course في courses
_ food = اسأل name ', what would you like to eat as your ' course '?'
_ قول name ' orders ' food ' as their ' course
صحح هذا الكود. حظًا سعيدًا!
تحذير! هذا الكود بحاجة إلى تصحيح!
الأسماء = معاذ حسن سميرة نورة
الأنشطة = يطير طائرة ورقية، يذهب للسباحة، يذهب للمشي في الطبيعة، يستلقي للحصول على لون برونزي من الشمس
لكل الاسم هو الأسماء
قول في الشاطئ الاسم يحب القيام ب نشاط بشكل عشوائي
An error occurred.
An error occurred.
Success
Header
Waiting for a keypress...
Sleeping...
You must be logged in to hand in an assignment.