This worked, then it didn't, and now it does?

This works on my raspberry pi using Python 3.6.8. The output for exercise 2 matches the output for exercise 1. The Codecademy feedback line, however, returns “Does myjoin() concatenate two strings?” [It worked in the Codecademy interface without an error message sometime later.]

def myjoin(*path_segments):
  full_path = ""
  for path_segment in path_segments:
    join(full_path, path_segment)
  return full_path

answer2 = myjoin(path_segment_1, path_segment_2, path_segment_3)
print(answer2)