# # a1pr1.py - Assignment 1, Problem 1 # # Indexing and slicing puzzles # # This is an individual-only problem that you must complete on your own. # # # List puzzles # pi = [3, 1, 4, 1, 5, 9] e = [2, 7, 1] # Example puzzle (puzzle 0): # Creating the list [2, 5, 9] from pi and e answer0 = [e[0]] + pi[-2:] print(answer0) # Solve puzzles 1-4 here: # # String puzzles # b = 'boston' u = 'university' t = 'terriers' # Example puzzle (puzzle 5) # Creating the string 'bossy' answer5 = b[:3] + t[-1] + u[-1] # Solve puzzles 5-10 here: