Answer:
def words_in_both(a, b):
a1 = set(a.lower().split())
b1 = set(b.lower().split())
return a1.intersection(b1)
common_words = words_in_both("She is a jack of all trades", 'Jack was tallest of all')
print(common_words)
Explanation:
Output:
{'all', 'of', 'jack'}
Answer:
H = 0.7333333
Explanation:
Given that:
The memory access time (
) = 150 ns
The cache access time
= 20 ns
Effective access time
= 20% > 
Then, it implies that:
=
+ 20% of
=
(1+20%)
=
(1+ 0.2)
= 20ns × 1.2
= 24ns
To determine the hit ratio H;
Using the formula:

Replacing the values; we have:

From (1)

Unplugging a computer can result in the information in the document files being lost. It is always important to save anything you are working on before turning off a computer or unplugging the computer. A computer should never be unplugged while turned on.