Jan-22-2020, 05:21 PM
(Jan-22-2020, 05:18 PM)sandeep_ganga Wrote: if measurement[:3].lower() == "imp" and measurement.lower() == "imperial":you don't want to use
and
. this way imp
will not workmeasurement = input("What unit of measurement would you like to use, Imperial or Metric? (imp or met) ") if measurment.lower() in ('imp', 'imperial'):
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs