def main(): #Get input people=input("how many people are there in the classroom? Please input a integer number greater than 1!") #Change the type peopleInt=int(people) #Calculate handShake1=summations.handShakeCount(peopleInt) handShake2=summations.handShakeLoop(peopleInt) #Compare the results resultChecker = summations.compare(handShake1, handShake2) #output print("There will be", handShake1, "hand shakes") #debug print("There will be", handShake2, "hand shakes") #debug print (resultChecker)
def main(): #Get input sides=input("How many sides are there in the polygon? Please input a integer number greater than 3.") #Change the type sidesInt=int(sides) #Calculate diagonals1=summations.diagonalCount(sidesInt) diagonals2=summations.diagonalLoop(sidesInt) diagonals3=summations.diagonalSub(sidesInt) #Compare the results resultChecker = summations.compare(diagonals1, diagonals2, diagonals3) #output print("There will be", diagonals1, "diagonals") #debug print("There will be", diagonals2, "diagonals") #debug print("There will be", diagonals3, "diagonals") #debug print (resultChecker)