How to concatenate forward slash string "/" in Python

Warning: IronPythonEvaluator.EvaluateIronPythonScript operation failed.
unexpected token ‘’

Get this whatever I do…

Syntax should be correct?

Thanks John

/ is an escape character, try "//"

1 Like

Thanks for the , changed that still does not work same error

any other suggestion?

Don’t use str as a variable, or any of these:
https://docs.python.org/2/library/functions.html

… and please paste, and format your code if you expect anyone to test it.

Thx for getting back to me.

I did not know that, but the guy who posted about it was using str.

anyhow i still get the same issue

How do i create the code input method in the comment box?

import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *
#The inputs to this node will be stored as a list in the IN variables.
dataEnteringNode = IN

Names = IN[0]
spaceList = []
output = []

for i in Names
 j = UnwrapElement(i)
Conc = ""
for k in range(1,len(j)):
	Conc = Conc + j[k] + "-"
spaceList.append(str)

output.append(spaceList)
 #Assign your output to the OUT variable.
 OUT = output
1 Like

[http://bimandothers.blogspot.nl/2016/12/dynamo-for-construction-4d-planning-and.html]
what i am trying to get to

You’re lacking a “:” after “Names” on line 11

1 Like