Space Skill Builder
| # | Answer |
|---|---|
| 1 | A variable is a named place to store information. Example: planetName could store "Mars". |
| 2 | shipName should hold "Orion". |
| 3 | if fuelIsLow: print('Refuel now') |
| 4 | We are heading to Earth |
| 5 | for i in range(1, 5): print(i) |
| 6 | objects = ['Moon', 'Mars', 'Saturn'] |
| 7 | 7 |
| 8 | def greetAstronaut(): print('Welcome aboard!') |
| 9 | while battery > 20: print('Rover moving') battery -= 5 |
| 10 | visitedPlanets = ['Earth', 'Venus'] planet = 'Mars' if planet in visitedPlanets: print('Visited!') else: print('Not visited yet.') |