User Profile

Collapse

Profile Sidebar

Collapse
samic
samic
Last Activity: Jan 18 '10, 11:25 PM
Joined: Jan 2 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • samic
    replied to BMI calculator
    Thank you very much for your help
    See more | Go to post

    Leave a comment:


  • samic
    replied to BMI calculator
    BMI calculator

    I cant run this.
    can any one edit it for me?? Thanks

    Code:
    def bmi_calculate(a,b): #a = weight and b = height
        
        a, b = input("Enter weight and height seperated by a comma:")
        bmi = (a * 720) / (b * b)
        print "the BMI is:" , bmi
    
        for n in range (19,25):
            return 'healthy'
            if n < 19:
    ...
    See more | Go to post
    Last edited by bvdet; Jan 2 '10, 07:42 PM. Reason: Add code tags

    Leave a comment:


  • samic
    started a topic BMI calculator

    BMI calculator

    Hello
    I have just started learning Python and I have so many problem in solving my exercise. I know the answer I have written is not correct. Can any body help me?
    the question is:
    The body mass index (BMI) is calculated as a person’s weight (in pounds) times 720, divided by the square of the person’s height (in inches). A BMI in the range 19-25, inclusive, is considered healthy. Write a program that calculates a person’s...
    See more | Go to post
    Last edited by bvdet; Jan 2 '10, 07:42 PM. Reason: Add code tags
No activity results to display
Show More
Working...