try: Mile = int(input("Mile:- ")) To_km = 1.60934*Mile print(Mile,"Mile = ",To_km,"Km") except: print("Mile's must be number")