Programming tip: differentiate indexes and counts in code. Index starts at 0, count starts at 1. Count is also equal to array length. In python, one can do this
1for count, fruit in enumrate(fruits, start=1):
This has saved me a lot of confusion.
Programming tip: differentiate indexes and counts in code. Index starts at 0, count starts at 1. Count is also equal to array length. In python, one can do this
1for count, fruit in enumrate(fruits, start=1):
This has saved me a lot of confusion.