Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2020
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. def super_sum(string_list):
  2.     total = 0
  3.     string = "s"
  4.     for sty in string_list:
  5.         if string in sty:
  6.             total = total + sty.index(string)
  7.     return total
  8.  
  9.  
  10. print(super_sum(["grasce", "alisa", "shola", "alisa"]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement