Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- words=['paste', 'eyes', 'motor', 'choose', 'book']
- def super_sum(a):
- total=0
- for x in a:
- for y in x:
- if y=='s':
- total=total+x.index('s')
- print (total)
- super_sum(words)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement