Function Practice 1 - Answer

1. Create a function that doubles a number and prints it out.

Did your answer look something like this?

def double_number(number):

print(number * 2)

What happens when you call your new function?

>>> double_number(14)

28

What happens when you pass it a string instead of a number?

>>> double_number("hello")

hellohello