python 小案例demo07
#作业2
def printinfo():
print("-"*30)
def numprint(num):
i = 0
while i < num:
printinfo()
i += 1
def addNums(a,b,c):
return a + b +c
def averageNums(a,b,c):
average = (a + b + c)/3.0
return average
print(averageNums(3,2,3))
#作业2
def printinfo():
print("-"*30)
def numprint(num):
i = 0
while i < num:
printinfo()
i += 1
def addNums(a,b,c):
return a + b +c
def averageNums(a,b,c):
average = (a + b + c)/3.0
return average
print(averageNums(3,2,3))