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