0

Why does int(hello) work on python3?

12th Apr 2019, 10:09 AM
Bisrat Fekede
Bisrat Fekede - avatar
2 Respuestas
+ 4
It only works if hello is a name assigned to anything that can be converted to an int. For example: hello = 1.6 hello = '5'
12th Apr 2019, 10:17 AM
HonFu
HonFu - avatar
+ 1
thanks.
15th Apr 2019, 8:57 AM
Bisrat Fekede
Bisrat Fekede - avatar