Paolo Pantaleo wrote:
I just started learning python (i think it is great). Now i have the
following problem:
How can i comment 10 lines of code in a shot? That is, how can i add a
# at the begenning of a range of lines?
just to be more clear, i want to rasform
a=['a','b','c']
for i in a:
do_something(i)
print i
to
#a=['a','b','c']
#for i in a:
# do_something(i)
# print i
Thnx
PAolo
--
If you feel is a good idea, pleas correct my poor English
if you have a minute to spend pleas visit my photogrphy site:
http://mypic.altervista.org
Go to the beginning of line where you want to enter #
ctrl-v
10j
I
#<space>
<esc>
ctrl-v = enter visual block mode
10j = go 10 lines down
I = Insert before
#<space> = insert the #, <space> characters
<esc> = go to normal mode and see the other 10 lines get updated.
raju
--
Kamaraju S Kusumanchi
http://www.people.cornell.edu/pages/kk288/
http://malayamaarutham.blogspot.com/
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]