Question:

Concatenate the following strings:

first = "Beautiful "
second = "face tattoo"

Answer:

first + second
# OR
first.+(second)
# OR
first.concat(second)

The +() and concat() methods do the same thing (they're not exactly the same, but very similar). Notice the similarity with the previous examples: there is a string, followed by a dot, followed by the method names with another string as an argument.


Keywords:

© 2017 QuizBucket.org