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: b. 37, 40, 41, 42
Explanation:
The next four octal numbers after 36 is 37, 40, 41, 42.
The octal numeral system, which is also referred to as "oct" for short, is simply base-8 number system.
It is a number system whereby only digits from 0 to 7 are used and there are no letters or numbers that are above 8 that are used.
In this case, after 36, the next number will be 37 after which we go to 40 as we can't write 38 in the octal system. Therefore, the next four octal numbers after 36 is 37, 40, 41, 42.
Hey there! Hello!
In an instance of Microsoft Excel 2016, you can select your entire worksheet by using the Ctrl-A shortcut on your keyboard for Windows, or Command-A in the case of a Mac. If you have a standard Windows keyboard, you should have two Ctrl keys on either side of your keyboard. On a standard Mac keyboard, you'll also find that there are two Command keys on either side of your space key. This shortcut applies to other things as well, such as documents in Word. It basically selects everything there is to select.
I have attached a screenshot of the result of doing Command-A on a blank document. Everything within the bolded green outline is selected – it's typical for the cell you were on to be white instead of your highlight color (which is grey, in my case), and it will be selected, too.
Hope this helped you out! Feel free to ask me any additional questions if you have any. :-)
Answer:
index.html:
<!DOCTYPE html>
<html>
<head>
<title>Brainly</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table id="myTable">
<caption>Duty Roster for last two days</caption>
<tr><th>Day</th><th>Morning</th><th>Afternoon</th></tr>
<tr><td>Monday</td><td colspan="2">John</td></tr>
<tr><td>Tuesday</td><td rowspan="2">Tom</td><td>Peter</td></tr>
<tr><td>Wednesday</td><td>simon</td></tr>
</table>
</body>
</html>
<u>style.css:</u>
#myTable {
background-color: Cyan;
border-collapse: collapse;
height: 200px;
width: 500px;
font-size: 20px;
}
#myTable td,th {
border: 2px black solid;
text-align: center;
}
#myTable td:first-child, th {
background-color: lightgray;
font-weight: bold;
}
Answer:
Passive solar heating system
Explanation:
The goal of passive solar heating systems usually refers to the system in which the energy provided by the sun is used for heating and cooling of the living places in a house.
When sunlight falls on the house, the building elements capture the heat energy of the sun and it later releases back this heat when the sun is not there. The main objective of this system is to regulate the room temperature. It is comprised of two main elements, one is the glasses that face towards the south and a thermal mass that is used for heat absorption, storing and distribution of heat.