Question: how would i loop this in python import math #importing to perform math functions #function to get weight input from user def getWeight(): weight=input('Please enter

how would i loop this in python

import math #importing to perform math functions #function to get weight input from user def getWeight(): weight=input('Please enter weight ') return weight #function to get height input from user def getHeight(): height=input('Please enter Height ') return height #function to calculate BMI def calculateBMI(): BMI=(float(weight)*703/(math.pow(float(height),2))) return BMI #function to Display weight,height and BMI def displayResult(): print('Weight ',weight) print('Height ',height) print('BMI ',BMI) #calling functions weight=getWeight() height=getHeight() BMI=calculateBMI() displayResult()

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!