Skip to content

Commit 1787058

Browse files
committed
marvel chars
1 parent af8fb54 commit 1787058

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

data_structures/2_Arrays/marvel.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
heros=['spider man','thor','hulk','iron man','captain america']
2+
3+
print(len(heros))
4+
5+
heros.append("black panther")
6+
7+
print(heros)
8+
9+
heros.remove("black panther")
10+
print(heros)
11+
12+
heros[3] = "black panther"
13+
14+
print(heros)
15+
16+
heros.remove("thor")
17+
heros.remove("hulk")
18+
19+
print(heros)
20+
21+
heros.append("doctor strange")
22+
23+
print(heros)
24+
heros.sort()
25+
26+
print(heros)

0 commit comments

Comments
 (0)