<\/a>#Mastery25<\/a>– <\/span><\/span>Creation and use of ranges in Python<\/span> <\/span><\/span><\/a>#TC1014<\/a> <\/span>@PablO_CVi<\/span><\/a><\/p>\n Loops can be created with while(<\/span>You can see here how to make loops with while<\/a>) and for making loops with ranges<\/strong><\/span>, the loop has to be with for,<\/strong> the next steps must be followed, first write <\/span>for, <\/strong>then the variable this loop is applying like <\/span>x, <\/strong>after this goes <\/span>in range, <\/strong>and in parenthesis the number it will stop, and it will start from 0 <\/span>(8)<\/strong>, another option is to separate with a comma the number you want to start and the number you want it to stop,<\/span> (0,-8), <\/strong>the last way of using the range is first the numer it is going to start, then separated with a comma the number it is going to end, and sepparated from another comma the number of numbers it will count per time. For example:<\/span> for i in range (1,sz+1):).<\/strong><\/span><\/p>\n Here is my code: <\/span><\/span>https:\/ <\/p>\n <\/p>\n <\/p>\n <\/span><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":" #Mastery25- Creation and use of ranges in Python #TC1014 &n… Continue reading