Reading 2 lines - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Homework (https://python-forum.io/forum-9.html) +--- Thread: Reading 2 lines (/thread-22639.html) |
Reading 2 lines - Dyefull - Nov-20-2019 Hey guys, I was wondering how you could make python read 2 lines of input with .readlines() instead of just 1 line. Because the information needed is on 2 lines of text. Thanks ! RE: Reading 2 lines - ichabod801 - Nov-21-2019 line1 = data_file.readline() line2 = data_file.readline() |