functions

This commit is contained in:
Mert Gör 🇹🇷 2023-05-21 19:44:47 +03:00
parent d70241b557
commit eb09b29a79
No known key found for this signature in database
GPG Key ID: 2100A876D55B39B9
7 changed files with 24 additions and 0 deletions

2
function.2.py Normal file
View File

@ -0,0 +1,2 @@
def bar(a, b, c):
print(a, b, c)

1
function.3.py Normal file
View File

@ -0,0 +1 @@
def foo(): print('bir'); print('iki'); print('üç')

2
function.4.py Normal file
View File

@ -0,0 +1,2 @@
def foo():
pass

3
function.5.py Normal file
View File

@ -0,0 +1,3 @@
def foo():
print('foo first');
print(type(foo)) # <class 'function'>

5
function.6.py Normal file
View File

@ -0,0 +1,5 @@
def foo():
print('foo')
def foo():
print('diğer foo')

9
function.7.py Normal file
View File

@ -0,0 +1,9 @@
def foo():
print('foo first')
foo()
def foo():
print('foo second')
foo()

2
function.py Normal file
View File

@ -0,0 +1,2 @@
def foo():
print('I am foo')