As it stands, when I enter any key I am taken inside the while-loop when it should be kicking me out. This is wrong. I would like it so that only "Y" can enter me into the while-loop and that when the "Enter" key is struck, the program is terminated into

>>>

.

Any help would be appreciated. I've done some research and was told to use the double quotation method to have the "Enter" key kick out of while-loop, but as you can see it is not working as it stands in my code. Thank you for your help.

You currently take the value of the print statement as the value of loan_change:

loan_change=print(input("Do you.."))

This is the main reason of the problem currently, you don't need a print statement there, as the value of the print function is None, so your while loop condition fails later, as None != "" will evaluate True always.

Instead, simply use this to get the value of loan_change:

loan_change = input("Do you..")

Note that the input function, if provided a string inside will automatically print it while asking, so the print is not needed at all:

>>> input("Enter some value: ")
Enter some value: 123
'123'

Also, You should change your while loop condition to

while loan_change == "Y":

This will ensure that you enter the loop only when you have an entered a Y, and any other string will exit/skip the loop.