In this segment of How To Python, we discuss floating point numbers and integers in Python and many of the basic functions and operations that can be performed on them.
⭐ Join my Patreon: https://www.patreon.com/b001io
💬 Discord: https://discord.gg/jA8SShU8zJ
🐦 Follow me on Twitter: https://twitter.com/b001io
🔗 More links: https://linktr.ee/b001io
Test Your Knowledge Answers:
# Statement 1
print(type(1.3))
Output: class 'float'
# Statement 2
x = 2 + 8.1
print(type(x))
Output: class 'float'
# Statement 3
print(11 % 2)
Output: 1
# Statement 4
print(5 != 5)
Output: False
# Statement 5
print(round(1.54, 0))
Output: 2.0
# Statement 6
print(int(59.6))
Output: 59