Write a python function that takes two path strings and return the combined path string


Topic: Write a python function that takes two path strings and return the combined path string

Solution

import os
def path_join(PARENT_DIR, DIR):
    joined_path = os.path.join(PARENT_DIR, DIR)
    return joined_path
path_join("C:/", "DATA")



List all Python Programs