V
V
Vsumin2019-11-02 22:42:26
Python
Vsumin, 2019-11-02 22:42:26

Result of Parsing to transform to a readable format?

Good evening,
Can you tell me how to convert such output when parsing into a readable format? For example, I want to get as a result:
ACES Direct | zakelijk Gratis retour binnen 60 dagen. - € 1.700.05 It is
necessary to display the information in two columns and remove the extra translation to a new line.
Output type when parsing list.

('\n\nACES Direct | zakelijk\n Gratis retour binnen 60 dagen.\n', '\n€ 1.700,05')
('\n\nCentralpoint | zakelijk\n Uw zakelijke Apple leverancier\n', '\n€ 1.748,99')
('\n\nEP.nl\n Altijd de juiste keuze en uitstekende services!\n', '\n€ 1.749,-')
('\n\nInformatique\n Al 8 jaar computerwinkel van het jaar !\n', '\n€ 1.749,-')

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Kuts, 2019-11-02
@Vsumin

str1 = ('\n\nACES Direct | zakelijk\n Gratis retour binnen 60 dagen.\n', '\n€ 1.700,05')

print(str1[0].replace('\n',''), '-', str1[1].replace('\n',''))

ACES Direct | zakelijk Gratis retour binnen 60 dagen. - € 1.700.05

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question