this script works in python2 but not in python3, the input question continues to be shown even if I put the correct answer :

```
correct = "no"
while correct == "no":
    answer = input("15 x 17? ")
    if answer == 15*17:
        correct = "yes"
        print 'good!' #for python2
    else:
        correct = "no"

```

how this can be solved both not using and using a function?