Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions beginner_python/01-numbers.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
#You can use round instead.
print(round(20/3), 0)

#Round up values to integer
print(2//4) # Here actual answer 0.5 --> after rounding up answer is 0

print(result / age) #can use variables in place of literals. This will not change variable values

#guess the output:
Expand Down