Jul-15-2020, 03:08 AM
You could explicitly insert strings (either with concatenation or with f-strings), or you could
join()
the strings with a space.>>> s1 + " " + s2 + " " + s3 #1a 'Python is a great programming language' >>> f"{s1} {s2} {s3}" #1b 'Python is a great programming language' >>> " ".join((s1, s2, s3)) #2 'Python is a great programming language'