Asking for help

Report a typo

Let's say you need the isdir() function from the os.path module, but you don't know how it works. Recall which built-in function we can use to access documentation and find the docstring of os.path.isdir() . You do not need to use print().

Tip: You should pass os.path.isdir() without parentheses to the function. That's so because we don't need to execute it here — we simply refer to isdir() as an object.

Write a program in Python 3
import os.path
___

Create a free account to access the full topic