๐Ÿ PyQuest๐Ÿ•น๏ธ Challenge Arcade ยท ๐Ÿ‹๏ธ Biggest Wins
โญ 0 XP๐Ÿ Python is waking upโ€ฆ

Biggest Wins ๐Ÿ‹๏ธ

Python has a max() function that finds the biggest number in a list.

You may not use it. ๐Ÿ˜ˆ

Here's how to find it yourself. Imagine holding up each number and asking "are you bigger than my current champion?"

biggest = numbers[0]        # the first one is champion for now
for number in numbers:
    if number > biggest:
        biggest = number    # new champion!

numbers[0] means "the item at position 0" โ€” the first one. Lists start counting at 0, not 1. Weird, but you get used to it. ๐Ÿ”ข

Your mission

Find the biggest number in the list and print it โ€” without max().

This is how max() actually works on the inside. You're building it from scratch. ๐Ÿ› ๏ธ

Your code

Press โ–ถ Run to see what your code does!