Python is high level programming language.
In python, few line of codes. So that, you can learn python easily.
It was developed by Guido van Rossum and released in 1991.
Guido van Rossum
It can be used for developing software and web applications.
Some calculation in python are described here, with some differences-
>>>4+3*10 and >>>(4+3)*10
>>>22/4 and >>>22//4
5.5 5(it gives exact integer value)
-If we want to print any same string more than one time we use *n
Like an Example,
>>>firstName= ”YourTechnicalTeacher “
In Python, white-spaces are most important. White-spaces at the beginning of lines are called Python Indentation.
If you are not using proper indention in python then it gives, following error that is-
IndentationError: unexpected indent
We can also provide indentation after writing the code in Pycharm by selecting the code and press Shift+Ctrl+Alt+L.
What is Pycharm?
Pycharm is IDE used in computer programming and used for python language.
It is developed by JetBrains.
Use of Range() Function in Python:
We can use range() function for a sequence numbers and it provides starting from 0 by default and incremented by 1 and up to -less than 1 value from range() function.
for x in range(5):
for x in range(8,25,4)
I mentioned both result for range functions-
I hope you will understand basics for python and it helps you in interview question and answer. I meet you in next article.