19
Vasily Bortnikov
Last seen 1 year ago
Member for 5 years, 1 month, 8 days
Difficulty Normal
Hi!
Months can be an ordinary list. You can refer to the name by index.
"expr1 if boolean_expr else expr2" statement and str.format() help shorten your code.
More
Sorry, I cannot see the tail of the last string.
You should keep it shorter.
Thanks.
More
Hi!
"from string import ascii_lowercase as alpha"
must work for you.
"for s in text.lower():" is more optimal, IMHO
More
It was very complex for me except for brute force
But It became easy after reading hint in task description! -)
More
Hi!
You don't need a dictionary for month_alphabet. Indexing works well in this case.
More
It's a little bit hard to read.
Whats about PEP 8?
However, Pycharm helps me with that.
More
Cool!
Everybody wants one-liner.
Please, push "lower()" to the next string!
More
Great, I thought like you!
(https://py.checkio.org/mission/largest-histogram/publications/vasily_bortnikov/python-3/first/)
I wonder why I can't give you upvote.
More
For me, It doesn't matter if the year is leap or not.
Maybe, I'm wrong but it works.
More
Of course, Cool.
But, no need for import, % operator is enough.
Such an obedient boy, I used the State design pattern -)
More
Clear, but
_for user, value in users.items()_, Why not?
and I can't afford "net*len(net)".
More