logo

Crowdly

Consider:   class Workshop:       organiser = "Computing"   ...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Consider: 

class Workshop: 

    organiser = "Computing" 

 

    def __init__(self, title, room): 

        self.title = title 

        self.room = room 

 

    def __str__(self): 

        return f"{self.title} in {self.room}" 

 

first = Workshop("Python", "Online") 

second = Workshop(room="Lab 3", title="Web") 

 

first.room = "Lab 1" 

Workshop.organiser = "Engineering" 

 

print(first) 

print(second) 

print(first.organiser) 

print(second.organiser) 

State the exact four lines printed. [2 marks] 

More questions like this

Want instant access to all verified answers on moodle1.maths.ed.ac.uk?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome