+ 1
Why is my answer in the simple phyton calculation 6.0 and not 6
6 Antworten
+ 2
Because probably one of your questions are in a float form
+ 1
Bagon is right. You can do:
print(int(60 / 10)) # prints 6 (integer)
Or use integer division:
print(60 // 10) # also prints 6
0
Please share your code.
0
Thanks for the help guys