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.
'match' is a soft keyword since Python version 3.10 (see https://docs.python.org/3/reference/lexical_analysis.html#keywords), therefore I wouldn't use it as a variable name now.
It was likely intentional. Appending to a list is O(1), so they create the string only once at the end using 'join'. However, concatenating two strings creates a new string each time, which can be a costly operation.
Not sure if it was on purpose, but I believe making "L" a list is less efficient than making it a string.
Variable names evoke sadness
You know, magic ¯_(ツ)_/¯
how did six people use the same names and stuff and then get best practices?
Can someone please explain to me how this code works? How is it capitalizing through a for loop?
yeah, that's the kata
this logic only finds one missing character.
Is it work when rgb(-10, -10, -10)?
Your code us clear. But I think the program description is the result larger than 140. The input is not. Since the input contains many spaces , the input is always larger than the result. So , although input is larger than 140 , the result may not larger than 140. So , your code does not work welll if the input is larger than 140 while the result is not.
couldn't help but notice the count = count + 1 lol, use count += 1. only problem I had, great work
Slicing is your friend!
how did you get this dict
I think that the test for equality covers the '' case too.
Loading more items...