Exercise
Contents
Exercise¶
Answer the following questions¶
Explain the difference between
/
and//
?
Explain the meaning of
a += 5
in your own words
Coding Exercises¶
Calculator¶
Compute the square of
40
Compute the square root of
2
write a statement that checks if the cube root of
8
is2
Time conversion¶
Write some statements to find out how many full minutes and remaining seconds are 344 seconds?
Add precise and brief comments to the code to explain the choice of operators.
Assign the number of full minutes and remaining seconds to variables. Use expressive variable names!
Use the
print
function for the output of the results
Access documentation¶
Output the documentation of the built-in function
abs
.