Printing the number from a list and its square on the same line in python3 [closed]

How about:

for i in numbersList:
    print(i, i*i)

Browse More Popular Posts

Leave a Comment