I teach computer science to undergrads and write for The Renegade Coder. I'm most likely taking care of my daughter, watching the Penguins, or reading manga.
Location
Columbus, Ohio
Education
B.S. in CE from CWRU 2016; M.S. in CSE from OSU 2020; PhD in EED from OSU 2024
Hey Jeremy, thank you for sharing a better and clever solution in this post.
thank you for reading this post and leaving a comment to improve this solution.
Happy Coding with LoVe
Both are great! But, it feels weird to create and throw away a list just for its length. I thought this generator expression solution was clever:
Source: Stack Overflow
Way smarter, totally tosses the array. Absolutely, and perfecly, pythonic.
Hey Jeremy, thank you for sharing a better and clever solution in this post.
thank you for reading this post and leaving a comment to improve this solution.
Happy Coding with LoVe
I'm gonna edit my post and add your great solution in my post.
Thank you :)
Keep Moving Forward ツ
Code with 💛
🅑🅐🅝🅙🅘