Advertisement
Guest User

Code

a guest
Apr 8th, 2020
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.36 KB | None | 0 0
  1. with open('tercerOutput.csv','r') as tercerOutput:
  2.     fileone = tercerOutput.readlines()
  3. with open(tabla,'w', newline= "") as tabla:
  4.     writer = csv.writer(tabla)
  5.     for line in fileone:
  6.         if (line.find("(") != -1):
  7.             line.strip( " (" )
  8.             print(line)
  9.             tabla.write(line)
  10.         else:
  11.             tabla.write(line)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement