© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2021
A. ElumalaiIntroduction to Python for Kids https://doi.org/10.1007/978-1-4842-6812-4_15

15. Python and Files

Aarthi Elumalai1  
(1)
Chennai, Tamil Nadu, India
 

In the previous chapter, we learned how to create real-world objects in Python using classes. We learned how everything was an object in Python. Then, we learned how to create classes in Python and use those classes to create similar objects without writing too many lines of code.

In this chapter, let’s look at file handling in Python. We’ll look at creating, reading, writing, and manipulating the files in your system right from inside your Python code.

Why files?

I can hear you groaning. Yet another boring ...

Get Introduction to Python for Kids: Learn Python the Fun Way by Completing Activities and Solving Puzzles now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.