how to separate this line, I need just the numbers
PD-1358 393;
I would like to increment a variable X and a Y
X Y
PD-1358 393;
I am using the CSV command (csv_file, delimiter='-')
but I can not separate these numbers.
Can anybody help me?
import csv
with open('circulo.txt') as csv_file:
csv_reader = csv.reader(csv_file, delimiter='-')
line_count = 0
for row in csv_reader:
print(f'\t {row[0]}')
For the moment I've only been able to separate this part