#TC1014<\/a> #Mastery24<\/a><\/p>\n in this mastery I will write about function range. first what does it do? it generates a list of numbers, which is generally used to iterate over with for loops.<\/p>\n function has two sets of parameters, as follows:<\/p>\n range(stop)<\/p>\n wich it will print numbers beginig from zero to (stop-1). For example:<\/p>\n range(4) == [0,1,2,3]<\/p>\n the other parameters is:<\/p>\n range(start,stop,step)<\/p>\n >start it means in wich number it will start<\/p>\n >stop it means when is going to stop but like this(stop-1)<\/p>\n >step it means the difference between each number in the sequence<\/p>\n examples of using range:<\/p>\n 1.-range(0,11,2) == [0,2,4,6,8,10]<\/p>\n 2.-range(3,9)==[3,4,5,6,7,8]<\/p>\n this is a link that its very helpful to understand : http:\/ #TC1014 #Mastery24in this mastery I will write about function range. first what does it do? it generates a list of numbers, which is generally used to iterate over with for loops.function has two sets of parameters, as follows:range(stop)wich … Continue reading