rstrip tag

1 questions


1 answers
112 views
0
(Python) len traceback, error in .rstrip

name = input ('Enter file name: ')if len(name) > 1 : name = 'mbox-short.txt'filename = open(name)for line in filename : if 'From ' in line : print(line.rstrip) else : continueprint(filename)(1)I'...

2 years ago

© 2024 OneMinuteCode. All rights reserved.