Hello world ! in Python

Python is an easy to learn, powerful programming language. It has efficient high-level data structures and a simple but effective approach to object-oriented programming. Python’s elegant syntax and dynamic typing, together with its interpreted nature, make it an ideal language for scripting and rapid application development in many areas on most platforms. (read all...)

Python installation

Debian

debarm:~# apt-get update
debarm:~# apt-get install python

OpenWRT

root@OpenWrt:~# opkg update
root@OpenWrt:~# opkg install python

Hello world example

This is the “Hello world !” source code example.

print "Hello world !"

Save it with in hello.py file then run it typing:

# echo "print \"Hello world !\"" > hello.py
# python hello.py
Hello world !
 
tutorial/python.txt · Last modified: 2010/07/15 13:27 by tanzox
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki