0% found this document useful (0 votes)
7 views

100 Days of Python Notes

Uploaded by

dilip_volam978
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

100 Days of Python Notes

Uploaded by

dilip_volam978
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

python Notes :

Day 1 :

Day 2:

Day 3:

TASK :
x=int(input("Enter any Number from 1 to 99\n"))
if (x%2==0):
print("The Number you entered is even number")
else:
print("The Number you entered is odd number")

----------------------------------------------------------
Task:

Add some if/elif/else statements to the BMI calculator so that it interprets the
BMI values calculated.

If the bmi is under 18.5 (not including), print out "underweight"

If the bmi is between 18.5 (including) and 25 (not including), print out "normal
weight"

If the bmi is 25 (including) or over, print out "overweight"

SOLUTION :
weight = 100
height = 1.85

bmi = weight / (height ** 2)


if int(bmi) < 18.5:
print("you are under weight")
elif 18.5 <= int(bmi) < 25:
print("normal weight")
else:
print ("overweight")
print(int(bmi))
-------------------------------------------------------------

You might also like