# This is the function definition def print_stuff(): print("This will print") return # Return ends functions print("This won't print") # They'll only print if we actually run print_stuff instead of just defining it # This is a function call print_stuff() # We'll call it three more times! print_stuff() print_stuff() print_stuff() def return_two_things(): return 7, 8 x, y = return_two_things() print(x, y) def no_return_two_things(): return 7 return 8 # Won't run this print(return_two_things()) print(no_return_two_things()) def square_less_than_8(tosquare): if tosquare >= 8: print("Number too big!") return 0 return tosquare**2