Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def super_sum(string_list):
- total_index = 0
- for word in string_list:
- if "s" in word:
- total_index += word.index("s")
- print(total_index)
- super_sum(["mustache", "greatest", "almost"]) #Example (The argument must be a list containing strings) The strings must must contain letters
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement