What does range () do in python?



What does range () do in python?..

Answer / Sonika Kumari

In Python, 'range' is a built-in function that generates a sequence of numbers. It returns an iterable object that can be used in loops or as arguments to other functions.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

How do I use xrange in python 3?

1 Answers  


What is Flask and explain its benefits?

2 Answers  


Can we write else statement try block in python?

1 Answers  


How many keywords are there in python? And why should we know them?

1 Answers  


What is the best free ide for python?

1 Answers  


What are the steps required to make a script executable on Unix?

1 Answers  


Can you modify the maximum depth for a recursive function in Python? If yes how?

1 Answers  


How to count the occurrences of a list item?

1 Answers  


Does python interact with database?

1 Answers  


Is upper in python?

1 Answers  


Is there an equivalent of c's "?:" Ternary operator?

1 Answers  


Is python case-sensitive?

4 Answers  


Categories