Files and Directories

Python provides functions to write / read files and operations like reading contents from the directory. These functions play a trivial role as most of the programs involves reading files or directories. Let’s discuss few functions related to this. File Object – First step to read / write files in Python is using File object.Continue reading “Files and Directories”

Functions Again

ArgumentsConsider our previous function that was created that takes two parameters, num1 and num2. So, while calling the function we need to pass the same number of parameters i.e., if the function definition has two parameters, we need to pass two values, if the function definition has three parameters, we need to pass three values.Continue reading “Functions Again”

Design a site like this with WordPress.com
Get started