Does the following python code have a local and global variable??
class fish:
name='Salmon'<...
![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 11.09.2021 09:40 marisol84
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](/tpl/images/cats/User.png)
Answers: 2
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
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](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 20:00
What is used to analyze and summarize your data without graphical support
Answers: 1
![question](/tpl/images/cats/informatica.png)
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](/tpl/images/cats/informatica.png)
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?
Questions
![question](/tpl/images/cats/en.png)
English, 11.02.2021 07:40
![question](/tpl/images/cats/istoriya.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 11.02.2021 07:40
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 11.02.2021 07:40
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/istoriya.png)
History, 11.02.2021 07:40
![question](/tpl/images/cats/istoriya.png)
History, 11.02.2021 07:40
![question](/tpl/images/cats/mat.png)
Mathematics, 11.02.2021 07:40
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/health.png)
![question](/tpl/images/cats/ekonomika.png)
![question](/tpl/images/cats/en.png)
English, 11.02.2021 07:40
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 11.02.2021 07:40
![question](/tpl/images/cats/mat.png)
Mathematics, 11.02.2021 07:40
![question](/tpl/images/cats/mat.png)
Mathematics, 11.02.2021 07:40
![question](/tpl/images/cats/biologiya.png)