so there is something I don't understand about these two loops
If I have a list called numbers
to find the largest number using a for loop I can:
for number in numbers:
if number > largest:
largest = number
but why doesn't:
if number[index] > largest:
largest = number[index]
work?
and it is the opposite for while loops, so if I want to do something to a list, for example
to replace a value with another, number[index] works and number doesnt work.