Skip to content

Instantly share code, notes, and snippets.

@skvggor
Created January 11, 2014 02:12
Show Gist options
  • Save skvggor/8366110 to your computer and use it in GitHub Desktop.
Save skvggor/8366110 to your computer and use it in GitHub Desktop.
Chris python 2 code
#!/usr/bin/python
# -*- coding: utf-8 -*-
print 'Cálculo do peso ideal.'
altura = input('Digite seu altura: ')
masculino = (altura ** 2) * (22.5)
feminino = (altura ** 2) * (21)
sexo = raw_input('Digite seu sexo: ')
if sexo == 'masculino':
print(masculino)
else:
print(feminino)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment