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()
views:
51answers:
1
A:
vertline()
takes two arguments but you only pass it one. Also, since there are two calls to it, you should take the height of the character and divide it by approximately 2 for each call. This means that you'll also need to pass the height to functionA()
.
Ignacio Vazquez-Abrams
2010-04-13 03:57:44
i apologize, but i am not sure what you mean. can you please give me some sort of an example? i would grately appreciate it
lm
2010-04-13 04:01:33
after taking a look at the prog, i see what you are saying about me only passing one argument on vertline, and not two as i indicated. thanks you for the help:)
lm
2010-04-13 04:13:27