Pyhton is a very powerful programming language which has lots of features that can be seen in Java, C++, Perl and many more. If you have used other programming languages to create a program before then trust me, you are going to love Python!
Below is just a really simple program which took me less than a minute to write (I am not that good at typing as compared to writing code so typing has consumed about 30 seconds of the total time).
What this code does is really simple, we first create a new class then create its instance to print out the welcome message on the Command Prompt.
#a class that print out messages
def __init__(self, nm='Joy'):
#print text when the class instance is created.
self.name = nm
print 'Good Morning ',self.name
hello = HelloWorld()
hello = HelloWorld('Ray')
As you can see from above python has removed lots of symbols that appear in other programming languages such as C++ and Java and thus makes our programming works really simple.
Below is the outcome of above program.