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 …

Python Strings 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 …

Python Built-in Methods 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 …

Python Passing-By-Reference vs. Passing-By-Value 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-Catch Each of these try-catch will handle different exceptions. Earlier we have seen exceptions at …

Python Nested Try-Catch 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 …

Python Except Block Read More »

Python Try Block

The python try block is part of python exception handling mechanism. The try block is similar to an if-then-else block. If an error occurs the try block stops executing. These errors are known errors for which we have a try block. They are called exceptions. The try block is to notice the error or exception …

Python Try Block Read More »

Please support us by disabling your adblocker or whitelist this site from your adblocker. Thanks!

turn of adblocker imag