Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fo=open("hac1.txt","r")
- list1 =(fo.read())
- print(list1[0:5])
- print(list1[6:12])
- print(list1[12:17])
- tab1=[]
- tab2=[]
- for x in (list1[0:5]):
- tab1.append(x)
- (tab1.remove(","))
- (tab1.remove(","))
- for x in (list1[6:11]):
- tab2.append(x)
- (tab2.remove(","))
- (tab2.remove(","))
- tab3=[]
- for x in (list1[12:17]):
- tab3.append(x)
- (tab3.remove(","))
- (tab3.remove(","))
- print(tab1)
- print(tab2)
- print(tab3)
- a=[]
- a.append(tab1)
- a.append(tab2)
- a.append(tab3)
- print(a)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement