Contents of file2.txt:
zalgoalpha
beta
My code:
file = open("file2.txt", "r", encoding = "utf-8")
print(file.read())
print(file.read().find("beta"))
Why does the second print convey "-1" ("beta" doesn't exist), even though it's right in the file, at index 11?