07/31/2023, 03:53 PM
(This post was last modified: 07/31/2023, 03:54 PM by nuninho1980.)
I use Python 3.11 x64 for Windows 10 and I tried to run your code... but I got errors:
What's your version of Python for no any errors?
Code:
Python 3.11.4 (tags/v3.11.4:d2340ef, Jun 7 2023, 05:45:37) [MSC v.1934 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from math import*
>>>
>>> def mod(a,b):
... A=(a**2+b**2)**0.5
... return A
... def Arg(a,b):
File "<stdin>", line 4
def Arg(a,b):
^^^
SyntaxError: invalid syntax
>>> Z=atan2(b,a)
File "<stdin>", line 1
Z=atan2(b,a)
IndentationError: unexpected indent
>>> return Z
File "<stdin>", line 1
return Z
IndentationError: unexpected indent
>>> def p(x):
... a=x
... while a<0:
... a=a+1
... return a
... def fn(a,n):
File "<stdin>", line 6
def fn(a,n):
^^^
SyntaxError: invalid syntax
...What's your version of Python for no any errors?

