16
Heinrich Rhing
Last seen 1 year ago
Member for 7 years, 11 months, 2 days
Difficulty Normal
Instead of "if ...: if ...:" you may write "if ... and ...:" and an empty list is always False - so you can write "if 'POP' in item and my_stack:".
More
You can build a list without using append if you write
liste = [int(n) for n in str(number)]
More
Interesting, I thought lambda needs the keyword, but you show me, that it's not required.
More