Find the output of the following Python code and choose the correct answer from the given options.
class St:
stm = stm = 'B' def __init__(self, n, r): self.n = n self.r = r a = St("D", 3) print (a.stm) St.stm = "D" b = St("A", 4) print (a.stm) print (b.stm)
Correct Answer:
B
D
D
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Python MCQ Questions