1.

(d) Give the output of the following code:fori in range(1,16):if i%3==0:print(i)In find outnut generated by the following code:​

Answer»

Answer:

3

6

9

12

15

Explanation:

% is used to find REMAINDER so only the numbers divisible by 3 i.e gives remainder 0 will be PRINTED.



Discussion

No Comment Found