+ 1
Find the outpt
4 Réponses
+ 1
after run the Output
+ 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
0
put a semi colon ( : ) after your for statement, and it will run
for i in range(2,2):
0
will it won’t give you an output because the the range is from 2,2 which is basically saying it is zero