cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Double curly braces

Why do we use double curly braces here?


Other examples in the tutorial use single curly braces.

I feel confused even after reading the explanation saying that "Braces need to be escaped within a Python string, and we do this by using double quotes."
How do we know whether it is a Python string or not? Since almost all the commands in this tutorial is run by python like the one below.

2 REPLIES 2

tri
Node Link

I think the reason is related to the format keyword after the Cypher clause.

 

Which tutorial are you referring to?

I think this can get confusing because braces are needed for Cypher, but they also have special meaning inside of a python multi-line string.   The double-brace example you gave doesn't look correct to my eye.  The specifics depend on what you're trying to do and which tutorial being followed.

Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

All the sessions of the conference are now available online