3 ms·
maybe he updated it? now it shows is an additional line: def get_first_problem(problems): for problem in problems: problam = prob
by dcosson 15y ago
maybe he updated it? now it shows is an additional line:
def get_first_problem(problems):
for problem in problems:
problam = problem + 1
return problam
but there's nothing wrong with this, I assume he meant to return problem instead of problam which would produce an unexpected result without having added 1. Nothing a unit test wouldn't catch though :)
Edit: formatting