SyntaxError ---- (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape

13 views Asked by At

Something went wrong with my code:

ERROR: input_file = "C:\Users\khanh\OneDrive[03] Coding Project\4_HSG\04_HSGTPHCM23\TBC\TBC.IN
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape

CODE: with open(input_file, "r") as infile: lines = infile.readlines() ds_a = list(map(int, lines[1].strip().split())) length = len(ds_a)

I didn't try anything

0

There are 0 answers