Example & Tutorial understanding programming in easy ways.

What is the Syntax of the range() function in Python ?

Syntax-

range(start,end,gap)

- Here gap is optional argument and default value of start and gap is 0 and 1 respectively.


Example-

range(3) will return 0 to 2

range(2,6) will return 2 to 5

range(2,9,2) will return 2,4,6,8

Read More →
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!