+ 2

Help Me plz

What is mistake here? text = input() l=list(text) a=-1 b=1 while len(l)>b: a+=b b+=1 k=(l[a]:l.count(l[a]))*len(l) di={k} print(di)

2nd Jan 2023, 12:02 PM
Imran Shakil
Imran Shakil - avatar
1 Antwort
+ 1
There are two mistake First: You cannot use this syntax to convert a string to a list. Second: There is a syntax error on variable k
4th Jan 2023, 12:11 PM
Alejandro
Alejandro - avatar