def five (numberlist):
print("Given list is", numberlist)
for num in numberlist:
if num % 5 == 0:
print(num)
lisst = [10, 26, 33, 45, 55]
print("Divisible by 5", five(lisst))
Output is:
Given list is [10, 26, 33, 45, 55]
10
45
55
Divisible by 5 None
It gave me the answer but I don't want to see "None". Why do you think "None" appears?