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.
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Regin Ravi194 reputationPosted Apr 6, 2021, 8:55 AM EDT
random_file=random.choice(os.listdir("Foldername"))Rajanikant HawaldarRank #107 · 20.6K reputationPosted Apr 7, 2021, 1:02 AM EDT