What will this iterative statement do?

Automate Cybersecurity Tasks with Python | Weekly challenge 1 Quiz | 

What will this iterative statement do?

for i in [0, 5]:
print(i)
  • Output the integer 0
  • Output the integers 0 and 5
  • Output the integers 0, 1, 2, 3, and 4
  • Output the integers 0, 1, 2, 3, 4, and 5

 

Leave a Comment