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!