Reduce is a functionality that is introduced in Python that will take 2 elements at a time from either list or tuple and the result of that operation is again taken with next element in the list till we arrive at a solid answer and the list or tuple traversing is complete. Let’s understand thisContinue reading “Reduce”
Tag Archives: python modules
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”