10 lines
194 B
Python
10 lines
194 B
Python
from pathlib import Path
|
|
|
|
path = Path('learning_python.txt')
|
|
contents = path.read_text()
|
|
|
|
lines = contents.splitlines()
|
|
for line in lines:
|
|
line = line.replace('Python', 'C')
|
|
print(line)
|