Python Programming - Loops - Discussion

Discussion Forum : Loops - General Questions (Q.No. 9)
9.
What does the range function return in Python when used with a single argument?
A list of numbers from 0 to the specified argument (exclusive)
A list of numbers from 1 to the specified argument (inclusive)
A list of numbers from 0 to the specified argument (inclusive)
A list of numbers from 1 to the specified argument (exclusive)
Answer: Option
Explanation:
The range function with a single argument returns a sequence of numbers starting from 0 up to (but not including) the specified argument.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.