logo

Crowdly

Browser

Add to Chrome

Який результат буде виведено на консоль? class Students : _num = 0 ...

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

Який результат буде виведено на консоль?

class Students:

_num = 0

def __init__(self, firstname, lastname):

self._firstname = firstname

self._lastname = lastname

Students._num += 1

def stud_number(self):

print(Students._num)

a = Students("Robert","Spunch")

a._num = 0

a.stud_number()

 

 

More questions like this

Want instant access to all verified answers on learn.ztu.edu.ua?

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

Browser

Add to Chrome