Advertisement
siriusb

python2 gyakorlo pelda

Mar 16th, 2013
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.45 KB | None | 0 0
  1. 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
  2. siriusb @arch ~/tmp $  python2 hello.py
  3. Hello. I am a python program.
  4. What is your name? alfa
  5. Hello there, alfa!
  6. siriusb @arch ~/tmp $  python2
  7. Python 2.7.3 (default, Dec 22 2012, 21:14:12)
  8. [GCC 4.7.2] on linux2
  9. Type "help", "copyright", "credits" or "license" for more information.
  10. >>>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement