Top "Curly-braces" questions

The symbols "{" and "}", commonly used in programming languages.

How can I print literal curly-brace characters in python string and also use .format on it?

x = " \{ Hello \} {0} " print(x.format(42)) gives me : Key Error: Hello\\ I want to print the output: {Hello} 42

python string format string-formatting curly-braces
When do we need curly braces around shell variables?

In shell scripts, when do we use {} when expanding variables? For example, I have seen the following: var=10 # Declare variable …

bash shell syntax curly-braces
Go to Matching Brace in Visual Studio?

Is there a way in Visual Studio 2008 to go from a closing brace to its opening brace? I've found a …

visual-studio-2008 keyboard-shortcuts curly-braces
Eclipse jump to closing brace

What is the keyboard short cut in Eclipse to jump to the closing brace of a scope?

eclipse keyboard-shortcuts curly-braces
What is the meaning of curly braces?

Just starting to figure Python out. I've read this question and its responses: Is it true that I can't use …

python curly-braces parentheses braces
CURL to pass SSL certifcate and password

I need to specify a certificate with CURL i tried with --cert option it is not working. Could you please …

java unix curl curly-braces
Is it a bad practice to use an if-statement without curly braces?

I've seen code like this: if(statement) do this; else do this; However, I think this is more readable: if(…

if-statement coding-style curly-braces
What is the difference between curly brace and square bracket in Python?

what is the difference between curly brace and square bracket in python? A ={1,2} B =[1,2] when I print A and B …

python syntax curly-braces square-bracket
Command prompt having trouble escaping quotes and braces

I am trying to execute the following line in command prompt: curl -X POST -d '{ "method" : "account_info", "params" : [ { "…

escaping command quotes prompt curly-braces
Is there a difference in removing the curly braces from If statements in java

While watching thenewbostons tutorial on basic java, he teaches us to do if statements like this.(Notice the curly Braces) …

java if-statement curly-braces