myName = "Stella"

def hello():
    print("Hello, World!")
    print("How are you?")

def helloName(name):
    print("Hello,", name)
    print("How are you?")

helloName(myName)

def makeHello(name):
    greeting = "Hello, " + name + ", how are you?"
    return greeting


print("No longer in the function")

"""
Write a function convertToQuarters that takes a number of dollars and
converts it into quarters, returning the number of quarters.

For example, if you call convertToQuarters on 2 ($2), the function
should return 8 (8 quarters).
"""

def convertToQuarters(dollars):
    quarters = (dollars*4)
    print(quarters, "quarters")
    return quarters

def outer(x):
    y = x / 2
    return inner(y) + 3

def inner(a):
    b = a + 1
    #print(oops) # will cause an error
    return b

print(outer(4))



def payForMeal(cash, cost):
    cost = cost + calculateTip(cost)
    cash = cash - cost
    print("Thanks!")
    return cash
def calculateTip(cost):
    tipRate = 0.2
    return cost * tipRate
wallet = 20.00
wallet = payForMeal(wallet, 8.00)
print("Money remaining:", wallet)


def goo():
    print(x + 5)