it's just simple squaring by repetitive addition. hope u guys might spare some time helping a brother out. totally missing something here because the while loop works:
x = 7
ans = 0
itersLeft = x
while (itersLeft != 0):
ans = ans + x
itersLeft = itersLeft - 1
print (str(x) + '*' + str(x) + ' = ' + str(ans))
but the "while True" loop fails:
x = 5
ans = 0
itersLeft = x
while True:
if itersLeft != 0:
ans = ans + x
itersLeft = itersLeft - 1
print (str(x) + '*' + str(x) + ' = ' + str(ans))