Skip to content

Conversation

@patryk4815
Copy link

Function random.choice dont support dict_values indexing.

Sample:
variable = {'a': 1, 'b': 2}
values = variable.values()
print(values[0]) # error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant