try: gb = int(input("How much Gb:- ")) conversion = gb * 1024 print(conversion," MB") except ValueError: print("GB must be in numerical format not the char format") #numerical format --> integer #char format --> string