session.txt

yotam@durini:l4:59> cat ex1.py
#!/usr/bin/env python
#
# Just a comment - Python will ignore it
#
import sys
school = "Keshet"
head = school[:2]
print "head=", head
sys.exit(0)
yotam@durini:l4:60> ls -l ex1.py
-rw-r--r--  1 yotam yotam 146 2006-02-08 20:33 ex1.py
yotam@durini:l4:61> ./ex1.py
bash: ./ex1.py: Permission denied
yotam@durini:l4:62> chmod +x ex1.py
yotam@durini:l4:63> ls -l ex1.py
-rwxr-xr-x  1 yotam yotam 146 2006-02-08 20:33 ex1.py
yotam@durini:l4:64> ./ex1.py
head= Ke
yotam@durini:l4:65>

Generated by GNU enscript 1.6.4.