subject

Does the following python code have a local and global variable?? class fish:
name='Salmon'
presanceinallofak='true'
def display(self):
print (self. name)
print (self. age)
s1 = student()

print (getattr(s1,'name'))
print ("\n")
print("Presance in all parts of Alaska")
print (hasattr(s1,'name'))
print ("\n")

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 07:30, devnnn44
What is the original authority for copyright laws
Answers: 1
image
Computers and Technology, 23.06.2019 09:00, mimithurmond03
Which is the highest level of the hierarchy of needs model? a. humanity b. intrapersonal c. team d. interpersonal
Answers: 1
image
Computers and Technology, 23.06.2019 09:00, paulusl19
The first screen you see when you open word2016 what is called?
Answers: 1
image
Computers and Technology, 23.06.2019 15:20, yeahmaneee
What does a bonus object do? a. subtracts lives b. keeps track of a player's health c. gives a player an advantage d. makes text appear
Answers: 1
You know the right answer?
Does the following python code have a local and global variable?? class fish:
name='Salmon'<...

Questions in other subjects:

Konu
Mathematics, 15.04.2020 20:24
Questions on the website: 13722360