Home »
MCQs »
Python MCQs
What will be the output of the following Python code? Question 7
47. What will be the output of the following Python code?
for i in range(6):
print(i)
- 0
1
2
3
4
5
- 0
1
2
3
- 1
2
3
4
5
- None of the mentioned above
Answer: A)
0
1
2
3
4
5
Explanation:
The range(6) is define as function. Loop will print the number from 0.