62.5k views
2 votes
Write an expression whose value is the concatenation of the three str values associated with name1, name2, and name3, separated by commas. So if name1, name2, and name3, were (respectively) "Neville", "Dean", and "Seamus", your expression's value would be "Neville,Dean,Seamus".

1 Answer

4 votes

Answer:

name1 + "," + name2 + "," + name3 // concatenation of the three values

Explanation:

Following are the description of statement

  • The "+" operator is used for the concatenation purpose of the three str values.
  • In the given question the name1 variable contains "Neville" ,name2 contains "Dean" and name3 contains "Seamus".
  • Firstly we have given the name1 after that give the comma then we use "+" for the concatenation purpose and give the name2 again we will comma and finally, we will give the variable name3 by using "+" operator.
User Matthew Hui
by
7.1k points