What do you want to save?
Add Code snippet
New code examples
-
Other 2022-01-22 08:01:08
alterning format when reading from a text file
with open("videos.txt") as f: lines = [l.strip() for l in f.readlines()] available_videos = "" for line in lines: title, video, tags = [x.strip() for x in line.split("|")] available_videos += f"{title} ({vid... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5