1 - install moviepy from pip install moviepy
2 - use any videos to test
import moviepy.editor as mp
clips = [mp.VideoFileClip(p) for p in ['1.mp4', '2.mp4', '3.mp4']]
video = mp.concatenate_videoclips(clips)
video.write_videofile('out.mp4')
Now we're done 🤗
Don't forget to like and follow 🙂