Login and Register ×
Check your Email for the OTP
Python Classes and Objects Create Objects in Python
⚠ Report ✓ Question Verified Copy Link
Explanation:
The correct expression to check if the file 'C:\Sample.txt' exists and is also a regular file is:
os.path.isfile("C:\Sample.txt")
So, the correct answer is: os.path.isfile("C:\Sample.txt")
Related Topic:
Share Above MCQ
Learn More MCQ Questions from Python Classes and Objects Create Objects in Python