The creating subclass of an existing class different from copying the code from the existing class to a new file because one involves existing class while the other involves a new class.
<h3>What is superclass?</h3>
This is known to be creating a class, instead of declaring completely new members, then a person often designate that the new class to inherit the members of an existing class - Uses Existing class.
<h3>What is subclass?</h3>
In the creating a class, instead of declaring what we call a completely new members, a person can designate that the new class to be able to inherit the members of an existing class. Uses New class.
Hence, The creating subclass of an existing class different from copying the code from the existing class to a new file because one involves existing class while the other involves a new class.
Learn more about subclass from
brainly.com/question/19260275
#SPJ1
Answer:
In Python:
def count_over_100(mylist):
kount = 0
for i in range(len(mylist)):
if mylist[i] > 100:
kount+=1
return kount
Explanation:
This defines the function
def count_over_100(mylist):
(1) This initializes kount to 0
kount = 0
(2) This iterates through the loop
for i in range(len(mylist)):
If current list element is greater tha 100, kount is incremented by 1
<em> if mylist[i] > 100:</em>
<em> kount+=1</em>
This returns kount
return kount
Python is the correct answer
Answer:
(502763134343429265
/101)
Explanation: