rent_expense_choose = str(input("Do you want a Custom rent expense integer or the Industry
Standard, please enter C for custom and IS for industry standard: "))
if rent_expense_choose == "C":
rent_expense = float(input("Please input the percentage of the rent which will be
dedicated to expenses, awnser as a decimal e.g 0.24 = 24%: "))
elif rent_expense_choose == "IS":
rent_expense = int(0.24)
else: print("please input either C or IS")
I want to turn this code into a while loop and I will explain how the loop will work. So the code asks for an input either C or IS, if the input is C the user will be prompted with an input and be asked another question but if the input is IS rent_expense will be assigned the value 0.24. What I wanted to do is create a while loop which when the user input is not either C or IS it loops the question again until the user inputs either C or IS so the code can move forward. Would appreciate some help and if the question seems stupid please don't flame me because i'm new.