I have 3 lists
x = ["1", "2", "3"]
y = ["4", "5", "6"]
z = ["7", "8", "9"]
I need to write into a file with a random from x, y, and z on to a new line each time.
Keyword = input("Directory to list")
with open(Keyword) as f:
content = f.readlines()
content = [x.strip() for x in content]
with open("test.txt") as w:
w.write(PageFormat + )
Output should look like this:
2 // 6 // 8
3 // 4 // 9
1 // 5 // 9
2 // 5 // 9
1 // 4 // 7
("/" included)