r/PythonLearning • u/Repulsive-Song-1594 • 5d ago
i am stuck with the range function
sorry but i am gonna crash out because of the range function i cant understand it well to use it this is driving me crazy any one could give me a video explaining everything i dont mind it being an hour long
8
Upvotes
View all comments
Show parent comment
1
u/Naive_Programmer_232 4d ago edited 4d ago
EDIT: Ignore this comment, see other reply for cumulative sum functions. this is not an example of that.
are you saying like this?
ex:
Even though these are written different, they produce the same result. You can easier see these are the same by considering:
here is a test to make sure they produce the same result: