-
Notifications
You must be signed in to change notification settings - Fork 0
/
turler.py
43 lines (40 loc) · 872 Bytes
/
turler.py
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
def str():
s="eren";
s1="esen";
print(s+s1);
print(s.split("r"));
print (s*5);
periler="-";
print(periler.join([s,s1]));
print(periler.join(["yeliz","yavuz","eren"]));
s2=" eren";
print(s2,s2.strip());
def tapıllar():
t=("yavuz","eren","yelz");
t1=(28,29,"Hello World");
print(t+t1);
def listeler():
l=["15","a,","ayse","veli","ali",5];
l1=[4];
print(l+l1);
l1.append("msi");
print(l1);
l1.pop(0);
print(l1);
print(l[1]);
#print(l[:-2];
print(l[-2:]);
print("istenilen aralık = ",l[0:2]);
def sozlukler():
d={"akademik":"bilisim","eren":"esen",3:"uc"};
print(d.items());
print(d.keys());
print(d.values());
d[5]="bes";
print(d.items());
print(d[3]);
d["self"]=d;
print(d.items());
del d["eren"];
print(d.items());
sozlukler();