Python was initially developed by Guido Van Rossum in 1991, at NRI (Netherlands Research Institute). When Guido originally developed python, he wanted to name it in such a way that made people intrigued and shocked. At that time, he was a big fan of the British Comedy Series called Monty Python’s Flying Circus and therefore, named the language Python.
Let’s have a look at some of the basics of Python-
Modules in Python are external codes that we can import into our programs and further complete the assigned work. The code in these modules is already in its best form. It defines various functions, variables, etc. There are two types of modules- Built-in Modules and External modules. Built-in Modules are those modules that are already present in Python while external modules are those modules that have to be download from the internet using PIP.
Comments are those lines in a python program that are ignored by the interpreter. These comments are the texts, that a programmer does not want to execute. These comments can be used to indicate the steps, what is being done in the program, adding notes for future reference, or, basically anything. Comments are of two types – Single-Line Comments and Multi-Line Comments.
Single-Line Comments are those comments which are written in a single line only. We write them by using the # symbol. For
Multi-Line Comments are those comments which are written in multiple lines. We can write them by using ” three double inverted commas in the beginning and at the end of the comment.
Print Statement or Print Function ()
The Print () in python is one of the most necessary and easy functions to learn. This statement is used to display the text written in the brackets. Here, print is a keyword which means that the text in the brackets is to be printed. It is also very important to put the brackets and double inverted commas correctly when using the print function. Now, whatever is inside these commas will be printed at the time of the output. It can be anything like a number, a string, a letter, etc.