how to convert gb to mb in python

Solutions on MaxInterview for how to convert gb to mb in python by the best coders in the world

showing results for - "how to convert gb to mb in python"
Ema
06 Nov 2017
1try:
2    gb = int(input("How much Gb:- "))
3    conversion = gb * 1024
4    print(conversion," MB")
5except ValueError:
6    print("GB must be in numerical format not the char format")
7    #numerical format --> integer
8    #char format --> string