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, 22.06.2019 02:00, aredwolf2017
When jen is planning to upgrade to a monitor with a better resolution, what should she be looking for in the new monitor?
Answers: 1
image
Computers and Technology, 22.06.2019 10:30, robert7248
You have a large, late-model pick-up truck with a rear seat. the pick-up truck weighs 6,500 pounds. the florida seat belt law
Answers: 1
image
Computers and Technology, 22.06.2019 12:10, tragesserj
1. declare a constant named cents_per_pound and initialize with 25. 2. get the shipping weight from user input storing the weight into shipweightpounds. 3. using flat_fee_cents and cents_per_pound constants, assign shipcostcents with the cost of shipping a package weighing shipweightpounds.
Answers: 2
image
Computers and Technology, 22.06.2019 19:20, manny2085
Amedian in the road will be marked with a white sign that has a black arrow going to the left of the median. true false
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, 04.03.2020 03:10