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, 22.06.2019 21:00
Simon says is a memory game where "simon" outputs a sequence of 10 characters (r, g, b, y) and the user must repeat the sequence. create a for loop that compares the two strings starting from index 0. for each match, add one point to userscore. upon a mismatch, exit the loop using a break statement. assume simonpattern and userpattern are always the same length. ex: the following patterns yield a userscore of 4: simonpattern: rrgbryybgy userpattern: rrgbbrybgy
Answers: 2
question
Computers and Technology, 23.06.2019 06:30
Which option correctly describes a dbms application? a. software used to manage databases b. software used to organize files and folders c. software used to develop specialized images d. software used to create effective presentations
Answers: 1
question
Computers and Technology, 23.06.2019 11:00
In the context of the box model, what is the difference between a margin and a padding? a. a padding lies outside a box border, while a margin lies inside it. b. a padding lies inside a box border, while a margin lies outside it. c. a padding can be adjusted independently, while a margin depends on the size of its box. d. a padding depends on the size of its box, while a margin can be adjusted independently.
Answers: 3
question
Computers and Technology, 23.06.2019 15:30
Hey so i was just trying out some game hacks so i took a paste from online and built it in my visual studio and then suddenly my computer was working or clicking on stuff on its own am i hacked?
Answers: 1
You know the right answer?
Does the following python code have a local and global variable?? class fish:
name='Salmon'<...
Questions
question
Mathematics, 06.05.2021 18:40
question
Chemistry, 06.05.2021 18:40
question
Arts, 06.05.2021 18:40
question
Mathematics, 06.05.2021 18:40
question
Mathematics, 06.05.2021 18:40
Questions on the website: 13722360