try: tb = int(input("How much tb:- ")) conversion = tb / 1024 print(conversion," pb") except ValueError: print("PB must be in numerical format not the char format") #numerical format --> integer #char format --> string