Guest User

Untitled

a guest
Jun 22nd, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. import sys
  2. ########################
  3. # Create functions here
  4. #########################
  5. def something():
  6. "im doing stuff"
  7.  
  8. def function1():
  9. "THis is another function("
  10.  
  11. def function2(something):
  12. print something
  13.  
  14. def turnsOnWater(temperature):
  15. print "Turning on %s water.." % temperature
  16.  
  17.  
  18. def takeShower(place):
  19. '''
  20. place is a STRING, should only be upstairs or downstairs
  21. check arg
  22. '''
  23. turnsOnWater("hot")
  24. print "Taking shower in %s" %place
  25.  
  26.  
  27.  
  28. ####################################
  29. # Call functions here
  30. ####################################
  31. function2("hahahah")
  32. takeshower("upstairs")
  33.  
  34.  
  35.  
  36.  
  37.  
  38. name = "john"
  39. height_f = 6
  40. weight_kg = 40
  41.  
  42. bmi = weight_kg / (height_f ** 2)
  43. print ("bmi: ")
  44. print (bmi)
  45. if bmi < 25:
  46. print(name)
  47. print("is not overweight")
  48. else:
  49. print(name)
  50. print("is overweight")
  51.  
  52. bmi("this is your bmi")
Add Comment
Please, Sign In to add comment