0
Why this happening ?
CHECKOUT THIS CODE AND HELP ME PLEASE https://code.sololearn.com/cSgR22QC96CE/?ref=app
1 Answer
+ 3
IDIOT KID
You are iterating text so until l is not equal to v it is printing text so it is printing 4 time as 'v' exist at 4th index as index start from 0
When you print 'l' it will print each character of that text
for l in g:
here 'l' is a each character of 'g'
Remember space is also a character.