python4.1-defined functions

def add(a,b,c,d):
e=a+b+c-d
return e

= the Add Result (21,32,43,56)
Print ( "sum result:", result)

 

ZZJ DEF (f):
IF f == "apple" or f == "peach" or f == "watermelon":
Print ( "!'re juicing")
Print ( "Two minutes later ....")
the zhi = "cup" + f + "juice"
return the zhi
the else:
Print ( "! juicer bad")

guozhi = ZZJ ( "watermelon")
Print (guozhi)

 

Guess you like

Origin www.cnblogs.com/lma0702/p/11109288.html