<filename>ex009.py
n = int(input('Digite um número para ver a sua tabuada: '))
n1 = n*1
n2 = n*2
n3 = n*3
n4 = n*4
n5 = n*5
n6 = n*6
n7 = n*7
n8 = n*8
n9 = n*9
n10 = n*10
print(f"{'' :=^21}")
print(f"{'TABUADA':^21}")
print(f"{'':=^21}")
print('{} x 1 = {}'.format(n, n1))
print('{} x 2 = {}'.format(n, n2))
print('{} x 3 = {}'.format(n, n3))
print('{} x 4 = {}'.format(n, n4))
print('{} x 5 = {}'.format(n, n5))
print('{} x 6 = {}'.format(n, n6))
print('{} x 7 = {}'.format(n, n7))
print('{} x 8 = {}'.format(n, n8))
print('{} x 9 = {}'.format(n, n9))
print('{} x 10 = {}'.format(n, n10))



<filename>ex009.py
n = int(input('Digite um número para ver a sua tabuada: '))
n1 = n*1
n2 = n*2
n3 = n*3
n4 = n*4
n5 = n*5
n6 = n*6
n7 = n*7
n8 = n*8
n9 = n*9
n10 = n*10
print(f"{'' :=^21}")
print(f"{'TABUADA':^21}")
print(f"{'':=^21}")
print('{} x 1 = {}'.format(n, n1))
print('{} x 2 = {}'.format(n, n2))
print('{} x 3 = {}'.format(n, n3))
print('{} x 4 = {}'.format(n, n4))
print('{} x 5 = {}'.format(n, n5))
print('{} x 6 = {}'.format(n, n6))
print('{} x 7 = {}'.format(n, n7))
print('{} x 8 = {}'.format(n, n8))
print('{} x 9 = {}'.format(n, n9))
print('{} x 10 = {}'.format(n, n10))


