← All challenges
✓ Solved
Find the largest number
Find the biggest value in a list without a built-in max function.
🟢 EasyDifficulty
The challenge
Given [3, 67, 2, 89, 12, 45], print the largest number. (For extra practice, try it without using a built-in max/Math.max function.)
🧠 Need a hint? (Python)
Track a running "largest so far" variable, starting at nums[0], and update it inside a for n in nums: loop whenever you see something bigger.
🚀
Like solving these?
Structured courses, hands-on exercises, and real multi-file projects are waiting -- your first project unlock is free.
Create a free account