Understanding Python Dictionary

Python has multiple data structures, and Dictionary is one of them. This tutorial will take you through every aspect of the dictionary data structure in Python language.What is a Dictionary in Python?When Python was launched, Dictionary was introduced as an unordered collection of items. However, later with Python 3.7 launch, Dictionary was made an ordered … Read more

Python Strings

Python string is a data structure that holds list or a string of characters. These characters could be a single letter a number symbol or special character Unicode The letters are both lowercase and uppercase which we human can understand. The capital ‘A’ for us is same as lowercase ‘a’The Unicode is a universal IT … Read more

Python Built-in Methods

Earlier you learned about functions and built-in functions. One of the built-in function is print() function. In this article, you will learn about python built-in methods. There are two types of methods in python. One that comes from python modules and built-in methods. The python module will have function definition which you can use after … Read more

Python Mutable vs. Non-Mutable Data Types

In this article, you will learn about python mutable vs. non-mutable date type and how they affect passing of arguments to the function. In the previous article, you learned about passing arguments by reference and passing arguments using values. The choice of passing arguments depends on the data type. Mutability is the ability of variable … Read more

Python Passing-By-Reference vs. Passing-By-Value

In earlier articles, you have learned about python functions and their types. In this article, you will learn about passing-by-reference vs. passing-by-value in python. This concept is already well known in many programming languages.We will understand the difference between passing-by-reference vs. passing-by-value with respect to python programming language.Before we begin, you must understand how variables … Read more

Python Data Structures Overview

In this article, you will get python data structures overview. Python data structures is arranging abstract data types to increase their accessibility and efficiency. Python comes with basic data types such as integer, float and abstract data types like list, dictionaries, set and so onAlmost everything can be done using python basic data types, which … Read more

Python Nested Try-Catch

In earlier lessons, you learned about try-catch-else-finally blocks. In this article, you will learn that we can put a try-catch block inside another try-catch block. Therefore, there can be more than one level of python nested try-catch blocks.Understanding Nested Try-CatchEach of these try-catch will handle different exceptions. Earlier we have seen exceptions at the same … Read more

Python Exception Handling With Else

The else block in python is also part of the exception handling. The try block when finds an error, jumps to the catch block. However, we want some behavior when the try block itself is successful.The response code when the try block is successful is written in the else block. Note that the else block … Read more

Python Except Block

The python except block is the catch block in the exception handling mechanism. Any error or exception caught in the try block is caught by the python except block and response code is executed.In the previous article, you learned about the try block and in the article, we will explore the except block in details.Catching … Read more

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.

Exit mobile version