Wiki

root/cobra/trunk/HowTo/100-PrintHelloWorld.cobra

Revision 2127, 276 bytes (checked in by Chuck.Esterbrook, 3 years ago)

Take out is shared on def main in the how-to's.

  • Property svn:eol-style set to native
Line 
1"""
2This is the infamous "Hello, world." example.
3
4And this text you are reading right now is the "doc string" for the whole
5program. You can also put doc strings underneath classes, class variables,
6methods and properties.
7"""
8
9class Hello
10
11    def main
12        print 'Hello, world.'
Note: See TracBrowser for help on using the browser.