Exercise 2 · Chapter: FunctionsRequired+50 XP
Double It
Write a function called double(n) that returns n * 2.
Read a number from the user and print the doubled value.
Example:
Input:
5
Output:
10
Need a hint?
3 available · costs 5 XP each
python
Output
Run your code to see the output here.