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

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 19:30
Which of the following are types of formatting you can apply to a spreadsheet? choose all that apply.
Answers: 3
question
Computers and Technology, 22.06.2019 20:00
What is used to analyze and summarize your data without graphical support
Answers: 1
question
Computers and Technology, 22.06.2019 22:50
Which is the best minecraft server? a. mineplex b. worldonecraft c. 9b9t d. 2b2t
Answers: 2
question
Computers and Technology, 22.06.2019 23:30
What are listed in the vertical columns across the top of the event editor? a. file names b. conditions c. check marks d. action types
Answers: 1
You know the right answer?
Does the following python code have a local and global variable?? class fish:
name='Salmon'<...
Questions
question
History, 11.02.2021 07:40
question
Mathematics, 11.02.2021 07:40
Questions on the website: 13722367