Created
September 24, 2020 19:09
-
-
Save codetombomb/0bd4845601983be2758671e2685623d4 to your computer and use it in GitHub Desktop.
Provide arg with default value
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
def introduction_with_language(name, language = "Python"): | |
print(f"Hi, my name is {name} and I am learning to program in {language}.") | |
if __name__ == "__main__": | |
introduction_with_language("Tom", "Ruby") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment