Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Very unlikely case, did not consider that. Fixed
The question specifically states that the input may be uppercase or lowercase
I was not aware that conversion between hex and integers needed an additional explanation, especially as they are built-in features of python.
I recommend searching for it online or checking out the Wikipedia page if you are unsure https://en.wikipedia.org/wiki/Hexadecimal
Your suggestion throws an error, I changed it to the following:
hexstring = "#" + "".join("%02x" % random.randrange(256) for _ in range(3))
and now it works
Thanks :)
My bad, fixed.
Thanks for helping!
I presume he means the Red part of RGB with
R
.However, the randrange function already guarantees values between #10 and #F as
16**5 + 1
is #100001 and16**6 - 1
is #ffffff(Feel free to reopen issue if I misunderstood you in any way)
Good idea, issue has been fixed
Formatting fixed
Cannot reproduce this, does this still exist?
It may have discarded my changes >.>
Refresh and try again, should be fixed
Fixed the issue and added more sample tests
Big apologies, no idea how that slipped by. Fixed immediately.
Ah, I forgot to consider that decimals are calculated weirdly. Does it make sense to fix this by using floor(), which shouldn't be subject to these rounding errors?
Fixed, thanks for pointing out!
Loading more items...