循環樂園 Loop Land

重覆2次夠嗎?
It is enough for repeating twice only?
答案 Answer↓↓
循環裏的指令是正確的,但重覆的次數不夠。數數有幾少條香蕉。
The codes that inside the loop are correct. Is the repeating times enough? How many bananas are there?
答案 Answer↓↓
循環裏少了一指行令。要行多少步?
It misses one line of code in the loop. How many step?
答案Answer↓↓
跟著箭咀的方向,試試編寫循環。
Follow the arrow and try to write a times loop.
看看程式是如何運行的:
Let see how the codes run:
答案 Answer↓↓
每條2條香蕉等於重覆的一組動作。一共4組香蕉,要重覆多少次?循環裏的指令正確嗎?
Each 2 banana is a group of repetition. There is 4 group of banana. How many times to repeat? Are the codes inside the loop correct?
看看程式是如何運行的:
Let see how the codes run:
答案 Answer↓↓
烏龜也可以編寫在循環裏。循環的指令是正確的,但好像缺少了第一行指令。烏龜開始行動前,猴子要做甚麼?
Turtle can also be written in loop. The codes inside the loop are correct. But there is something missing in the first line. What monkey need to do before turtle move?
答案 Answer↓↓
每一個箭咀都是一組重覆的指令。試試更改循環次數及在循環裏加多一個“turn”的指令。
Each arrow is a group of repetition. Try to change the times of loop and write a “turn” inside the loop to make it run successfully.
答案 Answer↓↓
循環裏的指令是正確的,但箭咀指的香蕉是屬於循環裏要重覆的動作嗎?*可以按下盤的“Backspace”鍵來刪除….。
The codes inside the loop are correct. But is that banana also need to repeat in the loop? *press “Backspace” to delete….
看看程式是如何運行的:
Let see how the codes run:
答案 Answer↓↓
要重覆多少次 “turtle.step 10 turtle.turn left”才足夠?最後要寫下甚麼指令讓猴子收集最後一條香蕉?
How many times to repeat “turtle.step 10 turtle.turn left”? How to help monkey catch the last banana?
看看程式是如何運行的:
Let see how the codes run:
答案 Answer↓↓
相同顏色的箭咀都是一組重覆的動作。試寫寫看。
Those arrows of same color are a group of repetition. Try to code it.
編程可以有多於一種的編寫方法:
Same result can have more than one coding solutions:
答案 Answer↓↓