So I have an assignment to do and our goal is to create a box (Hollow) with the user given output. We need to use print_line(), get_size(), get_char(). I have been trying to fix it up but when I run the program under print_box() and enter the answers, I cant get a box, here is what I have so far:
def print_line(ch, size):
print(ch)
for index in range(4):
print(ch, end ="")
print(ch)
def get_size():
n = int(input("Enter a number between 3 and 8: "))
while n < 3:
n = int(input("Wrong, enter a number between 3 and 8: "))
return n
def get_char():
ch = input("Enter a character (* or -): ")
while ch not in '*-':
ch = input("Please try again: ")
return ch
def print_box():
size = get_size()
ch = get_char()
print_line(ch, size)
print_line(ch, size)