I am having trouble trying to add the "|" character to my multiplication table. The output is suppose to have a column on the far left reading 1,2,3,4, etc. and have the "|" character separating it from the rest of the table. This is what I have at the moment.
Code:
'''
This program allows a user to make a multiplication table of their choise in size.
'''
number = int(raw_input('What size multiplication table would you like: '))
i = 1
print "-" * 50
while i < 11:
n = 1
while n <= 10:
print "%4d" % (i * n),
n += 1
print ""
i += 1
print "-" * 50
raw_input('Press ENTER to continue...')
Comment