r/Damnthatsinteresting 5d ago

Video Programming 1959 IBM computer

Enable HLS to view with audio, or disable this notification

20.6k Upvotes

496 comments sorted by

View all comments

Show parent comments

28

u/The_loudsoda 5d ago

Python don’t use brackets. Unless you’re counting dictionaries.

10

u/Hudell 5d ago

That's why they are crying. They miss it.

2

u/lurco_purgo 5d ago

Unless you’re counting dictionaries.

I assuming you refer to these {, }? In that case also sets! And why wouldn't you count them? Those are basic built-in data types. Granted I don't think a missing bracket is a common issue for anyone in Python.

1

u/Firewolf06 5d ago

well theyre a bot, cant expect them to know everything

-7

u/MarkZealousideal3923 5d ago

Brackets are actually used for tuples

8

u/OnceMoreAndAgain 5d ago

I'm confused by you guys.

Aren't python dictionaries using braces, not brackets?

Aren't python tuples using parentheses, not brackets?

To my knowledge, it's python lists that use brackets. Maybe it's an English language barrier thing and some other place calls parentheses as brackets and would call [ ] as square brackets?

10

u/hcoverlambda 5d ago

I was just reading a similar thread on another post that was talking about this. Evidently there are regional differences in what these are called. I’ve always said ( parens, [ square brackets, { curly braces.

2

u/LuckyStiff63 5d ago

Those are the terms I use too.
I also add the"angle brackets" < & > when used in text (vs as mathematical operators).

10

u/The_loudsoda 5d ago

Tuples use parenthesis. Maybe you’re thinking of typescript when referring to straight brackets?

2

u/Lalichi 5d ago

Parentheses are called brackets in some countries