This file contains hidden or 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
| Use: for testing against email regex | |
| ref: http://codefool.tumblr.com/post/15288874550/list-of-valid-and-invalid-email-addresses | |
| List of Valid Email Addresses | |
| email@example.com | |
| firstname.lastname@example.com | |
| email@subdomain.example.com | |
| firstname+lastname@example.com |
This file contains hidden or 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") |
This file contains hidden or 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
| verdes = input("Cuántos verdes tienes?: ") | |
| verdes = float(verdes) | |
| valor_mx = 0.047 | |
| pesos = verdes / valor_mx | |
| pesos = round(pesos, 2) | |
| pesos = str(pesos) | |
| print("Tienes $" + pesos + " pesos mexicanous") |