-
Notifications
You must be signed in to change notification settings - Fork 0
/
string_tap.py
63 lines (34 loc) · 1.48 KB
/
string_tap.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
website = "https://instagram.com/m.abdissamat"
kurs = "Python Kursi: 0 den bastap Jogari dengei Python Bagdarlamalau jospari (40 sagat)"
# 1- 'kurs' simvoldar massivinde kanwa simvol bar?
# result = len(kurs)
# lenght = len(website)
# # 2- 'website' iwinen 'https' simvoldarin jazdiriniz.
# result = website[0:5]
# # # 3- 'website' iwinen 'com' simvoldarin ekranga jazdiriniz.
# result = website[18:21]
# # # 4- 'kurs' iwinen algawki 15 jane songi 15 simvoldardi ekranga jazdiriniz.
# result = kurs[:15]
# result = kurs[-15:]
# # 5- 'kurs' iwindegi matindi tersinen jazdiriniz.
#result = kurs[::-1]
name,surname,age,job = "Murtaza","Abdissamat",28,"Python Bagdarlamashy"
# # 6- Jogarida berilgen ainymalylar arkili ekranga tomendegi sozderdi jazdiriniz.
# # 'Menin atym Murtaza Abdissamat, jasym 28 jane mamandigim Python Bagdarlamashy.
result = f"Menin atym {name} {surname}, jasym {age} jane mamandigim {job}"
print("Menin atym {1} {0}, jasym {2} jane mamandigim {3}".format(name,surname,age,job))
# # 7- 'Salem Alem' sozindegi 'a' aripin 'A' aripine auistiriniz.
s = 'Salem Alem'
result = s[:1] + 'A' + s[2:]
# # 8- 'abc' sozin 3 ret jan janina jazdiriniz.
result = 'abc ' * 3
print(result)
#1 result = len(kurs)
#2 result = website[0:7]
#3 result = website[-16:-13]
#4 result = website[:15], [-15:]
#5 result = website[::-1]
#6 result = f"Menin atym {name} {surname}, jasym {age} jane mamandigim {job}."
#7 result =
#8
#9