0
[SOLVED] Error: 'dict' doesn't support item assignment
# to increment value in one if keychar is in string for c in str: dict[c] += 1
2 Réponses
+ 1
0
Also, you shouldn't use "str" and "dict" as variable names.
# to increment value in one if keychar is in string for c in str: dict[c] += 1