Can floats be created if the number is divisible.. Eg: 8/4 2.... Does it still create a float... Eg: 2.0

Floats can be created directly by entering a number with a decimal point, or by using operations such as division on integers...Eg: >>>3/4 0.75

5th Feb 2019, 3:50 AM
M. Anne
M. Anne - avatar
1 Answer
+ 4
Yup, in py, floats r created even when the number is divisible. U can try it in code playground.
5th Feb 2019, 3:57 AM
Arushi Singhania
Arushi Singhania - avatar