Answer the question
In order to leave comments, you need to log in
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
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',''))
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question