Python strings- The following code gives a list assignment error. Why is that so?
strings
sikapoor
(Simar Kapoor)
May 16, 2019, 8:21am
#1
str = input()
x = []
for i in range(0,len(str)):
x[i] = str.count(str[i])