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