If I’m not wrong you’re using dictionaries here.
At least this would be one way to define a dictionary in Dynamo prior to version 2.0
But in 2.0 the square brackets replace the curly brackets for defining lists and hence the error.
so a list {a,b,c} in Dynamo 1.3 would look like [a,b,c] in 2.0
I am clueless though about how would you define a dictionary now, I still don’t have the newest version.
What is being done in your first image (v 1.3) is that a dictionary is being created and values added.
What, but in version 2.0 the square brackets means that lists are being created.
By changing to curly brackets in 2.0 you simply change to an non-existing syntax. You should rather try and investigate if you can create dictionary values another way. Or look at the outputs of the 1.3 version and see if you can match this in 2.0. (Assuming the dictionary functionality is not used further down stream).
What @Jonathan.Olesen said is correct.
Assuming python nodes work in the same way they do in earlier versions (still I haven’t put my hands on Dynamo 2) you can substitute your code block with 2 lines of python code:
dict = {"Walls" : IN[0],"Floors" : IN[1],"Structural Columns" : IN[2],"Structural Framing" : IN[3]}
OUT = [dict[i] for i in IN[4]]
you’ll need 4 inputs in the same way as you do with the code block: