Post

Rakesh Das
Rakesh Das@RakeshDas_18·
@Python_Dv B) 1 2 is the output. Because 1. The condition i % 3 == 0 checks if i is divisible by 3. 2. Since i start at 1, it does not satisfy the condition and print 1, similar to 2. 3. When i become 3, it satisfies the condition, and the loop breaks after printing the value 1 2.
English
0
0
0
233
Prem Prakash
Prem Prakash@4EverPrem·
@Python_Dv B. i is initialised with value 1. Inside if block, once the i divided by 3 becomes 0, it will break and then i is increased by 1. Rest is easy to figure out :-)
English
0
0
0
203
Paylaş