Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Bmi calculator dictionary
#python 3.5.2 d1={"name ": "john", "age":23 ,"weight":58, "height":5.9} d2={"name": "mark", "age":54, "weight":78,"height":6.5} for key,value in d1.items(): print(key, ' ',value) print("bmi calculation") weight=d1.get("weight") height=d1.get("height") weight1=d2.get("weight") height1=d2.get("height") bmijohn=(weight/height*height) bmimark=(weight1/height1*height1) print("bmi of john is",bmijohn) print("the bmi of mark is ",bmimark) if bmijohn>bmijohn: print("john ka bmi bada hai") else: print("mark ka bada hai bmi")
run
|
edit
|
history
|
help
0
Lesson 3 HW-Final
Task1.py
0
Jaan
Atur Cara Mizan 2
How to make a foolto my friend ?
hello
Gedanken Tests - inner Class, Struct ..
kenken1
ggh