Last active
July 19, 2020 18:53
-
-
Save bala-codes/fa960e1fa50f050208e8c4dd56f22be8 to your computer and use it in GitHub Desktop.
Simple Python Function
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
import argparse | |
def add_and_display(number_1, number_2, permission, display_value): | |
if permission : | |
print(display_value, number_1 + number_2) | |
if __name__ == "__main__": | |
add_and_display(number_1 = 10, number_2 = 20, permission = True, | |
display_value = "Adding two numbers") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment