Complete the code to declare the base class for all room types.
class [1]: def __init__(self, room_number): self.room_number = room_number
The base class for all room types is commonly named Room to represent a generic room.
Complete the code to define a subclass for a conference room inheriting from the base room.
class ConferenceRoom([1]): def __init__(self, room_number, capacity): super().__init__(room_number) self.capacity = capacity
The subclass ConferenceRoom inherits from the base class Room.
Fix the error in the method overriding to return the room type name.
class MeetingRoom(Room): def get_type(self): return [1]
The method should return the string 'MeetingRoom' to indicate the room type.
Fill both blanks to create a dictionary comprehension mapping room numbers to their types for rooms with capacity over 10.
room_types = {room.room_number: room.get_type() for room in rooms if room.[1] > [2]The comprehension filters rooms with capacity greater than 10.
Fill all three blanks to create a list comprehension of room numbers for rooms that are either ConferenceRoom or MeetingRoom.
selected_rooms = [room.[1] for room in rooms if isinstance(room, [2]) or isinstance(room, [3])]
The list comprehension collects room_number for rooms that are instances of ConferenceRoom or MeetingRoom.