PYTHON ONLY PLZZZ Create a class object with the following attributes and actions: Class Name Class number Classroom Semester Level Subject Actions: Store a class list Print the class list as follows: Class name Class Number Semester Level Subject Test your object: Ask the user for all the information and to enter at least 3 classes test using all the actions of the object print using the to string action Describe the numbers and text you print. Do not just print numbers or strings to the screen explain what each number represents.
PYTHON ONLY PLZZZ Create a class object with the following attributes and actions: Class Name Class number Classroom Semester Level Subject Actions: Store a class list Print the class list as follows: Class name Class Number Semester Level Subject Test your object: Ask the user for all the information and to enter at least 3 classes test using all the actions of the object print using the to string action Describe the numbers and text you print. Do not just print numbers or strings to the screen explain what each number represents.
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
PYTHON ONLY PLZZZ
Create a class object with the following attributes and actions:
- Class Name
- Class number
- Classroom
- Semester
- Level
- Subject
Actions:
- Store a class list
- Print the class list as follows:
- Class name Class Number Semester
- Level
- Subject
Test your object:
- Ask the user for all the information and to enter at least 3 classes
- test using all the actions of the object
- print using the to string action
Describe the numbers and text you print. Do not just print numbers or strings to the screen explain what each number represents.
Expert Solution

Step 1
Program Approach:
- Step 1: Create a class Class.
- Step 2: Inside the class Class, create a constructor of the class Class using the __init__() method.
- Step 3: Take user input for classname and store it in string variable class_name.
- Step 4: Take user input for the class number and store it in the integer variable class_num.
- Step 5: Take user input for classroom and store it in the integer variable classroom.
- Step 6: Take user input for the semester and store it in the integer variable semester.
- Step 7: Take user input for level and store it in the integer variable level.
- Step 8: Take user input for the subject and store it in the string variable subject.
- Step 9: Create a display() method for printing the details in the given specified manner.
- Step 10: Create an empty list classlist.
- Step 11: Ask the user to enter at least 3 classes and store it in integer variable n.
- Step 12: Create n number of objects of Class using a for-loop.
- Step 13: Add all the n objects to the classlist.
- Step 14: Traverse through all the objects in the classlist and call display() method with the help of objects.
Step by step
Solved in 3 steps with 2 images

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education