Python Basics

This tutorial category contains all the tutorials related to Python Basics.

Directory in Python

In this tutorial, we would learn about the Directory in Python. In Directories, we can store files and subdirectories. Directories help us to manage a large amount of files of our project. There is an os module in Python which provides us with methods to work with Directories. Get Current Directory: Here will we will learn how we can get the

Directory in Python Read More »

Functions in Python

In this tutorial, we would learn about Functions in Python. A function is a block of code which allow us to reuse code. Python provides us rich collection of in-built functions like print(), mkdir(), rmdir() etc. which we can use by just calling them. In Python, we can create our own functions. This kind of functions known

Functions in Python Read More »

Comments in Python

In this tutorial, we will learn about Comments in Python. Comments are not used to perform any function in the program but they really useful for developers. Developers can write comments with variables and functions to remember their working (purpose) in the program. One important thing to mention comments doesn’t put any impact on the

Comments in Python Read More »

String in Python

In this tutorial, we would learn about String in Python and Different String methods in Python. A string is a collection of characters. A String can contain alphabets, numbers or special characters. For example, the name of a person or address of a location can be store in a String. How to create a String in

String in Python Read More »

Tuple in Python

In this tutorial, we will learn Tuple in Python. In the last tutorial, we learned about List. Tuples are same as Lists except for one difference that we cannot change elements of tuple after assigning them. In the case of the list we know we can change List elements very easily. It means you can say

Tuple in Python Read More »

List in Python

In this tutorial, we will learn about List in Python. The list is similar to arrays except one difference List can contain a heterogeneous type of data(Integer, Strings and Object) in a single list. In list, we add list element according to the index number. The first element of the list will always save on 0

List in Python Read More »

Scroll to Top