2nd Oct 2019, 4:57 PM
Suresh Rajendiran
4 Réponses
+ 1
after run the Output
2nd Oct 2019, 5:08 PM
Suresh Rajendiran
+ 1
remember that range is exclusive. this means that when using two numbers the second one will be “up to” NOT “up to and including” range(2,2) is saying something like, start at 2 but end before you reach 2
2nd Oct 2019, 5:39 PM
Brave Tea
Brave Tea - avatar
0
put a semi colon ( : ) after your for statement, and it will run for i in range(2,2):
2nd Oct 2019, 5:01 PM
Brave Tea
Brave Tea - avatar
0
will it won’t give you an output because the the range is from 2,2 which is basically saying it is zero
2nd Oct 2019, 5:22 PM
Brave Tea
Brave Tea - avatar