Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def get_sum(s):
- return sum([pow(int(x), 2) for x in list(filter(lambda x: int(x) & 1, re.findall(r'\d+', s)))])
- print(get_sum("ab2v9bc13j5jf4jv21"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement