-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpython-eshikhon.txt
68 lines (38 loc) · 1.08 KB
/
python-eshikhon.txt
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
65
66
67
68
mylist = []
mylist.append('Bangladesh')
print(mylist)
mylist.remove('Bangladesh')
print(mylist)
mylist.pop() || last value of the list will remove
del mylist[0] || remove specific list value
mylist.reverse()
mylist = ['Bangladesh', 'Canada', 'United State of America', 'Australia']
print(mylist)
mylist.reverse()
print(mylist)
mylist = ['Bangladesh', 99, 10.5, 'S']
print(type(mylist))
print(type(mylist[0]))
print(type(mylist[1]))
print(type(mylist[2]))
<class 'list'>
<class 'str'>
<class 'int'>
<class 'float'>
<class 'str'>
python set value cant repeat..
my-set = {'A', 'B', 'C', 'A'}
print(my-set)
print(type(my-set))
+++++
for i in range (1, 10):
print(f'9 * {i} = {9 * i}')
for i in range (1, 10):
print("9 * " + str(i) + " = " + str(9 * i))
nine = 9
for i in range (1, 10):
print(nine, " * ", nine, " = ", nine * i)
+++++
string - len.. count .. find.. replace.. split
+++++
+++++