mirror of
https://github.com/Asabeneh/30-Days-Of-Python.git
synced 2026-06-03 21:02:42 +08:00
Display density with unit in operators.md
Added print statement to display density with unit.
This commit is contained in:
parent
1a207e6aa2
commit
3dd667d7e9
@ -174,6 +174,7 @@ print(weight, 'N') # Adding unit to the weight
|
||||
mass = 75 # in Kg
|
||||
volume = 0.075 # in cubic meter
|
||||
density = mass / volume # 1000 Kg/m^3
|
||||
print(density, 'Kg/m^3') # Adding unit to the density
|
||||
|
||||
```
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user