Rerun code if file doesn't exist is not working
Rerun code if file doesn't exist is not working Question: I have this code to read a file def collect_exp_data(file_name): data = dict() while True: try: with open(file_name, ‘r’) as h: break for line in h: batch, x, y, value = line.split(‘,’) try: if not batch in data: data[batch] = [] data[batch] += [(float(x), float(y), …