def defines a user defined function object. for statement can be used, for example, to iterate over a numeric range or to iterate over the individual characters of a string. global and nonlocal if import def Foo():
pass
while cond: iterates over a block of code until a certain condition (cond) becomes false.