I have a piece of code here that is supposed to loop until the user types in a 0. However it does not loop more than once.
 while temp==1:
        cachv = input("Enter CACH value: ")
        mmaxv = input("Enter MMAX value: ")
        inpuv = [cachv, mmaxv]
        inpuvd= np.reshape(inpuv, (-1, 2))
        test = clf.predict(inpuvd)
        if test == 0:
            print('The performance will be high')
        else:
            print('The performance will be low')
        temp = input('Retest? 1 for Y, 0 for N: ')
    print('done')
The temp variable is first set to 1. When i enter 1 to retry it does not retry
Enter CACH value: 1
Enter MMAX value: 2
The performance will be low
Retest? 1 for Y, 0 for N: 1
done
This is what it looks like
 
     
     
    