Main      Site Guide    
Reader Poll

Results


What's your favorite flow control statement in Python?

Answer Number
if/elif/else (e.g., if 'python' in text: print text)23 (17.8%)183.505154639175
for/else (e.g., for x in mylist: print x)14 (10.9%)112.371134020619
while/else (e.g., while x: print x, x = x - 1)18 (14%)144.329896907217
try/except/finally (e.g., try: action() except: print 'error'21 (16.3%)168.041237113402
raise (e.g., raise endSearch, location)5 (3.9%)40.2061855670103
break (e.g., break)23 (17.8%)183.505154639175
continue (e.g., continue)25 (19.4%)200

A total of 129 people answered this question.