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.4m questions
9.9m answers