Wednesday, January 23, 2013

How could you comment out block of code in Python?

Use triple-quoted strings.

#!/usr/bin/python
   
'''
print "This is a \
multiline \
comment.";
'''

No comments :