+ 2

Can anybody explain range for me?

It doesn,t make a lot of sense.

15th Sep 2021, 6:19 PM
Noble
Noble - avatar
5 Answers
15th Sep 2021, 6:35 PM
Lothar
Lothar - avatar
+ 4
Noble , the code that you used, generates the output of [3]. this is a list, and reflects exactly the arguments you have used: â–Șrange from 3 upto 5, but not including 5 â–Șrange has a step of 7, so only each 7th number will be used
15th Sep 2021, 6:39 PM
Lothar
Lothar - avatar
+ 2
Range returns a sequence of numbers, you can try printing it out, that's for python since you didn't specify the language Edited
15th Sep 2021, 6:26 PM
Tim
Tim - avatar
+ 1
Okay but I tried to make it but the output wasn't a list here's the code : numbers = list(range(3, 5, 7)) print(numbers)
15th Sep 2021, 6:30 PM
Noble
Noble - avatar
+ 1
?đŸ€€?
15th Sep 2021, 6:43 PM
Noble
Noble - avatar