0

Wrong answer

as said other people... the right answer is 3

14th Dec 2016, 1:18 PM
Kirill Babin
Kirill  Babin - avatar
1 Resposta
+ 1
Hi Kirill, I initially thought the answer was 3 as well but the answer is 4 because we are confusing how we count the integers. If you start counting at 0 instead of 1 it will make sense. For instance, lets say we start counting at 0 instead of 1. If you were to do this ... "print(numbers[0])" You would get the value of 0. If you did this... "print(numbers[4])" your output would be 4 If you did... "print(numbers[5])" you would get an error. Despite that there are 5 numbers in the range listed in the problem, you would get an error because the 4th index would be the 5th value in the range which does not exist when starting your count at 0.
15th Dec 2016, 6:57 AM
Frank
Frank - avatar