import json text_file = "youtube.txt" def list_all_videos(videos): print("\n") print("*" * 80) for index, video in enumerate(videos, start=1): print(f"{index}. {video['name']}, Duration:{video['time']} ") print("\n") ...