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
Answer:
Reduces the amount of waste sent to landfills and incinerators
Conserves natural resources such as timber, water and minerals
Increases economic security by tapping a domestic source of materials
Prevents pollution by reducing the need to collect new raw materials
Saves energy
Supports American manufacturing and conserves valuable resources
Helps create jobs in the recycling and manufacturing industries in the United
print(x - int(x))
int(x) will round the float down to the nearest whole number x - int(x) subtracts that rounded value from the original float. This will leave the remaining decimal portion.
I hope this helps!
How about you prefer no class