Check file exist or not in python Md. Shahzad Alam - 22:29 Edit import osfname=input("Enter file name:")if os.path.exists(fname): print("File exist")else: print("File not exist") Share on Facebook Share on Twitter Share on Google Plus About Md. Shahzad Alam I am a passionate cloud and DevOps professional specializing in Linux and open-source solutions. Through this blog, I share my knowledge and experience with the community, offering tips and insights on cloud technologies and DevOps practices. RELATED POSTS
0 comments:
Post a Comment