What is python? What is python syntax? what is python interpreter? What is the python interpreter? what is variable in Python?
Welcome to you the exciting world of programming. Programming language is one of the best skill which high demand from few years. Today I am going to talk about Python programming language, which is best, easy & attractive programming language.
What is Python?
Python is a widely used high-level programming language created by
Guido van Rossum in the year 1980s.
It's make possible for programmers to develop applications rapidly.
Python interpreter - Codes that where we write in Python have to be interpreted by a special program known as the Python interpreter, which we’ll have to install before we can code, test and execute our Python programs.
Why we Learn Python?
If you are new to programming, Python is a great place to start. One of the key features of Python is its simplicity, making it the ideal language for beginners to learn. There are a large number of high level programming languages available, such as C, C++, and Java.
The good news is all high level programming languages are very similar to one another. But Python is most reliable & simple programming language.
Installing the Interpreter -
Before we can write our first Python program, we have to download the appropriate interpreter for our computers.
To install the interpreter for Python 3, go to https://www.python.org/downloads/.
The correct version should be indicated at the top of the webpage. According to your operating system (Windows, Mac OS, or Linux) & the processor (32-bit vs 64-bit) you can install the suitable version for Python 3 and the software will start downloading.
Once you have successfully installed the interpreter, you are ready to start coding in Python.
Write a first program -
To write a first program in the editor as
print ("Hello World") after written this program save the file with .py extension and run the module you will be see this output
Hello World
Some basics of Python -
1. What are variables?
Variables are names given to data that we need to store and manipulate in our programs.
For example - Suppose you need to write the date of birth of your friends, to do so where you store the data value (date of birth)? You will give any name as a variable that is BirthDate or DOB as your wish. then
BirthDate = 20
Here BirthDate - is Variable
& 20 - is value of the variable.
After you define the variable BirthDate, your program will allocate a certain area of your computer's storage space to store this data.
Note - A variable name in Python can only contain letters (a - z, A - B), numbers or underscores (_). However, the first character cannot be a number. Hence, you can name your variables BirthDate, Birth_Date or BirthDate2 but not 2BirthDate.
2. What is Assignment Sign?
BirthDate = 20
Here = sign is known as an assignment sign. It means we are assigning the value on the right side of the = sign to the variable on the left.
3. Basic Operators in Python -
Basic operators in Python include +, -, /, *, < & > which represent addition, subtraction, division, multiplication, less than & greater than etc.
Conclusion -
I hope you will be clearly understand that what is python?, what is interpreter & what is variables. In next series you will know about that what is Data types in the python. If you have any question you can ask me in comment.
0 Comments