Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- ########################
- # Create functions here
- #########################
- def something():
- "im doing stuff"
- def function1():
- "THis is another function("
- def function2(something):
- print something
- def turnsOnWater(temperature):
- print "Turning on %s water.." % temperature
- def takeShower(place):
- '''
- place is a STRING, should only be upstairs or downstairs
- check arg
- '''
- turnsOnWater("hot")
- print "Taking shower in %s" %place
- ####################################
- # Call functions here
- ####################################
- function2("hahahah")
- takeshower("upstairs")
- name = "john"
- height_f = 6
- weight_kg = 40
- bmi = weight_kg / (height_f ** 2)
- print ("bmi: ")
- print (bmi)
- if bmi < 25:
- print(name)
- print("is not overweight")
- else:
- print(name)
- print("is overweight")
- bmi("this is your bmi")
Add Comment
Please, Sign In to add comment