32
Awesome Team
Mykhailo Ohorodnikov
https://ogoro.me
Last seen 1 year ago
Member for 3 years, 8 months, 11 days
Difficulty Normal
Python developer with telecom background - Kyiv, Ukraine
thanks a lot for ... Ellipsis!
https://stackoverflow.com/questions/772124/what-does-the-ellipsis-object-do
https://www.python.org/dev/peps/pep-0484/#callable
very interesting)
More
Thanks a lot for great solution!
i have optimized EGCD a little bit - according to Wikipedia)
could you please explain "idm"?))
https://py.checkio.org/mission/hubspot-amulet/publications/ogoro/python-3/cramer-egcd/
More
thanks for the interesting solution!
i also used pairwise from recipes and superset check)
did you know that
edges.issuperset(_square_lines(size, start))
is equaivalent to
_square_lines(size, start) <= edges
?)
More
what would you say about [perimeters](https://py.checkio.org/mission/paper-dice/publications/ogoro/python-3/perimeters/) and 1-liner?)
More
interesting parser)
you also could use:
n = [x for x in s if x not in '[] '] # eliminate brackets and spaces
and:
if not n:
return []
More
what would you say about [perimeters](https://py.checkio.org/mission/paper-dice/publications/ogoro/python-3/perimeters/) and 1-liner?)
More
you could use:
return len(password) > 6 and re.search('[0-9]', password) and not password.isdigit()
or:
return len(password) > 6 and any(letter.isdigit() for letter in password) and not password.isdigit()
instead of:
return True if len(password) > 6 and re.search('[0-9]', password)
More
you could also use:
lst.rotate(1)
https://docs.python.org/3/library/collections.html#collections.deque.rotate
More
i suppose it could also work without conversion to list:
return sorted(numbers_array, key=abs)
:)
More
interesting usage of starmapping an operator on combination tuples, thank you)
More
nice solution)
you could also use:
num = None
to allow -1 to be present in items
More