filmov
tv
Python MCQ Quize | CodeAj #pythoncoding4u

Показать описание
Ready for a Python challenge? Test your skills with this brain-teasing question:
Answer
D) Error
Explanation
The code attempts to increment 'i' after the print statement, but the 'continue' statement inside the loop skips the increment when 'i' is equal to 3. This causes an infinite loop, as 'i' will never be incremented beyond 2. Therefore, the code will not terminate and will result in an infinite loop.
Drop your answers in the comments! Let's see who can crack this Python puzzle! Don't forget to engage with us using these hashtags:
#codingchallenge #codingchallenge #codingchallenge #codingchallenge #CodingChallenge
#codingCommunity
#codingchallenge #codingchallenge #codingchallenge #learncoding
#codingchallenge #codingchallenge #codingchallenge #codingchallenge #codingchallenge
Answer
D) Error
Explanation
The code attempts to increment 'i' after the print statement, but the 'continue' statement inside the loop skips the increment when 'i' is equal to 3. This causes an infinite loop, as 'i' will never be incremented beyond 2. Therefore, the code will not terminate and will result in an infinite loop.
Drop your answers in the comments! Let's see who can crack this Python puzzle! Don't forget to engage with us using these hashtags:
#codingchallenge #codingchallenge #codingchallenge #codingchallenge #CodingChallenge
#codingCommunity
#codingchallenge #codingchallenge #codingchallenge #learncoding
#codingchallenge #codingchallenge #codingchallenge #codingchallenge #codingchallenge