Question:
You want to print the message “Access denied” 5 times.
Iterative statement
for i in range(5):
print("Access denied")
for i in range(1, 7):
print("Access denied")
for i in [2, 8, 9, 10]:
print("Access denied")
for i in [5]:
print("Access denied")