New course! Every coder should learn Generative AI!
Try a free lesson0
Why does int(hello) work on python3?
2 Answers
+ 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'
+ 1
thanks.