“Convertir MB a GB Python” Código de respuesta

Convertir MB a 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
Programmer of empires

Cómo convertir GB a MB en 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
Programmer of empires

Respuestas similares a “Convertir MB a GB Python”

Preguntas similares a “Convertir MB a GB Python”

Más respuestas relacionadas con “Convertir MB a GB Python” en Python

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código