# Creating a text file with the list from 1% to 500% file_path = "/mnt/data/I_Love_You_List.txt" with open(file_path, "w") as file: for i in range(1, 501): file.write(f"I love you {i}%\n") file_path