Assigment 2


In [ ]:
import pandas as pd
import numpy as np
import random

In [24]:
df = pd.read_csv("excuse.csv")

In [30]:
def excuse_machine(name, place):
    excuses = np.random.choice(df['excuse'])
    return print("Hey", name, "Im sorry It took me so much to arraive to", place, "but", excuses,".")

In [31]:
name = "Paolo"
place = "Columbia"
excuse_machine(name, place)


Hey Paolo Im sorry It took me so much to arraive to Columbia but I was just not feeling well this morning .

In [ ]: