Question: Write the python script called myprof.py that will use argparse to store the full name of the professor teaching given course. When the user provides

Write the python script called myprof.py that will use argparse to store the full name of the professor teaching given course.

When the user provides the option f, the script will get the firstname of the professor.

When the user provides the option l, the script will get the lastname of the professor.

The file with the course name will be passed as an argument to the option c.

Sample run:

./myprof.py -f Ahad -l Mammadov -c ops245.txt

Result: Ahad Mammadov will be saved into the ops245.txt file

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Computer Network Questions!