QUESTION IMAGE
Question
write a python for loop that iterates through a list of numbers and prints out only the numbers that are divisible by 5.
Step1: Define the list
number_list = [10, 12, 15, 18, 20]
Step2: Write the for - loop
for num in number_list:
if num % 5 == 0:
print(num)Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
number_list = [10, 12, 15, 18, 20]
for num in number_list:
if num % 5 == 0:
print(num)