Question 8 - Week 5 Practice | Prasnya
Prasnya
Continue with Google
Practice path
Dashboard
Exam
Qualifier / Quiz 1
Go to subject
Programing with python
Go to chapter
Week 5
Question 8
00:00
Est. 2 min
Marks:
+3.00
0.00
What will be the output of the code snippet given below? ``` a = 5 b = 5 for x in range(0, a): for y in range(b, x - 1, -1): print(y, end=' ') print() ```
Single correct
Medium Difficulty
16 July 2023
A
``` 1 2 1 3 2 1 4 3 2 1 5 4 3 2 1 ```
B
``` 5 4 3 2 1 5 4 3 2 5 4 3 5 4 5 ```
C
``` 1 2 3 4 5 1 2 3 4 1 2 3 1 2 1 ```
D
``` 1 1 2 1 2 3 1 2 3 4 ```
E
``` 5 4 3 2 1 4 3 2 1 3 2 1 2 1 ```