Created
August 17, 2018 12:48
-
-
Save Fhernd/690430ac094d94903b9879463041ab98 to your computer and use it in GitHub Desktop.
Parámetros predeterminados y opcionales en una función. OrtizOL.
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
from datetime import datetime | |
def enviar_email(destinatario, mensaje, remitente='john@outlook.com', titulo=datetime.now()): | |
print(destinatario, mensaje, remitente, titulo) | |
enviar_email('fernando@outlook.com', 'Mensaje de prueba') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment