Pickles is one of the most important feature of Python. Pickle in Python is a representation of an object as a string of bytes. These bytes can be saved in a database, different file path or altogether into a different computer. Later, these bytes can be reassembled to form the original Python object which isContinue reading “Pickles”
Tag Archives: modules in python
Exceptions
While we are trying to access files via python, if there are any issue, it will raise an IOError. There are many scenarios where we can get IOError. ❑ If we attempt to open for reading a file that does not exist, it will throw an IOError.❑ If we attempt to create a file inContinue reading “Exceptions”
Modules
Modules are the logical unit that comprises of functions that can be reused in other multiple files. Consider module as the dll or the external files which can be referred in the file. Let’s see how to create a module. Create a new file called “modules.py” Add a function as shown below, This function justContinue reading “Modules”