Python is a high-level, interpreted, general-purpose programming language. which is used in computer as a programming language.it is used to build websites, software, automatic works process code and data analysis process.
It is used in purpose like in hacking field software development in this growing want python is one of the growing language of all software which is user friendly to the users so in this we are going to see how to start python
Requirement that we need to learn python
We need a laptop which may be 64 bit or 32 bit need to download load python required version To download python
Click here.
Next we require a software to run python which is called IDE like Jupiter note book,pycham, visual studio and etc.
Windows we can use terminal to check the python program but IDE is very easy to run program and shows output in terminal
Which helps to check the programs output
Python first program.
Print statement
Print ("Hello world")
In terminal output will be
Hello world
Why this print statement is used.and where to use?
Print statement is used to print a sentence,word,etc..
Ex:-
We use to play games it asks you
Enter your name this sentence is print statement.
But you may have dought how our name is entered in that place and how it's store a name for long time.
It is a called as input statement & variables
Input statement.
Code
Print ("Enter your name")
Input ()
So you can see a enter space appear
But you can ask where it store this storing process is stored in variable.
variable
what is variable?
Available is a container which stores a data or a value
A=(when equal is added it is a variable before starting after program if it is inside the program it is a function of arithmetic)
Ex:-
Print ("Enter your name")
A=input ()
Print (A)
Output will be like
Enter your name
__________so you should enter your name here.
Ex:-if I enter friends output will be friends to looks little bit of advance the same
Print ("Enter your name")
A=input ()
Print ("your name is "(A))
The question will be like enter your name and you should enter your name if you enter your name as friends
The output will be like your name is friends.
In this we are using print statement variables and input function which is simple and even it helps to make a complicated program so first we can focus on basics on python after that we go for advance program
Will be continued ...
stay with us and learn with use
Follow us to learn python
Comments
Post a Comment