Challenge: CSV Parser
Tâche
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.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 2. Chapitre 4
single
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion
Suggested prompts:
Can you explain this in simpler terms?
What are the main benefits or drawbacks?
Can you give me a real-world example?
Génial!
Completion taux amélioré à 4.76
Challenge: CSV Parser
Glissez pour afficher le menu
Tâche
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.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 2. Chapitre 4
single