var a
var a = "ACdA(a = %b, ccc= 2r2)";
var b
var b = "\ewfsd\ss.jpg"
Expected outputs:
var c = "ACdA(a = %b, ccc= 2r2, b_holder = \ewfsd\ss.jpg)"
It adds the string b to the end of string a, that’s it! But be careful of the “)”
“b_holder ” is hard coded string, it’s absolutly same in all cases, won’t be changed.
Thanks everyone!
You need to do two things:
", b_holder = "to varb, and")"in varawith the result of the concatenation.Since this is homework, I’ll leave it to you to figure out which methods to use. Good luck!
Hint: you can either store the result of the concatenation in step (1) in another variable, or you can do it all in one line.
Edit: You also need to concatenate the
")"back onto the end. So maybe three things. 🙂