Loading...
Loading...
Loading...
Print the largest number in a list. The list can hold negative numbers, and every number may be below zero. The starter holds a program with a bug. Find it and fix it.
Example
Input
5 3 9 4 9 1
Output
9
Try the problem first. Open one hint at a time.
Keep the best value seen so far and compare each item with it.
Start from the first item, not from zero.
Write your Python code, run it on the examples and submit it to hidden tests.
Solve in the editor