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.
This is best practices now, ignore comments on second solution with format as they are 5 years old.
There was a time where format was best practices, because many apps still didn't move to a higher python version. But Python 3.6 (first version where f strings released) is no longer supported both development and security wise.
f strings are quite the beauty.
This is beautiful
Any other solution besides this is simply over-engineering.
I guess i do. Maybe after I¨ll actually programm something real it might get better.. Still thank you and have nice day. :)
The description doesn't say it.
What will happen if someone has a two part name, like von Braun? Or it will include some tags, processed afterwards, that should be not capitalized?
You're overthinging it :)
I guess. Still better behaviour would be to capitalize every words inside the answer, don't you thing?
How exactly it matters? say_hello('john') => "Hello, john" would be an expected behavior.
Maybe I missed it but what about the case when name elements can be lowercase?
I had searched for that first before beginning. Python has too many of these little utility things, that you just have to go searching for it lol, similar to javascript at times.
clever, but not easy to read or edit
Each time you concatenate a string you are creating a new string (old is being deleted).
So it's better to create a list and then join it in the end
Love me some f-strings
Kata's naming is overcomplicated i guess. There is standart names for variables in Physics.
This comment is hidden because it contains spoiler information about the solution
Loading more items...