Challenge: CSV Parser
Opgave
Swipe to start coding
Write a function that takes a string of comma-separated values, trims spaces from each value, and prints each value on a new line.
- Split the input string
csvLineinto parts using the comma character. - Trim spaces from each part.
- Print each trimmed value on a new line.
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 2. Kapitel 4
single
Spørg AI
Spørg AI
Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat
Suggested prompts:
Can you explain this in simpler terms?
What are the main benefits or drawbacks?
Can you give me a real-world example?
Fantastisk!
Completion rate forbedret til 4.76
Challenge: CSV Parser
Stryg for at vise menuen
Opgave
Swipe to start coding
Write a function that takes a string of comma-separated values, trims spaces from each value, and prints each value on a new line.
- Split the input string
csvLineinto parts using the comma character. - Trim spaces from each part.
- Print each trimmed value on a new line.
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 2. Kapitel 4
single