Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 3
- s=input()
- a=[]
- g=[]
- for i in s:
- if i != ';' and i != ',' and i != '.' and i != ":" and i != "?" and i != "!":
- g.append(i)
- else:
- a.append(g)
- g=[]
- if i.index(i)=len(s)-1:
- a.append(g)
- g=[]
- print(a)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement