Blossom project

Welcome to the Get Help category!

This is where you can ask questions about your code. Some important things to remember when posting in this category :slight_smile:

  • Learn how to ask a good question and get a good answer!
  • Remember to include a link to the exercise you need help with!
  • If someone answers your question, please mark their response as a solution :white_check_mark:
  • Once you understand a new concept, come back and try to help someone else!

I’m stuck on the blossom project

Traceback (most recent call last):
File “script.py”, line 41, in
blossom.assign(flower[0], flower[1])
File “script.py”, line 16, in assign
array_index = self.compress(self.hash(key))
File “script.py”, line 10, in hash
return sum(key.encode(key))
LookupError: unknown encoding: begonia

any help would be appreciated

thanks figured it out,

def hash(self, key):
return sum(key.encode(key))

remove key

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.