Challenge: CSV Parser
Oppgave
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
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 2. Kapittel 4
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår
Fantastisk!
Completion rate forbedret til 4.76
Challenge: CSV Parser
Sveip for å vise menyen
Oppgave
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
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 2. Kapittel 4
single