Fix Python – Build the full path filename in Python

I need to pass a file path name to a module. How do I build the file path from a directory name, base filename, and a file format string?
The directory may or may not exist at the time of call.
For example:
format = ‘pdf’

I need to create a string ‘/home/me/dev/my_reports/daily_repo….