readline function from file python code example
Example 1: python read lines
f = open("filename")
lines = f.readlines()
Example 2: Readline Python
f = open("C:\\Users\\Andreea Pantus\\Desktop\\An 2, Semestrul 2\\Inteligenta artificiala, machine learning\\ai-unibuc-24-22-2021\\train.txt", "r")
print(f.readline())