Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #6)
- def sixth(name):
- with open(name,'r') as f:
- a = f.read().split('\n')
- return ' '.join(a)
- #8)
- def delete_trash(n):
- a = n.rstrip('!?.')
- return a
- #14)
- def d(name):
- d1 = {}
- with open(name,'r') as f:
- n = f.readlines()
- for line in n:
- word = line.split()
- if word[2].isdigit():
- d1[word[0]] = (word[1],word[2])
- return d1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement