Nov-21-2022, 08:55 PM
(This post was last modified: Nov-21-2022, 08:55 PM by astral_travel.)
thanks !
is this code better ? it seems to do the job
is this code better ? it seems to do the job
def multiply(a, b): return a*b count = 0 while count < 100: try: user_input = int(input("enter the first number: ")) user_input2 = int(input("enter the second number: ")) print(multiply(user_input, user_input2)) count += 1 except: print("enter only integer numbers")