The author wrote a Python program to read lines from an input file, check if the lines match certain regular expression patterns, and write matching lines to an output file. However, when they run the program the output file is empty. They are inexperienced with Python and are asking for help to get their program working correctly.
The author wrote a Python program to read lines from an input file, check if the lines match certain regular expression patterns, and write matching lines to an output file. However, when they run the program the output file is empty. They are inexperienced with Python and are asking for help to get their program working correctly.
The author wrote a Python program to read lines from an input file, check if the lines match certain regular expression patterns, and write matching lines to an output file. However, when they run the program the output file is empty. They are inexperienced with Python and are asking for help to get their program working correctly.
for i in [1,65,1]: if random.random()>0.5: q = 4 else: q = 3 if re.search(r'CORE\s'+str(i), line): if re.search(r'V', line): if re.search(r'V'+str(q), line): tro.write(line) else: tro.write(line) When I run the program however, it seems to finish rather quickly and the output file is empty. I still rather inexperienced with Python and programming in general, so any help in getting my program to help will be greatly appreciated.import re import random
tri = open(input("Input File: "))
tro = open(input("Output File: "),'w')
for line in tri.readline():
for i in [1,65,1]: if random.random()>0.5: q = 4 else: q = 3 if re.search(r'CORE\s'+str(i), line): if re.search(r'V', line): if re.search(r'V'+str(q), line): tro.write(line) else: tro.write(line) When I run the program however, it seems to finish rather quickly and the output file is empty. I still rather inexperienced with Python and programming in general, so any help in getting my program to help will be greatly appreciated.import re import random
tri = open(input("Input File: "))
tro = open(input("Output File: "),'w')
for line in tri.readline():
for i in [1,65,1]: if random.random()>0.5: q = 4 else: q = 3 if re.search(r'CORE\s'+str(i), line): if re.search(r'V', line): if re.search(r'V'+str(q), line): tro.write(line) else: tro.write(line) When I run the program however, it seems to finish rather quickly and the output file is empty. I still rather inexperienced with Python and programming in general, so any help in getting my program to help will be greatly appreciated.import re import random
tri = open(input("Input File: "))
tro = open(input("Output File: "),'w')
for line in tri.readline():
for i in [1,65,1]: if random.random()>0.5: q = 4 else: q = 3 if re.search(r'CORE\s'+str(i), line): if re.search(r'V', line): if re.search(r'V'+str(q), line): tro.write(line) else: tro.write(line) When I run the program however, it seems to finish rather quickly and the output file is empty. I still rather inexperienced with Python and programming in general, so any help in getting my program to help will be greatly appreciated.import re import random
tri = open(input("Input File: "))
tro = open(input("Output File: "),'w')
for line in tri.readline():
for i in [1,65,1]: if random.random()>0.5: q = 4 else: q = 3 if re.search(r'CORE\s'+str(i), line): if re.search(r'V', line): if re.search(r'V'+str(q), line): tro.write(line) else: tro.write(line) When I run the program however, it seems to finish rather quickly and the output file is empty. I still rather inexperienced with Python and programming in general, so any help in getting my program to help will be greatly appreciated.import re import random
tri = open(input("Input File: "))
tro = open(input("Output File: "),'w')
for line in tri.readline():
for i in [1,65,1]: if random.random()>0.5: q = 4 else: q = 3 if re.search(r'CORE\s'+str(i), line): if re.search(r'V', line): if re.search(r'V'+str(q), line): tro.write(line) else: tro.write(line) When I run the program however, it seems to finish rather quickly and the output file is empty. I still rather inexperienced with Python and programming in general, so any help in getting my program to help will be greatly appreciated.import re import random
tri = open(input("Input File: "))
tro = open(input("Output File: "),'w')
for line in tri.readline():
for i in [1,65,1]: if random.random()>0.5: q = 4 else: q = 3 if re.search(r'CORE\s'+str(i), line): if re.search(r'V', line): if re.search(r'V'+str(q), line): tro.write(line) else: tro.write(line) When I run the program however, it seems to finish rather quickly and the output file is empty. I still rather inexperienced with Python and programming in general, so any help in getting my program to help will be greatly appreciated.import re import random
tri = open(input("Input File: "))
tro = open(input("Output File: "),'w')
for line in tri.readline():
for i in [1,65,1]: if random.random()>0.5: q = 4 else: q = 3 if re.search(r'CORE\s'+str(i), line): if re.search(r'V', line): if re.search(r'V'+str(q), line): tro.write(line) else: tro.write(line) When I run the program however, it seems to finish rather quickly and the output file is empty. I still rather inexperienced with Python and programming in general, so any help in getting my program to help will be greatly appreciated.import re import random
tri = open(input("Input File: "))
tro = open(input("Output File: "),'w')
for line in tri.readline():
for i in [1,65,1]: if random.random()>0.5: q = 4 else: q = 3 if re.search(r'CORE\s'+str(i), line): if re.search(r'V', line): if re.search(r'V'+str(q), line): tro.write(line) else: tro.write(line) When I run the program however, it seems to finish rather quickly and the output file is empty. I still rather inexperienced with Python and programming in general, so any help in getting my program to help will be greatly appreciated.import re import random
tri = open(input("Input File: "))
tro = open(input("Output File: "),'w')
for line in tri.readline():
for i in [1,65,1]: if random.random()>0.5: q = 4 else: q = 3 if re.search(r'CORE\s'+str(i), line): if re.search(r'V', line): if re.search(r'V'+str(q), line): tro.write(line) else: tro.write(line) When I run the program however, it seems to finish rather quickly and the output file is empty. I still rather inexperienced with Python and programming in general, so any help in getting my program to help will be greatly appreciated.import re import random
tri = open(input("Input File: "))
tro = open(input("Output File: "),'w')
for line in tri.readline():
for i in [1,65,1]: if random.random()>0.5: q = 4 else: q = 3 if re.search(r'CORE\s'+str(i), line): if re.search(r'V', line): if re.search(r'V'+str(q), line): tro.write(line) else: tro.write(line) When I run the program however, it seems to finish rather quickly and the output file is empty. I still rather inexperienced with Python and programming in general, so any help in getting my program to help will be greatly appreciated.import re import random
tri = open(input("Input File: "))
tro = open(input("Output File: "),'w')
for line in tri.readline():
for i in [1,65,1]: if random.random()>0.5: q = 4 else: q = 3 if re.search(r'CORE\s'+str(i), line): if re.search(r'V', line): if re.search(r'V'+str(q), line): tro.write(line) else: tro.write(line) When I run the program however, it seems to finish rather quickly and the output file is empty. I still rather inexperienced with Python and programming in general, so any help in getting my program to help will be greatly appreciated.import re import random
tri = open(input("Input File: "))
tro = open(input("Output File: "),'w')
for line in tri.readline():
for i in [1,65,1]: if random.random()>0.5: q = 4 else: q = 3 if re.search(r'CORE\s'+str(i), line): if re.search(r'V', line): if re.search(r'V'+str(q), line): tro.write(line) else: tro.write(line) When I run the program however, it seems to finish rather quickly and the output file is empty. I still rather inexperienced with Python and programming in general, so any help in getting my program to help will be greatly appreciated.