Input from file, then move files – Python

This bit of code will take the input from a file, create a series of files with matching directories (folders), then move the file into the directory (easier than changing the directory) The input file reads… This is the Python code… So you should end up with something like this