Largest number in a list
easyLists10 XP
Return the largest number in nums (it has at least one number). Try writing the loop yourself instead of using max.
Examples
- Input: nums = [3, 9, 2]Output: 9
- Input: nums = [-5, -1, -9]Output: -1
Examples use JSON: true/false/null are True/False/None in Python.