-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfonksiyon.py
More file actions
64 lines (64 loc) · 1.11 KB
/
Copy pathfonksiyon.py
File metadata and controls
64 lines (64 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
'''def yazdır(sayi,yazi):
for i in range(sayi):
print(yazi)
yazdır(10,"nabıyon")
def ebob(sayi1,sayi2):
ekck=min(sayi1,sayi2)
eb=1
for i in range(1,ekck+1):
if sayi2%i==0 and sayi1%i==0:
eb =i
print(eb)
ebob(8,12)
'''
'''
def goster():
print("selam")
print(type(goster()))
'''
'''
def goster():
return "selam"
print(goster())
'''
'''
def tekmi_ciftmi(sayi):
if sayi%2==0:
return "cift"
else:
return "tek"
print(tekmi_ciftmi(5))
'''
'''
def topla(*sayilar):
toplam=0
for i in sayilar:
toplam +=i
return toplam
print(topla(5,7,6,1,3,8,9))
'''
'''
def kuvvetal(sayi,us=2):
return sayi**us
print(kuvvetal(3))
print(kuvvetal(3,4))
'''
'''
def degerlerigoster(**degerler):
for i,j in degerler.items():
print(i,j)
degerlerigoster(oğulcan="kırtay",renk="yesil",konum="ogrenci")
'''
'''
c=5
def cglobal():
global c
c=4
print(c)
cglobal()
print(c)
'''
tekmi= lambda sayi: sayi%2==1
print(tekmi(11))
toplam=lambda *sayilar:sum(sayilar)
print(toplam(1,2,4,5,6))