# MODIFY THE TEMPLATE TO: Gets a one to three-digit integer, # and adds together all of its digits. For example, 123 # would return 6. Hint: remember you can use division! def template(number1): result = 0 # WRITE YOUR CODE HERE return result # END OF YOUR CODE # DO NOTE MODIFY THE FOLLOWiNG CODE # The following code is a driver testing your code. test1 = template(23) test2 = template(203) test3 = template(230) test4 = template(0) test5 = template(123) if (test1 == 5): print("23 returns 5, you got it RIGHT!") else: print("23 returns 5, you got: " + str(test1)) if (test2 == 5): print("203 returns 5, you got it RIGHT!") else: print("203 returns 5, you got: " + str(test2)) if (test3 == 5): print("230 returns 5, you got it RIGHT!") else: print("230 returns 5, you got: " + str(test3)) if (test4 == 0): print("0 returns 0, you got it RIGHT!") else: print("0 returns 0, you got: " + str(test4)) if (test5 == 6): print("123 returns 6, you got it RIGHT!") else: print("123 returns 6, you got: " + str(test5)) if (test1 == 5 and test2 == 5 and test3 == 5 and test4 == 0 and test5 == 6): print("Your code PASS all the tests") else: print("Please check your code, at least one test case did not pass.")