Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Scribd
- MobileQAEngineer
- VitaminT
- MobileQAEngineer
- Welocalize
- MobileQAEngineer
- RWSMoravia
- MobileQAEngineer
- Scribd,MobileQAEngineer
- VitaminT,MobileQAEngineer
- Welocalize,MobileQAEngineer
- RWSMoravia,MobileQAEngineer
- if line of text does not have 4 n afterwards
- then it is the 1st tuple
- if line of text has 4 n afterwards
- then it is the 2st tuple
- with open(input("Enter a file to read: "),'r') as f:
- for line in f:
- newline = line + ":"
- #f.write(newline)
- print(newline)
- :
- Scribd
- :
- MobileQAEngineer
- :
- :
- VitaminT
- :
- MobileQAEngineer
- :
- :
- Welocalize
- :
- MobileQAEngineer
- :
- :
- RWSMoravia
- :
- MobileQAEngineer
- :
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement