#program to test user on squares of numbers up to 25 import random anotherGo = "Y" while anotherGo == "Y": num = random.randint(1,25) numsquare = num*num print("What is the square of ", num) answer = int(input()) if answer == numsquare: print("correct, well done") else: print("No, it's ",numsquare) anotherGo = input("Another go? Answer Y or N: ") anotherGo = anotherGo.upper()