Skip to content

Instantly share code, notes, and snippets.

@eduuuardo
Created October 15, 2020 03:20
Show Gist options
  • Save eduuuardo/3ecba780d1f94cc924955e949437ae1c to your computer and use it in GitHub Desktop.
Save eduuuardo/3ecba780d1f94cc924955e949437ae1c to your computer and use it in GitHub Desktop.
Conversor de MXN a USD en Python
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