Python

July 1, 2022

Python Keywords

Python keywords are reserved words that have special meanings and are used to define the syntax and structure of the Python language. These keywords cannot be used as variable names or other identifiers because they are reserved for specific purposes in the language. The number of keywords might change in different python versions. There are 35 keywords in Python 3.10.4 List of Python Keywords: Since the keywords for a specific version might change, you can always get a list of keywords using below code: Soft Keywords: Some identifiers are only reserved under specific contexts. These are known as soft keywords. The […]
June 29, 2022

How to print without a Newline in Python?

In Python whenever you print any statement, a newline is added by default. And, people coming from other languages find it weird and want to know how to avoid this newline. This happens because in Python, Newline is added as a default parameter to print() function. Let’s see some examples below and how can we use print function without newline being added to it. Now if you want to use the print function without printing unnecessary newline, you can pass space as the “end” parameter. An example is given below. This solution depends on the python version you are using and […]
May 30, 2022

Why Python Programming Language?

Python is one of the most popular programming languages available today. At the time of writing this article, Python is ranked #1 language worldwide. Python is a very easy-to-learn high-level programming language. The first version of Python (i.e. v 0.9.0) was released in 1991 by Guido van Rossum. Because of its applicability in almost all fields, Python can be compared to shell script as well a C programming language. Python is a real programming language. Python is simple to use, offering much more structure and support for large programs than shell scripts or batch files can offer. On the other hand, […]