O'Reilly logo
  • Longxiang Lyu thinks this is interesting:

10-2. Learning C:

From

Cover of Python Crash Course

Note

filename = 'learning_python.txt'

with open(filename) as file_object: for line in file_object: line.replace("Python", "Perl") print(line.rstrip())