This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Sush0907
Recipients Sush0907, steven.daprano, terry.reedy
Date 2020-01-29.04:44:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAO8uZi7ERdh5TXotmk00z_srTmigNnVt2wxz6f2_eZm2UVkDWA@mail.gmail.com>
In-reply-to <1580216444.11.0.107613114436.issue39476@roundup.psfhosted.org>
Content
Thank you

On Tue, Jan 28, 2020, 6:30 PM Steven D'Aprano <report@bugs.python.org>
wrote:

>
> Steven D'Aprano <steve+python@pearwood.info> added the comment:
>
> 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.
>
> ----------
> nosy: +steven.daprano
> resolution:  -> not a bug
> stage:  -> resolved
> status: open -> closed
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <https://bugs.python.org/issue39476>
> _______________________________________
>
History
Date User Action Args
2020-01-29 04:44:56Sush0907setrecipients: + Sush0907, terry.reedy, steven.daprano
2020-01-29 04:44:56Sush0907linkissue39476 messages
2020-01-29 04:44:56Sush0907create