Python Directory management

In this article, We are going to learn about files and directory management in python. Different methods available in python os path module. We are going to cover topics like, How to create a folder using python, How to rename a directory using python, Listing all directories and working with them. What is directory/folder management … Read more Python Directory management

Python File Handling I/O – Reading and Writing files in python

In this article we are going to learn about file handling in python. How to open a file using python, Different python methods to Read and write a content in a file. Close the file once we are done with the editing. Also we are going to see other methods available in python read/write mode. … Read more Python File Handling I/O – Reading and Writing files in python

function arguments in python

Introduction to function arguments in python: In python, Inputs given to the function are known as function arguments or parameters. Depending upon how we have defined the function, There are four basic types of arguments and in this article we are going to learn each the argument type in detail. If you don’t know the … Read more function arguments in python

Functions in python

Introduction to python functions: In this article, We are going to learn what is python function? Different types of python functions. How to write and call python function in a program. So let’s get started with the definition of python function. What is python function? Function in python is a collection of related statements which … Read more Functions in python

Sets in python

Introduction to sets in python: In this tutorial we are going to learn python Set data type. So let’s first start with the definition of python set data type. It is an unordered collection of unique (non duplicates) immutable elements or items. Here an individual data item of set is called as an element or … Read more Sets in python

String slicing and indexing in python

What is slicing and indexing in python? To understand string slicing and indexing let’s first understand what is the definition of string? So basically the String is a sequence of characters which consists of letters, numbers, symbols and white spaces. Now since strings is a sequence. In python we have a provision, using which we can … Read more String slicing and indexing in python

String concatenation and replication in python

Introduction to strings in python: A string is a sequence of characters that include letters, numbers, and symbols like punctuation marks, etc. In simple words, a string is the data in text format. Strings data type also contains white spaces in it. Text data is one of the most used data types in our day … Read more String concatenation and replication in python

Identifiers and keywords in Python

What is meant by Identifiers and keywords in python? Both of these terms are related to naming conventions in python programming. In python code individual names given to the entities like variable, class, method etc. are known as identifiers. There are few words which are kept reserved by python language, which can’t be used as … Read more Identifiers and keywords in Python

Comments and indentation in python

How to add comments in python code: Comments are basically non-executable lines added in your program. While actual execution of program these commented lines are ignored by interpreter. Every programming language has its own way of inserting non-executable lines in the code. This provision of inserting comments in program is highly used in daily programming … Read more Comments and indentation in python