readline() python from any file code example
Example: 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())
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())