Posts From Python Programming

Python is one of the most widely used programming languages. It’s getting a lot of popularity these days because of so many Python frameworks in IoT, Machine Learning, Deep Learning, and Artificial Intelligent space.

These Python Tutorials will help you in getting mastery over the Python Programming. The tips and tricks shared by us will enable you to write pythonic code with high performance, reusability, readability, and maintainability.

Python if else elif Statement

Python if-elif-else statement is used to write a conditional flow code. The statements are in the order of if…elif…else. The ‘elif’ is short for ‘else if’ statement. It’s shortened to reduce excessive indentation. The else and elif statements are optional. There can be multiple elif statements. We can have only one else block for an […]

Python return Statement

The python return statement is used in a function to return something to the caller program. We can use the return statement inside a function only. In Python, every function returns something. If there are no return statements, then it returns None. If the return statement contains an expression, it’s evaluated first and then the […]

Python pass Statement – pass Keyword in Python

Python pass statement is a no-operation statement. It’s used to create empty code blocks and empty functions. Python pass Statement Examples Let’s look at some examples of pass statement. 1. pass statement in a code block Let’s say we have to write a function to remove all the even numbers from a list. In this […]

Python Functions

A function is a block of code with a name. We can call a function by its name. The code inside a function only runs when it’s called. A function can accept data from the caller program, it’s called as function parameters. The function parameters are inside parentheses and separated by a comma. A function […]

Python Operators

Operators are used to performing a specific operation on variables and values. Python has a lot of operators that are either keywords or special characters. The values or variables on which these operators work are called operands. Types of Python Operators Python operators can be classified into the following categories. Arithmetic Operators Logical Operators Comparison […]

Python Data Types

Python is an object-oriented programming language. Every variable in Python is an instance of some class. There are many pre-defined data types in Python. We can create our own classes to define custom data types. What are the Popular Data Types in Python? Some of the popular data types in Python are: Numbers – int, […]