×

Multiple-Choice Questions

Web Technologies MCQs

Computer Science Subjects MCQs

Databases MCQs

Programming MCQs

Testing Software MCQs

Digital Marketing Subjects MCQs

Cloud Computing Softwares MCQs

AI/ML Subjects MCQs

Engineering Subjects MCQs

Office Related Programs MCQs

Management MCQs

More

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)
  1. 0
    1
    2
    3
    4
    5
  2. 0
    1
    2
    3
  3. 1
    2
    3
    4
    5
  4. 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.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.