My knowledge-gap confession: even after many years with the languages, I can't write a main() in Python or Java without looking up the format.
I don't know if I could tell you with confidence the proper way to get a string length in any language. Is it a global function or an object method or property? Is it length or count or size? I have to look it up or rely on intellisense every time. I do too much bouncing between languages.
Well, I know it in BASIC. Len().
void main() {
}They don't even have a main() any more, it's great
def main(): # code
The dunder syntax you see around isn't required.
(obviously it's not but it is super nice that main in Rust is just:)
fn main() {
}