root/cobra/trunk/HowTo/100-PrintHelloWorld.cobra
| Revision 2127, 276 bytes (checked in by Chuck.Esterbrook, 3 years ago) | |
|---|---|
|
|
| Line | |
|---|---|
| 1 | """ |
| 2 | This is the infamous "Hello, world." example. |
| 3 | |
| 4 | And this text you are reading right now is the "doc string" for the whole |
| 5 | program. You can also put doc strings underneath classes, class variables, |
| 6 | methods and properties. |
| 7 | """ |
| 8 | |
| 9 | class Hello |
| 10 | |
| 11 | def main |
| 12 | print 'Hello, world.' |
Note: See TracBrowser
for help on using the browser.



