Post Reply 
Python, how to input a complex number
04-29-2021, 06:37 PM
Post: #4
RE: Python, how to input a complex number
(04-29-2021 02:36 PM)Dirk.nl Wrote:  According to Python documents, you can enter a complex number like this; var=complex(input())
For example, 3+5j
The Python App gives an error message here.
Could someone for me test / try this and explain what I'm doing wrong ?

I tested it on the Numworks virtual app and got also an error message, this may be a limitation of Micropython.

[Image: mini_210429084530470275.png] [Image: mini_210429083642969630.png] [Image: mini_210429084529667009.png]
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Python, how to input a complex number - Didier Lachieze - 04-29-2021 06:37 PM



User(s) browsing this thread: 1 Guest(s)