The proper syntax for while loops in Python are:
while (condition):
#the code does something
Answer choice B is the only correct option because all while loops end with a colon.
7.8m questions
10.4m answers