+ 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

14th Oct 2022, 4:34 PM
Riya
Riya - avatar
4 Answers
+ 1
Do you mean the range() function? By default it is range(a, b, 1)
14th Oct 2022, 4:41 PM
Lisa
Lisa - avatar
+ 2
Lisa Will it increment by one by default?
14th Oct 2022, 4:40 PM
Riya
Riya - avatar
+ 2
Thank you Lisa...now I understood
14th Oct 2022, 4:42 PM
Riya
Riya - avatar
+ 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.
14th Oct 2022, 4:37 PM
Lisa
Lisa - avatar