Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def super_sum(string_list):
- total = 0
- string = "s"
- for sty in string_list:
- if string in sty:
- total = total + sty.index(string)
- return total
- print(super_sum(["grasce", "alisa", "shola", "alisa"]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement