I am creating a financial modeling tool that a user can use. I want the user to be able to be able to enter what method they want to use by typing the variable name. However, with the code I have, the raw_input just gives out a string of what they entered, not the variable name itself
loose = 5
accurate = 10
extreme = 15
method = raw_input('Would you like the calculation to be loose, accurate, or extreme in its precision?: ") #the user would either type loose, accurate, or extreme
calculation = x*y*method #x and y is just a generic calculation and method should be equal to either 5, 10, or 15 based on whether the user chose loose, accurate, or extreme
I get an error that says method is not an int. What can I do to have it equal to the loose, accurate, or extreme values above?