- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlist.py
More file actions
Latest commit
executable file
·20 lines (20 loc) · 418 Bytes
/
Copy pathlist.py
File metadata and controls
executable file
·20 lines (20 loc) · 418 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/python3
flights= ['9W811', 'IA414', '9W522']
print(len(flights))
print(flights)
flights.append('MH213')
print(flights)
flights.extend('QA400')
print(flights)
flights.extend(['SL419', 'ONEMORE'])
print(flights)
flights.insert(1,'9w811')
print(flights)
flights.insert(1,'9W811')
print(flights)
flights.remove('9w811')
print(flights)
flights.remove('9W811')
print(flights)
print(flights.pop())
print(flights)