# Tutorial_1_Problem_1.py print("Division Calculator: op1 // op2") equation = input("Please, enter integers op1 and op2 : ") if equation.isalpha( ) : print("is alpha!") else : theOps = equation.split() # default is whitespace if len(theOps) == 0 : print("Nothing!") elif len(theOps) == 1 : print("Only 1 op!") elif len(theOps) > 2 : print("Too many ops!") elif int(theOps[1]) == 0 : print("Division by 0!") else : print("{} // {} = {}".format(theOps[0], theOps[1], int(theOps[0]) // int(theOps[1]) )) # Test cases: # # Test Case # - Test Data - Expected Results # 1 banana is alpha! # 2 "" Nothing! # 3 5 Only 1 op! # 4 4 5 6 Too many ops! # 5 24 0 Division by 0! # 6 24 8 24 // 8 = 3