subject

Describe the scope of the variables in this code. class pet:
def __init__(self, strSpecies, strName):
self. species = strSpecies
self. petName = strName

def __str__(self):
return self. species + " named " + self. petName

def changeName(self, newName):
self. petName = newName

class petCarrier:
size = 'medium'
color = 'red'

The scope of petName .

The scope of color is .

Accessible to the entire program
limited to the petCarrier class
limited to the pet class

(both of the blanks need one of those answers)

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:30
The blank is type of decision-maker who over analyzes information
Answers: 3
question
Computers and Technology, 22.06.2019 09:00
Meenu wants to create a high quality drawing in a variety of colours. which device should she use for the same?
Answers: 1
question
Computers and Technology, 22.06.2019 15:30
Why would a programmer use the logical operator and in an if statement? a: when an action is to be taken that requires both conditions to be falseb: when an action is to be taken that requires both conditions to be truec: when an action is to be taken that requires the first condition to be falsed: when an action is to be taken that requires the second condition to be truei took the test and the answer is b.
Answers: 3
question
Computers and Technology, 22.06.2019 23:30
Which of the following is not a symptom of chronic fatigue syndrome
Answers: 2
You know the right answer?
Describe the scope of the variables in this code. class pet:
def __init__(self, strSpecies, s...
Questions
question
Computers and Technology, 28.09.2019 20:30
Questions on the website: 13722363