Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- siriusb @arch ~/tmp $ echo -e 'print "Hello. I am a python program."\nname = raw_input("What is your name? ")\nprint "Hello there, " + name + "!"' > hello.py
- siriusb @arch ~/tmp $ python2 hello.py
- Hello. I am a python program.
- What is your name? alfa
- Hello there, alfa!
- siriusb @arch ~/tmp $ python2
- Python 2.7.3 (default, Dec 22 2012, 21:14:12)
- [GCC 4.7.2] on linux2
- Type "help", "copyright", "credits" or "license" for more information.
- >>>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement