1

I'm quite new to programming and have looked on many answers to similar questions but they don't produce the desired result for me. Is it possible for any of you guys to help me? example code:

shapes = ["tri", "angle"]

groupedShapes = "triangle"
vaultah
  • 44,105
  • 12
  • 114
  • 143

1 Answers1

3

According to the doc's:

string.join(words[, sep]) Concatenate a list or tuple of words with intervening occurrences of sep. The default value for sep is a single space character.

shapes = ["tri", "angle"]
groupedShapes = "".join(shapes)
# "triangle"
Alexander
  • 12,424
  • 5
  • 59
  • 76