Must-do problems: Files and Data Formats
75 min ยท Beginner
Need help? Ask a tutor on WhatsApp (opens in a new tab)The judge gives your program only standard input, so these problems read CSV or JSON text with input() and use the same modules you use for files. Parse the text, convert the values, then print the answer. Check each program against the edge cases before you move on.
What you will learn
What you will learn
- Parse CSV text with the csv module, including quoted commas
- Parse and build JSON text
- Convert between CSV and JSON
- Handle invalid JSON without crashing
Sign in to continue this lesson
Create an account to read every lesson, practise with the exercises and keep track of your progress.