task_boiler
This is an old revision of the document!
Table of Contents
task boiler
Place to cook the tasks. Once they are boiled enough, move them to a separate plate.
Start the first heading with “=====”
print hundredths
Let's define hundredths as numbers with two decimal digits. This can be money amounts in dollars and cents.
tags | pennies, dollar-cent amounts
write single numbers
There are two possible ways
round | format | |
---|---|---|
output type | float | string |
output type | In [1]: a = 10.30467 In [2]: type(round(a,2)) Out[2]: float In [3]: type('{:.2f}'.format(a)) Out[3]: str |
|
number of digits after the decimal point | varies | always two |
task_boiler.1676332407.txt.gz · Last modified: 2023/02/13 23:53 by raju