Answer:
69.54
Explanation:
A power ratio of 9000000:1 corresponds to 69.54 dB.
The calculation is presented below:
Formula for calculating Power ratio (db) = 10 * log [P(out)/P(in)]
Since the given ratio is 9000000:1, substituting in the formula gives us 10 * log (9000000/1)
Note that log 9000000 = 6.954
Therefore, 10 * log (9000000/1) = 69.54
Hence the required power ratio in db is 69.54 db.
Answer:
from collections import Counter
def anagram(dictionary, query):
newList =[]
for element in dictionary:
for item in query:
word = 0
count = 0
for i in [x for x in item]:
if i in element:
count += 1
if count == len(item):
newList.append(item)
ans = list()
for point in Counter(newList).items():
ans.append(point)
print(ans)
mylist = ['jack', 'run', 'contain', 'reserve','hack','mack', 'cantoneese', 'nurse']
setter = ['ack', 'nur', 'can', 'con', 'reeve', 'serve']
anagram(mylist, setter)
Explanation:
The Counter class is used to create a dictionary that counts the number of anagrams in the created list 'newList' and then the counter is looped through to append the items (tuple of key and value pairs) to the 'ans' list which is printed as output.
Answer:
a)True is the answer......