+ 1
How come it is 6.0 and not 6
5 Respuestas
+ 7
If you are talking about numbers in Python, it's 6.0 and not 6 because you are using a float variable and not an int. to fix this use the following:
myVar = 6.0
print(myVar) #Outputs 6.0.
print(int(myVar) #Outputs 6.
+ 5
What is 6.0 and not 6?
+ 3
Umm... where exactly?
+ 2
thanks
+ 1
in the third challenge