Last active
October 20, 2017 12:06
-
-
Save dencorg/f2b2a00a725eb2cbf6c49c0d953947b4 to your computer and use it in GitHub Desktop.
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 add(a, b): | |
c = a + b | |
return c | |
print(add(2, 3)) | |
def find_min(a,b): | |
if a < b: | |
return a | |
else: | |
return b | |
print(find_min(3,4)) | |
# προεπιλεγμένα ορίσματα | |
def hello(message='Hello world!'): | |
print(message) | |
hello() | |
hello('Hello there!') | |
def greetings(greet="hello", name="there"): | |
print(greet + ' ' + name) | |
greetings() | |
greetings(name='dennis', greet='bye') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment