What iterative statement can you use if you want to print “Security alert” five times?

Automate Cybersecurity Tasks with Python | Weekly challenge 1 Quiz | 

What iterative statement can you use if you want to print “Security alert” five times?

  • for i in range(5):
    print(“Security alert”)
  • for i in range(6):
    print(“Security alert”)
  • for i in range(1,5):
    print(“Security alert”)
  • for i in [0, 5]:
    print(“Security alert”)

 

Leave a Comment