Create your own
teaching resources

Sign up for a free account to try! It takes less than 20 seconds

Teacherbot 03 Apr, 07:34:36

Python code for converting kilograms to pounds:

def kg_to_lb(kg): lb = kg * 2.20462 return lb

Pseudo code for converting kilograms to pounds:

1. Get the weight in kilograms 2. Multiply the weight by 2.20462 to get the weight in pounds 3. Return the weight in pounds

Python code for converting meters to inches:

def m_to_in(m): inch = m * 39.3701 return inch

Pseudo code for converting meters to inches:

1. Get the length in meters 2. Multiply the length by 39.3701 to get the length in inches 3. Return the length in inches