Write a program to create a dictionary that has the key-value pairs from the file "CourseInstructor.txt" I started to create a dictionary using the txt, file but receive the following error:
Course=("CourseInstructor.txt",'r') for line in Course: key,val = line.split(" ") Inst[key] = val Course.close() ValueError: not enough values to unpack (expected 2, got 1)
openin front of("CourseInstructor.txt",'r').CourseInstructor.txtdon't contain enough data.