Answer:
int k=0;
for(int i=0;i<=13; i++)
{
if (table[i].getKey().equals(key))
{
k=i;
}
else
{
continue;
}
}
V value= table[k].getValue();
return value;
}
Explanation:
Note table[i] is an entry, and we know the key as it is an argument input to the function. Hence, we find the entry position using the given key, and then find the corresponding value and return it. And this is what is required. There are 14 entries in this hashtable, as known from the question.
Answer:
convert the input to an integer:
ans = int(input(str(num1)+"+"+str(num2)+"="))
Explanation:
Your code is comparing an integer to a string, which will always return false. If you cast your input to an integer using the int() function, your problem should be solved.
Answer:
Say you have a key in a dictionary, or a key in a 2-d list. When you insert(), you are destructively iterating the original list and modifying it to reflect the insert() component. In order for the key to get lost you would have to do say insert(len: :1) which would remove the second key and therefore cause it to get "lost" because it will be destructivsly removed from its assignment and replaced by whatever you choose to insert.
Rate positively and give brainlist
Answer:
In the given question statements are missing. So, we assume two true statements. Which can be given as :
- Function name should be meaning full
- Programming features are called programming instruction groupings.
Explanation:
In the programming language, a function is a group of organized code that is used to increases the reusability of the program. In the declaration of the function we should remember two points which is can be described as:
- function name should be meaning full means is that if we want to print some data in function. So, we write a function name that is matched to its data like message, information, data, etc. these names help another programmer to understand more easily.
- In the function, Programming features are called programming instruction groupings.
That's are the statements for function that is described above.
The sign is ... equal .. =
thats the answer.