Built-in Methods

Assertions in Python

Let us learn about a commonly used testing and debugging technique called Assertions in Python. We will learn what assertions are, why they are used, when not to use them, and their syntax. So let’s get started. What are Assertions in Python? Assertions in Python are statements that are used to assert a condition on …

Assertions in Python Read More »

The Dot Notation in Python

Let’s discuss the dot notation in Python today. If you have even a little experience with coding in Python, or if you’ve been following our AskPython blog, you should have come across the term Object-Oriented Programming. It is a programming paradigm based on the concept of real-world Objects. Each object has certain attributes that describe …

The Dot Notation in Python Read More »

Using the Python globals() function

Hey, folks! In this article, we talk about the Python globals() function in detail. So, let us get started. What is Python globals() function? Python globals() function enables us to access the list of all the global variables and their values in the particular code throughout the program. The globals() function represents a Python dictionary …

Using the Python globals() function Read More »

What is Python reversed() function?

Hello, hope you all are doing well! In this article, we will be understanding the working of an in-built function — Python reversed() function. Working of Python reversed() function Python serves us with a huge count of in-built functions to deal and manipulate the data. One such function is Python reversed() function. Python reversed() function …

What is Python reversed() function? Read More »

What is Python compile() function?

Hey, folks! In this article, we will be focusing on Python compile() function. Understanding the Working of Python compile() function Let me take you all back to the system/OS programming from where we deal with the concept of macros and functions. Macros are basically some pre-defined code blocks that get executed with the current source …

What is Python compile() function? Read More »