Python by Swaroop C H - HTML preview

PLEASE NOTE: This is an HTML preview only and some elements such as links or page numbers may be incorrect.
Download the book in PDF, ePub, Kindle for a complete version.

Output

1 one of the leading Perl6/Parrot hackers and the author of the amazing 'Beginning Perl' book $ python helloworld.py Hello World

 

If you got the output as shown above, congratulations! - you have successfully run your first Python program.

In case you got an error, please type the above program exactly as shown and above and run the program again. Note that Python is case-sensitive i.e.print is not the same asPrint - note the lowercasep in the former and the uppercaseP in the latter. Also, ensure there are no spaces or tabs before the first character in each line - we will see why this is important later.