Python | Operators | Question 4
What is the output of the following program :
i = 0while i < 3: print i i++ print i+1 |
chevron_right
filter_none
(A) 0 2 1 3 2 4
(B) 0 1 2 3 4 5
(C) Error
(D) 1 0 2 4 3 5
Answer: (C)
Explanation: There is no operator ++ in Python
Quiz of this Question
Please comment below if you find anything wrong in the above post
Recommended Posts:
- Python | Operators | Question 3
- Python | Operators | Question 2
- Python | Operators | Question 1
- Basic Operators in Python
- Operators in C | Set 2 (Relational and Logical Operators)
- C | Operators | Question 27
- C | Operators | Question 10
- C | Operators | Question 27
- C | Operators | Question 26
- C | Operators | Question 24
- C | Operators | Question 11
- C | Operators | Question 9
- C | Operators | Question 8
- C | Operators | Question 6
- C | Operators | Question 5



