-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfriends_list.py
More file actions
70 lines (52 loc) · 1.25 KB
/
Copy pathfriends_list.py
File metadata and controls
70 lines (52 loc) · 1.25 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
65
66
67
68
69
70
friends_list = []
print(friends_list)
friends_list = ["My friends friends_list"]
print(friends_list)
# friends_list of my friends in school
friends_list = "my friends at school"
print(friends_list)
friends_list = """
[Justin,
Ashish,
Macario,
Pranav,
Charan]
"""
print(friends_list)
# friends_list of friends at home
friends_list = "my friends at home"
print(friends_list)
friends_list = """
[Archit,
Rithwick,
Prajwal,
Abhishek,
Sonu,
Shreerem]
"""
print(friends_list)
# best friends friends_list
friends_list = "My best friends"
print(friends_list)
friends_list = ["Shreeram", "Justin8.9", "Macario89j", ["Ashish2d"]]
print(friends_list)
print(friends_list[1])
print(friends_list[0])
print(friends_list[0][3])
print(len(friends_list))
# add data to the friends_list
friends_list.append("Jonathan")
print(friends_list)
# modify the data
friends_list[0] = 100
print(friends_list)
# removing friends_list
friends_list.remove(100)
print(friends_list)
print("=======These are few of my friends========")
print("=======I have more but I dont need to time to mention them=======")
for data in friends_list:
print(str(data))
friends_list.pop(3)
for data in friends_list:
print(str(data))