I am trying to use user-defined functions to print out an A out of stars, but i need help defining m
- by lm
def horizline(col):
for col in range (col):
print("*", end='')
print()
def vertline(rows, col):
for rows in range (rows-2):
print ("*", end='')
for col in range (col-2):
print(' ', end='')
print("*")
def functionA(width):
horizline(width)
vertline(width)
horizline(width)
vertline(width)
print()
def main():
width=int(input("Please enter a width for the letter: "))
length=int(input("Please enter a lenght for the letter: "))
letter=input("Enter one of the capital letters: A ")
if(width>=5 and width<=20):
functionA(width)
else:
print("You have entered an incorrect value")
main()