Saturday, 23 October 2021

39: Square of As

#This program will write as many As as the square of the number you give, taking into account that it will only write n As per line and n lines
#Get the number of As
try:
 A_squared = int(input('Please give me the number at which you want to square A \n>'))
except ValueError:
 print('That is not a valid number of As')
 
#Print them
for i in range(0, A_squared):
 for j in range(0,A_squared):
   print('A', end = '')
 print('')