Jan-22-2020, 05:18 PM
(This post was last modified: Jan-22-2020, 05:31 PM by sandeep_ganga.)
try this to see if that helps,
Sandeep
GANGA SANDEEP KUMAR
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.lower() == "imp" or "imperial": imp_weight = int(input("What is your weight? (Numbers only lbs) ")) imp_height = int(input("What is your height? (Numbers only inches) "))
Output:python test1.py
What is your name? ff
What is your second name? hh
What is your age? 22
What unit of measurement would you like to use, Imperial or Metric? (imp or met) IMperial
What is your weight? (Numbers only lbs) 2
What is your height? (Numbers only inches) 3
Best Regards,Sandeep
GANGA SANDEEP KUMAR