id/email
password
forgot password | create account
about | help | prefs
ReadingBatcode reading practice

 

 

Athenian: Grab Bagparameters1

prev  |  next  |  chance

Default values can be specified for parameters!

def add_it(x, y=5):
    answer = x + y
    return answer
Function Call  Return Value
add_it(2, 6)
add_it(8)  
add_it(-5, 4)
add_it(-2)
add_it(0)  

Experiment with this code on Gitpod.io

⬅ Back