Home » Computer Science » Python » Which of the following is the correct syntax for a for loop in Python?

Which of the following is the correct syntax for a for loop in Python?

A. for i in range(5):
B. for (i = 0; i < 5; i++):
C. foreach i in range(5):
D. for i range(5):

Option: A