Topic Practice · Intermediate
File Handling problems
50 problems: 22 Easy, 18 Medium, 10 Hard.
✓1. Write and Read
4 test casesEasy✓2. Count Lines
4 test casesEasy✓3. Append Lines
4 test casesEasy✓4. Sum From a File
4 test casesEasy✓5. Copy in Upper Case
4 test casesEasy✓6. Missing File
4 test casesEasy✓7. Write Many Lines at Once
4 test casesEasy✓8. Only the First Line
4 test casesEasy✓9. Length of Every Line
4 test casesEasy✓10. Does the File Exist?
4 test casesEasy✓11. Write Two Lines
4 test casesEasy✓12. Characters in a File
4 test casesEasy✓13. readlines() as a List
4 test casesEasy✓14. w Replaces the File
4 test casesEasy✓15. Append and Count
4 test casesEasy✓16. Words in the File
4 test casesEasy✓17. Print With Line Numbers
4 test casesEasy✓18. Largest Number in a File
4 test casesEasy✓19. Copy in Small Letters
4 test casesEasy✓20. Is the Word in the File?
4 test casesEasy✓21. Read the First Few Characters
4 test casesEasy✓22. Count Empty Lines
4 test casesEasy✓23. Words in a File
4 test casesMedium✓24. Longest Line
4 test casesMedium✓25. CSV Average
4 test casesMedium✓26. Filter a CSV
4 test casesMedium✓27. Reverse a File
4 test casesMedium✓28. Number the Lines
4 test casesMedium✓29. Search a File
4 test casesMedium✓30. Save as JSON
4 test casesMedium✓31. The Last k Lines
4 test casesMedium✓32. Write and Read a CSV
4 test casesMedium✓33. Read a CSV by Column Name
4 test casesMedium✓34. Find and Replace in a File
4 test casesMedium✓35. Sort a File
4 test casesMedium✓36. Three Most Common Words
4 test casesMedium✓37. Tab-Separated File to a Table
4 test casesMedium✓38. File Size in Bytes
4 test casesMedium✓39. Jump Around With seek()
4 test casesMedium✓40. Write a CSV With DictWriter
4 test casesMedium✓41. Most Common Letter in a File
4 test casesHard✓42. Merge Two Files
4 test casesHard✓43. Grade Report
4 test casesHard✓44. Remove Duplicate Lines
4 test casesHard✓45. Read a Config File
4 test casesHard✓46. Column Totals
4 test casesHard✓47. Split Into Two Files
4 test casesHard✓48. Update a JSON File
4 test casesHard✓49. Log File Report
4 test casesHard✓50. Join Two CSV Files
4 test casesHard
4 test casesEasy✓2. Count Lines
4 test casesEasy✓3. Append Lines
4 test casesEasy✓4. Sum From a File
4 test casesEasy✓5. Copy in Upper Case
4 test casesEasy✓6. Missing File
4 test casesEasy✓7. Write Many Lines at Once
4 test casesEasy✓8. Only the First Line
4 test casesEasy✓9. Length of Every Line
4 test casesEasy✓10. Does the File Exist?
4 test casesEasy✓11. Write Two Lines
4 test casesEasy✓12. Characters in a File
4 test casesEasy✓13. readlines() as a List
4 test casesEasy✓14. w Replaces the File
4 test casesEasy✓15. Append and Count
4 test casesEasy✓16. Words in the File
4 test casesEasy✓17. Print With Line Numbers
4 test casesEasy✓18. Largest Number in a File
4 test casesEasy✓19. Copy in Small Letters
4 test casesEasy✓20. Is the Word in the File?
4 test casesEasy✓21. Read the First Few Characters
4 test casesEasy✓22. Count Empty Lines
4 test casesEasy✓23. Words in a File
4 test casesMedium✓24. Longest Line
4 test casesMedium✓25. CSV Average
4 test casesMedium✓26. Filter a CSV
4 test casesMedium✓27. Reverse a File
4 test casesMedium✓28. Number the Lines
4 test casesMedium✓29. Search a File
4 test casesMedium✓30. Save as JSON
4 test casesMedium✓31. The Last k Lines
4 test casesMedium✓32. Write and Read a CSV
4 test casesMedium✓33. Read a CSV by Column Name
4 test casesMedium✓34. Find and Replace in a File
4 test casesMedium✓35. Sort a File
4 test casesMedium✓36. Three Most Common Words
4 test casesMedium✓37. Tab-Separated File to a Table
4 test casesMedium✓38. File Size in Bytes
4 test casesMedium✓39. Jump Around With seek()
4 test casesMedium✓40. Write a CSV With DictWriter
4 test casesMedium✓41. Most Common Letter in a File
4 test casesHard✓42. Merge Two Files
4 test casesHard✓43. Grade Report
4 test casesHard✓44. Remove Duplicate Lines
4 test casesHard✓45. Read a Config File
4 test casesHard✓46. Column Totals
4 test casesHard✓47. Split Into Two Files
4 test casesHard✓48. Update a JSON File
4 test casesHard✓49. Log File Report
4 test casesHard✓50. Join Two CSV Files
4 test casesHard