Pankaj Kumar

Pankaj Kumar

I have been working on Python programming for more than 12 years. At AskPython, I share my learning on Python with other fellow developers.
Python if else elif Statement

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.…

Python Variables

Python Variables

Variables in Python are an identifier to reference a value in the program. A variable contains the memory location of the object. They allow python programs to access other objects and call their functions or perform other operations. Rules to…

Python Keywords

Python Keywords

Python keywords are reserved words. They are used by python interpreters to understand the program. Keywords define the structure of programs. We can’t use keywords to name program entities such as variables, classes, and functions. How Many Keywords in Python?…