From 0e6152a741ebfec3fa594d3197a207a2414d95c8 Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Wed, 18 Nov 2009 20:22:50 -0500 Subject: [PATCH] added python version of hello_world --- basics/hello_world.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 basics/hello_world.py diff --git a/basics/hello_world.py b/basics/hello_world.py new file mode 100644 index 0000000..3c3ffc7 --- /dev/null +++ b/basics/hello_world.py @@ -0,0 +1,18 @@ +from __future__ import print_function +import sys +import curses + + +def hello_world(stdscr): + stdscr.addstr(0, 0, "Hello World !!!") + stdscr.refresh() + stdscr.getch() + + +def main(): + curses.wrapper(hello_world) + return 0 + + +if __name__ == '__main__': + sys.exit(main())