+ 2
Can anybody explain range for me?
It doesn,t make a lot of sense.
5 ответов
+ 5
Noble ,
here is a link to a basic tutorial from sololearn:
https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2434/?ref=app
+ 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
+ 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
+ 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)
+ 1
?🤤?