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

 

 

Athenian: Loopsfor_loop2

prev  |  next  |  chance

Predict the returned result
by Bruno '24

def adding(x, y):
    new_list = 0
    for char in range(0, x):
        new_list += y
    return new_list
Function Call  Return Value
adding(5, 3)
adding(10, 4)
adding(15, 2)
adding(20, 1)

Experiment with this code on Gitpod.io

⬅ Back