forked from subrata3112/Hack-Vsit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhack.py
More file actions
23 lines (23 loc) · 757 Bytes
/
hack.py
File metadata and controls
23 lines (23 loc) · 757 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import re
list1 = ['Near G3S Cinema, R..\t\t\t\t|', 'VD Honda, Dwarka S..\t\t\t\t|', 'Chacha Bhaturewala..\t\t\t\t|', 'Club Road, Punjabi..\t\t\t\t|', 'Main Road, New Ash..\t\t\t\t|', 'Rajiv Chowk, Gurga..\t\t\t\t|', 'Vikas Marg, Chitra..\t\t\t\t|', 'Lajpat Rai Chowk, ..\t\t\t\t|', 'Block A, Dilshad G..\t\t\t\t|', 'Sector VI, Vaishal..\t\t\t\t|']
b=""
c=""
for i in range(0,len(list1)):
b=list1[i]
for j in range(0,len(b)):
if b[j]=="," or b[j]==".":
break
else:
c=c+b[j]
list1[i]=c
c=""
for i in range(0,len(list1)):
b= list1[i]
for j in range(0,len(b)):
if b[j]==" ":
c=c+"-"
else:
c=c+b[j]
list1[i]=c
c=""
print(list1)