How would you get only the first line of a file as a string with Python?
f1 = open("input1.txt", "r") print(f1.readline())