import math import random 1: print("e^5: " + str(math.pow(math.e, 5))) print("Ceiling of the square root of 127: " + str(math.ceil(math.sqrt(127)))) 2: suit = ("hearts", "diamonds", "spades", "clubs") value = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, "jack", "king", "queen", "ace") cards = [] for i in range(len(value)): for j in range(len(suit)): element = str(value[i]) + " of " + str(suit[j]) cards.append(element) print(cards) a = random.choice(cards) print(a) cards.remove(a) b = random.choice(cards) print(b) cards.remove(b) c = random.choice(cards) print(c) cards.remove(c) 3: set = set() set2 = {"fillerWord"} elements = input("Input some elements spaced by a comma and a space: ").split(", ") elements2 = input("Again, input some elements spaced by a comma and a space: ").split(", ") for i in elements: set.add(i) for i in elements2: set2.add(i) set2.remove("fillerWord") print(set2.intersection(set))