top of page
Search

PYTHON QUIZ JUNE 17, 2025

  • Writer: waclaw_koscielniak
    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


Python Quiz
Python Quiz

 
 
 

1 Comment


Guest
Jun 17

Did you try to find the problem?

Like
bottom of page