forked from powerexploit/Awesome-Python-Scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlist_2.py
More file actions
27 lines (20 loc) · 707 Bytes
/
Copy pathlist_2.py
File metadata and controls
27 lines (20 loc) · 707 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
#!/usr/bin/python3
#find length of list and some other stuff
item=['john','elliot','joe',1,5,6]
item1=['wayne','love',10,89,78]
item2=[4,56,8,9,7]
print("\nFirst list:\n",item)
print("\nsecond list:\n",item1)
print("\nthird list:\n",item2)
print("\n",len(item),"is a length of first list")
print("\n",len(item1),"is a length of second list")
print("\n first element of first list is : ",item[0])
print("\n last element of second list is : ",item1[5-1])
print("\nmimimum element in third list : ",min(item2))
print("\nmaximum element in third list : ",max(item2))
print("\nadding a new element in first list 'rock' ")
item.append("rock")
print("\n First list : \n",item)
#
item1[2]='dsf'
print(item1)