Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- from random import choice
- x = input("Path : ")
- lst = []
- for root, dirs, files in os.walk(x):
- for name in files:
- lst.append(name)
- print(choice(lst))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement