I would say 3-D model!!!! not 100% sure but this sounds most correct!
B. Integer I think that’s the answer
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:
Downcasting
Explanation:
Downcasting is a way of determining whether a given object is of a particular subclass type. In object-oriented programming downcasting is used to cast an object to a subtype. Even though sometimes it throws a compile-time error in Java, downcasting can be done on languages like Java, C++, C#. The opposite of downcasting is upcasting, which is simply the casting of an object to supertype or parent type.
You would not be taken as seriously as you should be by other businesses.