Skip to content
Y
yTube.SITE v8.0.4
media / worlds / tools / internet oddities
YouTube / video information

Python Nested Loop | what will be output ? Learn python | python basics | coding #python #pythonquiz

Video information, playback and saved actions.

Python Nested Loop | what will be output ? Learn python | python basics | coding #python #pythonquiz

Description: ✅ Correct Answer: 4


The outer and inner loops both run from `0` to `3`. The condition `i + j == 3` is true for four combinations:

- `i = 0, j = 3`
- `i = 1, j = 2`
- `i = 2, j = 1`
- `i = 3, j = 0`

Each time the condition is true, `code` increase ... Close description
      
Videos related to "Python Nested Loop | what will be output ? Learn python | python basics | coding #python #pythonquiz"