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”
Tag Archives: python loop statements
For Loop
As it says in the header, FOR LOOP is used when we want to execute block of code statements again and again until a condition is met, we can use For loops. To be very specific, to iterate any collections, like a list, tuples, etc. we can use For loops. Example: Let’s understand FOR LoopContinue reading “For Loop”