Reputation: 312
I have an empty string strLocation and I would like to insert the three variables x, y and z to make the string a location of a point which is (x,y,z). I know I cannot simply add 'x' 'y' and 'z' because that will just add the letters instead of the actual values they hold. What should I do?
Upvotes: 1
Views: 80
Reputation: 120
Something like
strLocation = "("+str(x)+","+str(y)+","+str(z)+")"
?
Upvotes: 2