846 B
846 B
type, title, xp, duration, difficulty
| type | title | xp | duration | difficulty |
|---|---|---|---|---|
| challenge | The REPL | 25 | 25 | 1 |
The REPL
[INCOMING — Mission Control, Earth]
Cadet, the REPL — Read, Evaluate, Print, Loop — is Python's interactive shell. Open it on your machine with
python3and every line you type runs immediately:>>> 5 + 7 12 >>> "Hello".upper() 'HELLO'Use the REPL to figure out the answers. Then write them into a function
computethat returns a tuple of all five, in order:
5 + 7100 - 256 * 8"Hello" + " " + "World"2 ** 10[END TRANSMISSION]
Your Task
Open starter/starter.py. Replace pass with a return of a
5-element tuple containing the values above.
Objectives
compute()returns a 5-element tuple- Each element matches the corresponding expression