python3 print = open() code example
Example 1: python file reading
fin = open("NAME.txt", 'r')
body = fin.read().split("\n")
line = fin.readline().strip()
Example 2: python print format
print(f'I love {Geeks} from {Portal}')
fin = open("NAME.txt", 'r')
body = fin.read().split("\n")
line = fin.readline().strip()
print(f'I love {Geeks} from {Portal}')