former creates a list but it created a tuple instead. I mean my common sense says this that the first statement must create a list. we need to talk.
I think without braces or with braces it's tuple by default. With square braces it's list and with curly braces it's dictionary
Nope, it's always been a tuple. Every time you put an object with at least one comma at the end and no enclosing symbol, it creates a tuple
message.replace('braces', 'brackets')
it's a tuple by default
Обсуждают сегодня