Message from Python discussions

December 2018

— You should try checking line 3
I think it should be int (b)

— 

If you're a beginner, you can use a paper and a pen to follow what the code does and you will see what's happening

— XD

— Int(b) version totally operatable.

— c = int(a) too

— Int(a)version feedback error.i dont just understand why.

— What error?

— /data/user/0/org.qpython.qpy/files/bin/qpython-android5.sh "/storage/emulated/0/qpython/integer.py" && exit
torage/emulated/0/qpython/integer.py" && exit <
please give you number.5.5
Traceback (most recent call last):
File "/storage/emulated/0/qpython/integer.py", line 3, in <module>
c=int(a)
ValueError: invalid literal for int() with base 10: '5.5'
1|hwedison:/ $

Message permanent page

— Like this

— That's because it's a float

— Not an integer

— Sorry. i will try to behave good.pls forgive my beginner sillyness.