-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path01_list.py
More file actions
67 lines (37 loc) · 1.05 KB
/
01_list.py
File metadata and controls
67 lines (37 loc) · 1.05 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
people = ["Hanna","Louisa","Claudia", "Angela","Geoffrey", "aparna"]
people[0] = "Hannah"
people[0].upper()
print("#########################################")
colors = ["purple","teal","magenta"]
for color in colors:
print(color)
print("#########################################")
numbers = [1,2,3,4]
i = 0
while i < len(numbers):
print(numbers[i])
i +=1
print("#########################################")
sounds = ["super", "cali", "fragil", "istic", "expi", "ali", "docious"]
result = ' '
for sound in sounds:
result += sound.upper()
print(result)
print("#########################################")
instructors = []
instructors.append("Colt")
instructors.append("Blue")
instructors.append("Lisa")
for i in instructors:
print(i)
print("#########################################")
instructor = []
instructor.extend(["Colt","Blue","Lisa"])
for x in instructor:
print(x)
print("#########################################")
instructor.pop(2)
instructor.pop(0)
instructor.insert(0,"Done")
for x in instructor:
print(x)