Python, how to input a complex number
|
04-30-2021, 09:51 AM
Post: #7
|
|||
|
|||
RE: Python, how to input a complex number
Hi Stevetuc, thanks
I discovered this yesterday for the HP Prime as well. Indeed, <complex> does not work with a string, contrary to what the help info indicates. I think this could indeed be a bug in micropython. To test, I solved this as follows: PHP Code: a=float(input(“real:“)) Regards — Dirk Hartland |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Python, how to input a complex number - Dirk.nl - 04-29-2021, 02:36 PM
RE: Python, how to input a complex number - Stevetuc - 04-29-2021, 04:02 PM
RE: Python, how to input a complex number - Dirk.nl - 04-29-2021, 05:04 PM
RE: Python, how to input a complex number - Didier Lachieze - 04-29-2021, 06:37 PM
RE: Python, how to input a complex number - Stevetuc - 04-30-2021, 08:55 AM
RE: Python, how to input a complex number - Albert Chan - 04-30-2021, 10:36 AM
RE: Python, how to input a complex number - Dirk.nl - 04-29-2021, 07:20 PM
RE: Python, how to input a complex number - Dirk.nl - 04-30-2021 09:51 AM
RE: Python, how to input a complex number - toml_12953 - 04-30-2021, 10:36 AM
RE: Python, how to input a complex number - Dirk.nl - 04-30-2021, 10:55 AM
RE: Python, how to input a complex number - parisse - 04-30-2021, 11:57 AM
RE: Python, how to input a complex number - Dirk.nl - 04-30-2021, 01:21 PM
|
User(s) browsing this thread: 1 Guest(s)