First programme in Python
In My views Python is simplest language to enter in the Programming World.
It has very simple Syntax ,there is no semicolon and brackets are Required.
And also you should have to remember that Python is fully "Object Oriented" and a strong and Powerful language . In Linux python is already installed and
Window users see here to see how to install and compile.
now lets started with its First Programme .
It has very simple Syntax ,there is no semicolon and brackets are Required.
And also you should have to remember that Python is fully "Object Oriented" and a strong and Powerful language . In Linux python is already installed and
Window users see here to see how to install and compile.
now lets started with its First Programme .
Type Python on terminal(for linux users)
root@bt:~#python
print "Hello kushagra"
print "Hello kushagra"
Hello kushagra
2+8
10
a=2
b=8
c=a+b
print c
10
2+8
10
a=2
b=8
c=a+b
print c
10
Eh! Easy naa :)
Now we should start by writing scripts in Python .
open any text Editor and just write
print "Hello Kushagra"
and save it as Hello.py on Desktop
now open your terminal by cd command go to your Desktop
output:
root@bt:~#cd Desktop
root@bt:~/Desktop# python Hello.py
Hello Kushagra
root@bt:~/Desktop#
Happy programming .
Now we should start by writing scripts in Python .
open any text Editor and just write
print "Hello Kushagra"
and save it as Hello.py on Desktop
now open your terminal by cd command go to your Desktop
output:
root@bt:~#cd Desktop
root@bt:~/Desktop# python Hello.py
Hello Kushagra
root@bt:~/Desktop#
Happy programming .
No comments:
Post a Comment