I'm trying to do this:
Code:
myArray = "value1","value2","value3","value4"
print("%s,%s,%s,%s"%myArray)
obviously it doesn't work, but is there a way to do that and avoid listing all every single element?
I'm trying to avoid doing this:
Code:
myArray = "value1","value2","value3","value4"
print("%s,%s,%s,%s"%(myArray[0],myArray[1],myArray[2],myArray[3]))
Code:
myArray = "value1","value2","value3","value4"
print("%s,%s,%s,%s"%myArray)
obviously it doesn't work, but is there a way to do that and avoid listing all every single element?
I'm trying to avoid doing this:
Code:
myArray = "value1","value2","value3","value4"
print("%s,%s,%s,%s"%(myArray[0],myArray[1],myArray[2],myArray[3]))