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

 

 

Warmup 1string_list

prev  |  next  |  chance

This is a description of string_list

def above_five(vals):
    results = []
    for v in vals:
        if (v > 5):
            results.append('a')
        else:
            results.append('b')
    return results
Function Call  Return Value
above_five([5, 6])
above_five([6])

Experiment with this code on Gitpod.io

⬅ Back