top of page
Search

PYTHON QUIZ

  • Writer: waclaw_koscielniak
    waclaw_koscielniak
  • Jul 26
  • 1 min read

def func(x, y):

return x if y > 0 else y

result = func(5, 0) + func(0, -5)

print(result)

[Running] python3 -u "/Users/name/test/test94.py"

-5

[Done] exited with code=0 in 0.051 seconds

Python Quiz.
Python Quiz.

 
 
 

1 Comment


Guest
Jul 28

Try to run it in your favorite IDE.

Like
bottom of page