I need help with allowing the user to select a value and call a function accordingly.

```
weight = input('Enter K for kilos  or P for pounds : ')

unit = weight

if unit == "K":

    def metricTopound(kilograms):

        pounds = kilograms * 2.2
        ounces = pounds * 16

        return int(pounds), ounces % 16

        kilograms = float(input("How many Kilos ? "))
        lb, o = metricTopound(kilograms)
        print('The amount of pounds you entered is {}. '\
        'This is {} pounds and {} ounces.'.format(kilograms, lb, o))

elif unit == " P ":

    def poundsToMetric(pounds):
        kilograms = pounds / 2.2
        grams = kilograms * 1000

        return int(kilograms), grams % 1000

        pounds = float(input("How many Pounds? "))
        kg, g = poundsToMetric(pounds)
        print('The amount of pounds you entered is {}. '\
        'This is {} kilograms and {} grams.'.format(pounds, kg, g))

```

The user should be able to select `P` to get the weight in kilos or `K` to get the weight in pounds.