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 ("\\")
print("Presance in all parts of Alaska")
print (hasattr(s1,'name'))
print ("\\")