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.
9.3m questions
12.0m answers