Question

Write a function makeHashTable(p) to Create a list with P entries. Each entry can store an...

Write a function makeHashTable(p) to Create a list with P entries. Each entry can store an Object.

PYTHON 3x

0 0
Add a comment Improve this question Transcribed image text
Answer #1

#This function will initialize a list with p none objects later which can be used to store any type of objects later on.

# and returns this list which can be mutated later on.
def makeHashTable(p):
   lis = []
   for i in range(p):
       lis.append(None)
   return lis


#ask your doubts if any in the comments section below. Also please rate the solution.

Add a comment
Know the answer?
Add Answer to:
Write a function makeHashTable(p) to Create a list with P entries. Each entry can store an...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT