Age by waight calculator
desikamas.blogspot.com ad tags
def estimate_age_by_weight(weight_kg):
"""
Rough estimation of baby age by weight in kg.
This is NOT medical-grade; it's for general use only.
"""
if weight_kg < 2.5:
return "Newborn (premature or underweight)"
elif 2.5 <= weight_kg < 4.5:
return "0 - 3 months"
elif 4.5 <= weight_kg < 6.5:
return "3 - 6 months"
elif 6.5 <= weight_kg < 8:
return "6 - 9 months"
elif 8 <= weight_kg < 9.5:
return "9 - 12 months"
elif 9.5 <= weight_kg < 11:
return "1 - 2 years"
else:
return "Over 2 years or check for overweight"
# Example usage
weight = float(input("Enter weight in kg: "))
age_estimate = estimate_age_by_weight(weight)
print("Estimated Age Range:", age_estimate)
desikamas.blogspot.com ad tags
Comments
Post a Comment