python

 

Write a Python program to hold information on a course

  • Program should have a main class
  • Variables are: Teacher name, Credits, Course Name
  • Add a method to enter teacher name and a method to enter credits
  • Use a try catch block to verify that credits is an “int”
  • Add a method to report on the variables  
  • Use _init_ method to create attributes
  • Use def main method to start class
  • Create at least two instances 
  • Add data and print using the methods defined in the class.