Advertisement
Guest User

Untitled

a guest
Jul 16th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. Scribd
  2. MobileQAEngineer
  3.  
  4.  
  5.  
  6.  
  7. VitaminT
  8. MobileQAEngineer
  9.  
  10.  
  11.  
  12.  
  13. Welocalize
  14. MobileQAEngineer
  15.  
  16.  
  17.  
  18.  
  19. RWSMoravia
  20. MobileQAEngineer
  21.  
  22. Scribd,MobileQAEngineer
  23. VitaminT,MobileQAEngineer
  24. Welocalize,MobileQAEngineer
  25. RWSMoravia,MobileQAEngineer
  26.  
  27. if line of text does not have 4 n afterwards
  28. then it is the 1st tuple
  29. if line of text has 4 n afterwards
  30. then it is the 2st tuple
  31.  
  32. with open(input("Enter a file to read: "),'r') as f:
  33. for line in f:
  34. newline = line + ":"
  35. #f.write(newline)
  36. print(newline)
  37.  
  38. :
  39. Scribd
  40. :
  41. MobileQAEngineer
  42. :
  43.  
  44.  
  45. :
  46. VitaminT
  47. :
  48. MobileQAEngineer
  49. :
  50.  
  51.  
  52. :
  53. Welocalize
  54. :
  55. MobileQAEngineer
  56. :
  57.  
  58.  
  59. :
  60. RWSMoravia
  61. :
  62. MobileQAEngineer
  63. :
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement