Q:

Given a list of numbers, Iterate it and print only those numbers which are divisible of 5

0

Given a list of numbers, Iterate it and print only those numbers which are divisible of 5

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

def findDivisible(numberList):
    print("Given list is ", numberList)
    print("Divisible of 5 in a list")
    for num in numberList:
        if (num % 5 == 0):
            print(num)

numList = [10, 20, 33, 46, 55]
findDivisible(numList)

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now