Skip to content

Commit

Permalink
Update shuffle.py
Browse files Browse the repository at this point in the history
  • Loading branch information
BobHasNoSoul authored Nov 4, 2023
1 parent 45eb530 commit 4f9f2f4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions shuffle.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
import random
import os

# Define the filenames
shuffle_file = "shuffle.txt"

# Check if shuffle.txt exists and delete it if it does
if os.path.exists(shuffle_file):
os.remove(shuffle_file)
print(f"{shuffle_file} deleted")

# Read the lines from userfavorites.txt
with open("userfavorites.txt", "r") as file:
Expand Down

0 comments on commit 4f9f2f4

Please sign in to comment.