ExamPlay Dark Logo
Logga in

Computer Science for IGCSE & O level - Programming (Section 8 - No. 42)

Which of the following is an example of a valid loop in Python?
loop i in range(5):
while (i < 5):
for i in range(5):
loop while i < 5:

Förklaring

The correct syntax in python for a loop is 'for i in range(5):'

Kommentarer (0)

Logga in för att kommentera
Annons
BrainBehindX Inc Logo
©2026; Drivs av BrainBehindX Inc