File Operations in Python

So far in our journey through Python programming language we’ve been learning how to write programs and communicate with CPU using conditional execution, functions, and iteration. We’ve learned how to utilize Main Memory and CPU. These two elements in computer architecture is were magic happens or in other words where our software works and runs.
But if you recall from our hardware architecture discussions, once computer is out of power our program vanishes from CPU and main memory. The programs aren’t stored anywhere. So now our main focus is to learn how to utilize secondary memory (HDD, USB Memory stick). Generally any kind of memory that is used for storing data. In secondary memory the data is not erased even when the power is turned off. The focus for now will be to learn how to:
-          Navigate in Python trough directories and files
-          Call specific files using user input,

-          Reading and writing text files 

Nema komentara:

Objavi komentar