Assignment 2 Summary statement: I had a lot of fun doing this. It took me about a half hour to do. I forgot the statement "import random" at first. *** Random Story Problem *** ** Code ** import random word1 = input("Provide a name: ") word2 = input("Provide a location: ") word3 = random.choice(["ran away", "sang", "died"]) print("I had a friend named " + word1 + " from " + word2) print(word1 + " " + word3) ** Sample Runs ** Provide a name: Sally Provide a location: New York I had a friend named Sally from New York Sally ran away *** Tuition problem *** ** Code ** credits = eval(input("Provide the number of credits: ")) if credits < 12: tuition = credits * 615 elif credits <= 18: tuition = 12803 else: tuition = 12803 + (credits - 18) * 615 print("The tuition is " + str(tuition)) ** Sample Runs ** >>> ======================= RESTART: E:\Class4b\tuition.py ======================= Provide the number of credits: 10 The tuition is 6150 >>> ======================= RESTART: E:\Class4b\tuition.py ======================= Provide the number of credits: 15 The tuition is 12803 >>> ======================= RESTART: E:\Class4b\tuition.py ======================= Provide the number of credits: 20 The tuition is 14033 >>> *** Song problem *** ** Code ** actions = eval(input("Provide a list of actions: ")) for action in actions: for counter in range(4): print("Someone is " + action) print("Kumbaya") print() ** Sample Run ** ======================== RESTART: E:\Class4b\song.py ======================== Provide a list of actions: ["laughing", "singing", "running"] Someone is laughing Kumbaya Someone is laughing Kumbaya Someone is laughing Kumbaya Someone is laughing Kumbaya Someone is singing Kumbaya Someone is singing Kumbaya Someone is singing Kumbaya Someone is singing Kumbaya Someone is running Kumbaya Someone is running Kumbaya Someone is running Kumbaya Someone is running Kumbaya >>>