1.

write a program in python to make a list of all integers less than 100 that are multiples of 3 or 5

Answer»

Code:

a = []

for i in range(1, 101):

    if i%3==0 or i%5==0:

        a.append(i)

print(a)



Discussion

No Comment Found

Related InterviewSolutions