MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/shittyprogramming/comments/11nkhb0/javascript_is_hard_sometimes/jbq65ad/?context=3
r/shittyprogramming • u/gabboman • Mar 10 '23
64 comments sorted by
View all comments
Show parent comment
3
That's not very Pythonic. Fixed it for you:
sum(eval("[" + "dot for dot in" + "[" + ",".join(re.sub(r".", "1", "hello world")) + "]" * 2))
View all comments
Show parent comment
3
u/great_site_not Mar 10 '23
That's not very Pythonic. Fixed it for you:
sum(eval("[" + "dot for dot in" + "[" + ",".join(re.sub(r".", "1", "hello world")) + "]" * 2))