Jan-22-2020, 04:54 PM
Hello guys,
Please see the below
I would like the input of 'measurement' to equal any variation of the word imperial.
Can anyone assist with this?
I have been told other questions explain this to me but can someone explain it to me in this specific case because i am new to python and will understand it better with my own code.
Thank you,
Ryan
Please see the below
1 2 3 4 5 6 7 8 9 |
my_name = input ( "What is your name? " ) my_secondname = input ( "What is your second name? " ) age = int ( input ( "What is your age? " )) measurement = input ( "What unit of measurement would you like to use, Imperial or Metric? (imp or met) " ) if measurement = = "imp" or "Imperial" or "imperial" or "Imp" : # if measurement == "imp" or "Imperial" or "imperial" or "Imp": imp_weight = int ( input ( "What is your weight? (Numbers only lbs) " )) imp_height = int ( input ( "What is your height? (Numbers only inches) " )) |
Can anyone assist with this?
I have been told other questions explain this to me but can someone explain it to me in this specific case because i am new to python and will understand it better with my own code.
Thank you,
Ryan