I do NOT understand how this function works. Here is the solution given by Codecademy:
from os.path import join
path_segment_1 = “/Home/User”
path_segment_2 = “Codecademy/videos”
path_segment_3 = “cat_videos/surprised_cat.mp4”
join all three of the paths here!
print(join(path_segment_1, path_segment_2, path_segment_3)) # I understand this part
joined_string = args #here is where they lost me. Why do we index the parameter???
for arg in args[1:]: #Again, why is this parameter being index? and, how would I even know to do this?
joined_string += '/' + arg # I understand this part
print(myjoin(path_segment_1, path_segment_2, path_segment_3))