World 1: First steps
Welcome to Pet World
- Your pet is lost in Pet World. Your program is its map.
- Each line your program prints is one move:
up,down,left,right. - Later you also find buried treasure with
dig.
Words for this world
| Word | Meaning |
|---|---|
| move | one step to the next square |
| order | which move comes first, next and last |
| star | walk on it to collect it |
One move on each line
- The pet reads your output from the top line to the bottom line.
- Trees and rocks block the way. Water is a splash!
print("right")
print("right")
print("down")
- Press Run and watch your pet walk. Then press Check.
Dificultad 1/5 · 100 monedas + un pequeño bono en el primer intento de hoy
Walk your pet home. Home is 3 squares to the right. Print one move on each line: up, down, left, right or dig.
Haz clic en Ejecutar para ver la salida aquí.
Dificultad 1/5 · 100 monedas + un pequeño bono en el primer intento de hoy
A tree is in the way. Go right, then down, then right to reach home.
Haz clic en Ejecutar para ver la salida aquí.
Dificultad 1/5 · 100 monedas + un pequeño bono en el primer intento de hoy
Collect the star, then walk home. Walk on the star square to collect it.
Haz clic en Ejecutar para ver la salida aquí.
Dificultad 1/5 · 100 monedas + un pequeño bono en el primer intento de hoy
Do not walk into the water! Go around the pond to reach home.
Haz clic en Ejecutar para ver la salida aquí.
Dificultad 2/5 · 140 monedas + un pequeño bono en el primer intento de hoy
Collect both stars, then go home. The pet starts on the right.
Haz clic en Ejecutar para ver la salida aquí.
Dificultad 2/5 · 140 monedas + un pequeño bono en el primer intento de hoy
Treasure is buried at the X. Stand on it and print dig. Then walk home.
Haz clic en Ejecutar para ver la salida aquí.