I am trying to read the contents in the file.
If i run the below code i am getting extra line in between. How to avoid it ?
from pathlib import Path
p = Path(r"C:\Users\kavin\PycharmProjects\Kavins\Jsonexercise.py")
with open(p, 'r') as file:
for txt in file: