Professional Documents
Culture Documents
Course Module 4 Files File .readlines() and .close() methods .readlines() method
Previous Next
.readlines() method
Bookmark this page
.readlines() method
Start of transcript. Skip to the end.
MSXIPFXX2017-V003900
Watch later Share
Video Transcripts
Download video le Download SubRip (.srt) le
Download Text (.txt) le
Concept
.readlines()
poem_lines = poem1.readlines()
Examples
# [ ] Run to download file to notebook
!curl https://raw.githubusercontent.com/MicrosoftLearning/intropython/master/poem1.txt -o poem1.txt
Task 1
.readlines()
# [ ] import cities
Previous Next