I want to give a print message if the user inputs a string without using the try-exception method but with the if-else method. The code is:
num = int(input("Enter the number = ")) for b in range(1,11): print(num,"",b,"=",numb)
I want to give a print message if the user inputs a string without using the try-exception method but with the if-else method. The code is:
num = int(input("Enter the number = ")) for b in range(1,11): print(num,"",b,"=",numb)