try: Ton = int(input("Ton:- ")) To_kg = 907*Ton print(Ton,"Ton = ",To_kg,"Kg") except: print("Ton's must be number")