+ 5
Hello can someone clarify my doubt?
List=list(range(a,b)) In one code I saw this line.I can't understand what is this purpose.. please help me to understand
4 Answers
+ 1
Do you mean the range() function?
By default it is range(a, b, 1)
+ 2
Lisa
Will it increment by one by default?
+ 2
Thank you Lisa...now I understood
+ 1
It creates a list of integer numbers from the range [a; b).
Insert values for a and b, and output List to see what happens.