Tuesday 7 January 2014

Write some code in Python

We are going to write our first program in python, before we write our we have to know some thing, first of all we need a python software or python shell or python IDE. Click Here to download python shell.

Install it like other software .do the following stuff

1.Go to start menu
2.All program
3.clickpython 3.3
4.Then click python Idle.

There write the following Code

>>>3+4
7
>>>3
3
>>>“Python is really cool!”
'Python is really cool!'
>>> name = “Ken Lambert”
>>> name
'Ken Lambert'
>>> “Hi there “ + name
'Hi there Ken Lambert'
>>> print 'Hi there'
Hi there
>>> print “Hi there”, name
Hi there Ken Lambert

We will Discuss all those thing later. To quit the Python shell, you can either select the window’s close box or press the Control+D key combination.

1 comment:

  1. amazing write , keep posting and if you are intresting in big data coder and code developer then checkout java classes in satara

    ReplyDelete