I would like to run certain parts of the code and not all of the code while code that I don't want to execute can be sourced out, but remain in the program for future use.
Current code:
for i in v:
with open('text.txt'.format(i), 'w') as in_file:
in_file.write(xxx)
with open('text.txt'.format(i), 'w') as in_file:
in_file.write(xxx)
One way I know is to use "#" to make it a comment but this is very time wasting because sometimes I have more than 100 lines of codes I do not want to execute and should I just # all of it? Is there a good way to source out 100 lines of codes? I even tried """ < --- but it just make it a comments and usually when running the program the codes within """ """ are still executable.
Expected to source out:
for i in v:
with open('text.txt'.format(i), 'w') as in_file:
in_file.write(xxx)
this>> # with open('text.txt'.format(i), 'w') as in_file:
this >> # in_file.write(xxx)