Can somebody please tell me how I can find path of random file in Pyth
Can somebody please tell me how I can find path of random file in Python.
Please tell.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Rajanikant HawaldarPosted Apr 7, 2021, 5:02 AM
Regin RaviPosted Apr 6, 2021, 12:55 PM
random_file=random.choice(os.listdir("Foldername"))