Thursday 23 January 2014

Learning Python For Beginners



 Python is a very powerful & programming language. It is used for a variety of application one of the most notable users of the Python programming language is NASA. Python  is an easy language to learn when you compare it to other languages like C and C++. This makes it a very popular choice especially amongst people who have never programmed before.It only takes a few minutes to write python code and you'd be surprised how fast you can pick it up.

Some python code examples written in IDLE python's interactive shell.

>>> print('Hello out there big wide world')
Hello out there big wide world
>>> 


At the Python interpreter we have used the "print" command to simply print out some data "Hello out there big wide world" Easy!!!

Now lets use python as a calculator:

>>> print(2 + 2)
4
>>> 


Something a little different here. Can you guess?

 >>> print('Hello new python learner ' * 2)
Hello new python learner Hello new python learner
>>>


We first print the string: 'Hello new Python learner' and we instruct our program to multiply it twice, * 2. This multiplication operator * then prints our line twice!

Python is not only a fun programming language to learn - but as previously stated it is an easy entry point for beginners wishing to become proficient in computer programming. Once more once you've learned the basics of the Python language learning any other language after that will be a snap!


No comments:

Post a Comment