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:

… 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
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] + "-"

 #Assign your output to the OUT variable.
 OUT = output

what i am trying to get to

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

1 Like