Display density with unit in operators.md

Added print statement to display density with unit.
This commit is contained in:
Sakibumumuni 2025-12-29 14:17:29 +00:00 committed by GitHub
parent 1a207e6aa2
commit 3dd667d7e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
```