MC logo

Hello, World!


CS 233 Python Lecture Examples

 Download >>
#!/usr/bin/python
# Say hello, world.
print "Hello, world!"

Python uses # to mark comments, as most other Unix-based scripting languages.

Python is line-oriented: Statements are not terminated by a semicolon, but by the end of the line. This is similar to shell scripting languages, either Unix shell scripts, or DOS BAT files.

>>