Loading...
Loading...
Loading...
A warehouse tool needs the square of a number. Write a function square(n) that returns n * n, read n, and print the result.
Example
Input
7
Output
49
7 * 7.
Try the problem first. Open one hint at a time.
Write the function first with one parameter, then call it on the number you read.
The function should return the value; print it outside the function.
Write your Python code, run it on the examples and submit it to hidden tests.
Solve in the editor