PYTHON QUIZ JUNE 17, 2025
- waclaw_koscielniak

- Jun 17
- 1 min read
def add1(n1=5, n2):
return (n1+n2)
print(add1(10, 20))
[Running] python3 -u "/Users/name/test/test25.py"
File "/Users/name/test/test25.py", line 1
def add(n1=5, n2):
^
SyntaxError: non-default argument follows default argument
[Done] exited with code=1 in 0.052 seconds




Did you try to find the problem?