by the character?
What is the actual result of M.find("K" or "k"), and how does this interact with 'if'? Does it output a boolean...?
If your height is given in centimetres, what do you think is going to happen when you check for the presence of the character m, and use that to assume it's metres?
Do you even need to ask what units height is in, if its only going to be metres or centimetres? Can't you figure that out using the value provided? You're not very likely to have somebody 1.8 cm tall, or somebody 180 metres tall, are you?
What are you doing with height? if the height is given in metres, you convert it to cm - and if it's given in cm, you convert it to metres?!?
Yeah about that part where cm to m and m to cm at first I only did the cm to meter following the formula but then realized that my conversions don't work so I tried one conversion for m to cm to I don't know find the problem
Обсуждают сегодня