Message360870
The "num" variable is not a number, it *is* a string. Just because you call it "num" doesn't magically turn it into a number. The `input` function returns a string.
You might be thinking of Python 2.7 where `input` automatically evaluated the string as Python code. Python 3 does not do that. If you want to convert the string result of `input` to be a float or an int or some other type, you need to call the `float` or `int` functions. |
|
Date |
User |
Action |
Args |
2020-01-28 13:00:44 | steven.daprano | set | recipients:
+ steven.daprano, Sush0907 |
2020-01-28 13:00:44 | steven.daprano | set | messageid: <1580216444.11.0.107613114436.issue39476@roundup.psfhosted.org> |
2020-01-28 13:00:44 | steven.daprano | link | issue39476 messages |
2020-01-28 13:00:44 | steven.daprano | create | |
|