Category: Learn Python

Python Methods vs Functions

We have only methods in Java and only functions in C but in Python, we have both functions and methods. They look and work alike and this raises a lot...

Python Syntax with Examples

Like any other programming language, Python has a set of rules. These rules define how to write a program in that language. It also explains how the interpreter understands the...

Python Repr() with Examples

In this article, we will talk about the repr() function. The name “repr” stands for representation. According to official Python documentation, the repr() function is used to get a printable...