Search for question
Question

Get Class Code

Download this starter file: ClassCode Program.py.

Complete the function getClassCode(). Note that the program will not run as is because the function is incomplete. The purpose of the function is to strip

out the class description part of the class title and just return the class code. The expected output is:

INST126 -> INST126: Introduction to Programming for Information Science

STAT100 STAT100: Elementary Statistics and Probability

Fig: 1