Why does int(hello) work on python3? | SoloLearn: Learn to code for FREE!

0

Why does int(hello) work on python3?

4/12/2019 10:09:43 AM

Bisrat Fekede

2 Answers

New Answer

+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