Created
October 15, 2020 03:20
-
-
Save eduuuardo/3ecba780d1f94cc924955e949437ae1c to your computer and use it in GitHub Desktop.
Conversor de MXN a USD en Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pesos = input("Cuántos pesitos mexicanos tienes?: ") | |
pesos = float(pesos) | |
valor_dolar = 21.14 | |
dolares = pesos / valor_dolar | |
dolares = round(dolares, 2) | |
dolares = str(dolares) | |
print("Tienes $" + dolares + " dólares") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment