how to get the file_name from the path pythpn code example Example: python get filename from path import os print(os.path.basename(your_path))