Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import fileinput
- import sys
- for line in fileinput.input(['fizz.py'], inplace = True):
- if fileinput.filelineno() == 3:
- sys.stdout.write('# {l}'.format(l = line))
- else:
- sys.stdout.write(line)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement