Parsons Problem 1: Greeting

Instructions: Rearrange the code blocks to define a 'greet' function.

greet(name)
  print("Hello, " + name)
def greet(name):
name = ""

Parsons Problem 2: Calculate Area of a Rectangle

Instructions: Rearrange the code blocks to define a function that calculates the area of a rectangle.

return length * width
def calculate_area(length, width):
area = calculate_area(length, width)
length = 5
width = 10