Skip to main content
mzbagasra

1 week ago

sometimes we use ( ) sometimes we use [ ] and sometimes { } y?

Hello,


Questions, why sometimes we use ( ) sometimes we use [ ] and sometimes { } y?

Thanks

Image of
1 week ago
They're all for different things.

[ ] are for Lists, ( ) are for Tuples, and { } are for Dictionaries. They've all got different properties, but the course will cover them off for you :)
Image of Mary D. Strawser
Mary D. Strawser
1 week ago
David answered before I could, but that's the answer - they're different to represent different types of data.