Closed Ohjeah closed 5 years ago
import crayons s1 = "this" s2 = crayons.red("breaks") s1.join([s2]) >>> TypeError: sequence item 0: expected str instance, ColoredString found
You need to view a ColoredString object as str by calling str()
ColoredString
str
str()
s1.join([str(x) for x in [s2]])
Closing due to inactivity :+1: