convert mb to gb python

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

Here is what the above code is Doing:
1. It takes input from the user.
2. It converts the input into integer.
3. It multiplies the input with 1024.
4. It prints the output.
5. If the input is not in integer format, it will show an error.