-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlists.py
More file actions
50 lines (24 loc) · 658 Bytes
/
Copy pathlists.py
File metadata and controls
50 lines (24 loc) · 658 Bytes
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
# names=["Jonathan","Donald","David","Paul","Jordan"]
# things=["tree",1,"apple","orange",[1,2,3]]
# print(names[0])
# print(names[1])
# print(names[2])
# print(names[-1])
# my_items=[]
# for i in range(0,3):
# name=input("Enter a name: ")
# my_items.append(name)
# print(my_items)
# my_names=["jonathan","Joel","Brad","Tracy"]
# del my_names[0]
# print(my_names)
#2d list
# my_2d_list=[[1,2,3,4],['a','b','c','d']]
# print(my_2d_list[0][0])
# print(my_2d_list[1][1])
# my_list=['d','q','r','e','t']
# print(sorted(my_list))
numbers=[1,2,3,33,15,4,89,23]
# print(sorted(numbers))
print(numbers[0:3])
print(numbers[2:5])