+ 1

How come it is 6.0 and not 6

17th Dec 2017, 4:56 PM
AnkleBreaker99
AnkleBreaker99 - avatar
5 Antworten
+ 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.
17th Dec 2017, 5:20 PM
Ian Ault
Ian Ault - avatar
+ 5
What is 6.0 and not 6?
17th Dec 2017, 5:17 PM
Ian Ault
Ian Ault - avatar
+ 3
Umm... where exactly?
17th Dec 2017, 5:14 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 2
thanks
17th Dec 2017, 5:20 PM
AnkleBreaker99
AnkleBreaker99 - avatar
+ 1
in the third challenge
17th Dec 2017, 5:17 PM
AnkleBreaker99
AnkleBreaker99 - avatar