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»

ong>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