0
Throughing me an indentation error @4th line
#counting the repetitive value data='james pitani' count=0 for rep in data: if rep=='i': count = count+1 print count
2 Respuestas
+ 5
The number of spaces you use for indentation matters.
data='james pitani'
count=0
for rep in data:
if rep=='i':
count = count+1
print(count)
0
yes I corrected