# Lab 7 - Exercise 1 - Problem 6 def magic(aNumber, symbol1, symbol2): aString = symbol1 * aNumber aString += symbol2 * aNumber print( aString ) if aNumber > 8 : return else: magic(aNumber+1, symbol1, symbol2) aString = symbol1 * aNumber aString += symbol2 * aNumber print( aString ) return # Main part of the program # Ask the user for a number - to produce the output, the user is to enter 1 number = int(input("Please, enter a number (positive integer): ")) # Ask the user for the first symbol - to produce the output, the user is to enter '*' symbol1 = input("Please, enter the first symbol: ") # Ask the user for the second symbol - to produce the output, the user is to enter '!' symbol2 = input("Please, enter the second symbol: ") # Calling the recursive function "magic" magic( number, symbol1, symbol2) print("Wow!")