Thursday, 23 January 2014
Learning Python For Beginners
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)
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!