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

30th Sep 2021, 9:15 PM
Kiwwi#
Kiwwi# - avatar
2 odpowiedzi
30th Sep 2021, 9:59 PM
Simon Sauter
Simon Sauter - avatar
0
Also, you shouldn't use "str" and "dict" as variable names.
30th Sep 2021, 10:01 PM
Simon Sauter
Simon Sauter - avatar