General statistics
List of Youtube channels
Youtube commenter search
Distinguished comments
About
Anony Mousse
Indently
comments
Comments by "Anony Mousse" (@anon_y_mousse) on "Indently" channel.
Previous
2
Next
...
All
@runnow2655 The built-in sort function does by default.
1
@runnow2655 It's also the order that the list is presented in by the environment. Run the code yourself and you'll see it more or less the same depending on the version you have installed. The best ordering would require manually sorting the list as alphabetical would not be it. You can debate whether or not that level of effort would be worth it but that might make more sense as a general tutorial video instead of just a keyword list video.
1
@br4vetrave1er One cat I attended in the past, I would swear that he could teleport.
1
I wish more languages would copy this feature, and that Python would allow you to use variables inside the strings to select formatting options. For my own language, I made all strings f-strings and just have a shorthand where "$var" will stringify the value of `var`, and "${ expr }" will stringify the value of any valid expression. I made it so that format specifiers could use a variable instead of a numeric constant in the string. That way you could pad the output to the terminal dependent on the actual terminal attributes without using a loop. I'm hoping that this methodology negates the need for *printf() functions in my language, because separating the variable from any formatting options on it is error prone, and most of the time people just want to print as is.
1
@machadinhos Even if all it does is call .lower() on the strings, being able to construct a new instantiation as he shows in the video without first filtering or filtering as you iterate would be pretty handy. Also, if in the future it was embedded into the language it could be more efficient and save more steps and more time.
1
Previous
2
Next
...
All