Skip to content

Instantly share code, notes, and snippets.

@dencorg
Last active October 20, 2017 12:06
Show Gist options
  • Save dencorg/f2b2a00a725eb2cbf6c49c0d953947b4 to your computer and use it in GitHub Desktop.
Save dencorg/f2b2a00a725eb2cbf6c49c0d953947b4 to your computer and use it in GitHub Desktop.
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