40
Awesome Team
Alexander Lyabah
http://www.checkio.org/user/oduvan/
Last seen 16 hours ago
Member for 13 years, 11 months, 5 days
Difficulty Easy
love it!
You are always choosing name x-liner, and always right :)
More
Here you assume that you have many arguments
*args
and here
for arg in args
but than you say there are only two
a, b =
and here
a == b
which doesn't make sense.
Why don't you go farther?
tr_args = ["".join(
return len(set(the_list))==1
More
should be __new_arr__ instead of __newArr__
...
PS: You love spaces, right?
More
well.. I must say this one
res, sum, i = res + [k], sum + k, i + 1
looks odd :)
More
Sara, same as your friend.
You are using too many scopes.
Not all of those are necessary. this is one of the thing that makes Python beautiful.
More
I'm sure you'll find a way to make it nicer
d = {'a': 0, 'b': 1, 'c': 2, 'd': 3, 'e': 4, 'f': 5, 'g': 6, 'h': 7}
More
too many scopes.
def index_power(a, n):
if len(a)-1 < n:
return -1
else:
return a[n]**n
More
pretty straight forward
You can replace lines 22:24 by
return len(stack) <= 0
More
a video code review from @veky
https://www.youtube.com/watch?v=bAea_X5cCJo
More