Our website uses cookies to ensure the functionality of the website, to collect and analyze information about the performance and usage of the website. Privacy Policy
Quiz: The Same Mistake
This program should print Longest: 60. It prints 60, and then Longest: None. It's the kind of mistake you've just had explained, in another program. Click the line with the mistake.
1deflongest(walks):2 best =03for minutes in walks:4if minutes > best:5 best = minutes
6print(best)78week =[30,45,20,60]9print("Longest:", longest(week))