Cómo leer TextFile en Python

with open('the-zen-of-python.txt') as f:
    contents = f.read()
    print(contents)
Code language: JavaScript (javascript)
Hurt Horse