Python Range | Sololearn: Learn to code for FREE!

+27

Python Range

Range with three arguments used only for numerical values or not?

2/26/2018 2:37:18 PM

Shivani Goyal

75 Answers

New Answer

+83

range = range(start, end, steps) start= number it starts counting from end= up to what it counts steps= steps it might take, range(0,10,2) = 02468

+36

If the third number is negative, it goes through the range backwards.

+13

thank you Mr. Markus Kaleton

+10

range = range(start, end, steps) start= number it starts counting from end= up to what it counts steps= steps it might take, By default start is 0 By default step is 1 Both are optional

+7

The range() is an in-built function in Python. Syntax range(start, stop, step) Example range(1, 10, 2) It returns a sequence of numbers starting from zero and increment by 1 by default and stops before the given number.

+3

yes you are saying absolutely right....but I'm saying that please concentrate only one degree

+3

Shri Ram College

+3

+2

range(starting no,end) its output starting no and end no -1 if ingrement than range take 3 argument i .e range(starting no , end no , ingrement) e.g range(1,10,3) its output will be 1, 1+3=4, 4+3=7, answer 7+3=10 which is excluded

+2

Hello....

+2

@Anushka hi

+2

Hello Vishal Kapil thank you

+2

what you can't start

+2

please concentrate on 1 degree okay

+2

please don't divert your mind....

+2

so concentrate on IT field

+2

do u study online ???

+2

yes I'm also study online

+2

+2