Answers for "convert mb to gb python"

1

convert mb to gb python

try:
    MB = int(input("How much MB:- "))
    conversion = MB / 1024
    print(conversion," GB")
except ValueError:
    print("MB must be in numerical format not the char format")
    #numerical format --> integer
    #char format --> string
Posted by: Guest on October-04-2021
2

how to convert gb to mb in 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
Posted by: Guest on October-04-2021

Python Answers by Framework

Browse Popular Code Answers by Language