Answer:
def typeHistogram(it,n):
d = dict()
for i in it:
n -=1
if n>=0:
if str(type(i).__name__) not in d.keys():
d.setdefault(type(i).__name__,1)
else:
d[str(type(i).__name__)] += 1
else:
break
return list(d.items())
it = iter([1,2,'a','b','c',4,5])
print(typeHistogram(it,7))
Explanation:
- Create a typeHistogram function that has 2 parameters namely "it" and "n" where "it" is an iterator used to represent a sequence of values of different types while "n" is the total number of elements in the sequence.
- Initialize an empty dictionary and loop through the iterator "it".
- Check if n is greater than 0 and current string is not present in the dictionary, then set default type as 1 otherwise increment by 1.
- At the end return the list of items.
- Finally initialize the iterator and display the histogram by calling the typeHistogram.
Answer:
filter
Explanation:
Some email programs let you use a filter to move incoming mail to a specific folder or to delete it automatically based on the content of the message.
The filter performs this role by either automatically deleting or moving to another location.
Most messages that are moved or deleted are unsolicited emails or spam messages.
Filtering of your mails helps so you ou can manage your incoming mail using filters to send email to a label, or archive, delete, star, or automatically forward your mail.
This is a way of organising your correspondence.
Exhaust Gas Recirculation (EGR) for NOx control
<span>Positive Crankcase Ventilation (PCV) for HC emission control </span>
Evaporative Emissions Control(EVAP)
<span>Catalytic Converter for HC and NOx control</span>
Answer:
Teams are diverse.
Explanation:
Teams have great advantage in problem solving over single person. A single persons's thinking is one dimensional. He sees and analyse things according to his perspective and understanding which limits his ability to solve problems .On the other hand team consist of multiple people with multiple background and perspective. Everyone has its own thinking process and it's own perspective, there fore in teams if one person is missing some perspective someone else might be looking in to that perspective which greatly enhance teams problem solving