From random import randint as rand def form(height, gender='f'):
if gender == 'f':
ans = (((height * 3.5) / 2.54) - 108) * 0.453
else:
ans = (((height * 4) / 2.54) - 128) * 0.453
ans = round(ans, 1)
return ans
h = rand(160, 199)
g = 'm'
w = form(h, g)
print('ідеальна вага:',
Да