Sunday 15 September 2013

Parentheses, brackets, braces

Parentheses, brackets, braces

In Python (and I assume other programming languages), there are many
different uses for parentheses, brackets, and braces. It's overwhelming
and confusing, since I'm a beginner. When do I use parentheses, when do I
use brackets, and when do I use braces? Is there any sense, purpose to
this, any reason why one is used over the other? Any way I can know when
to use what more easily?

No comments:

Post a Comment