for name in phoneDirectory: if name == "John": print("John's number is found.") break
for i in range(1,11): if i % 2 == 1: # skips current loop if the number is odd. continue print(i)
def new_function(args): pass # pass statement does nothing. # However, without a pass statement, # this code will not compile.
for name in phoneDirectory: if name == "John": pass # Do nothing for now. # This code will be updated later.