-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlists.py
More file actions
31 lines (29 loc) · 846 Bytes
/
Copy pathlists.py
File metadata and controls
31 lines (29 loc) · 846 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
#We are going to create lists in this tutorial
# lucky_numbers = [4, 1, 6, 34, 79, 34, 26, 37]
# friends = ["Thomas", "Karen", "Jim", "Barry", "Jaime"]
# print(friends)
# print(friends[0])
# print(friends[-1])
# print(friends[1:])
# print(friends[1:3])
# friends.extend(lucky_numbers)
# friends.append("Addonis")
# friends.insert(1, "Kelly")
# friends.remove("Jim")
# friends.pop()
# length = len(friends)
# print(length)
# friends.index("Barry")
# friends.clear()
# friends.sort()
# print(friends.count("Barry")) #try using index in a for loop to replicate this function
# print(length)
# lucky_numbers.sort()
# print(lucky_numbers)
# lucky_numbers.reverse()
# friends2 = friends.copy()
# print (friends2)
tuple1= (4,5)
coordinates = [(4,5) , (14,15), (2,3), (45,625), (89,21)]
print(coordinates[2])
print(tuple1)