We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
This will give an error because you are assigning scores as the value from the dictionary corresponding to the appropriate key. To fix you can do the following to the for loop:
Weighted Uniform Strings
You are viewing a single comment's thread. Return to all comments →
This will give an error because you are assigning scores as the value from the dictionary corresponding to the appropriate key. To fix you can do the following to the for loop:
This will pass all the test cases.