Code - 1
for i in range(1,5):
for x in range(1,5):
print ("A",end="")
print("*")
Output
AAAA*
AAAA*
AAAA*
AAAA*
Code - 2
for i in range(1,5):
for x in range(1,5):
print("A",end="")
Output
AAAAAAAAAAAAAAAA
My question is why does in Code -2,A after getting printed for 4 time's, doesn't move to the new line automatically as like in Code-1?
My expectation was that A after printing for 4 times will move to the next line as like in Code 1