Search code examples
pythonstringspace

Space between strings


I want to print How do you like python so far? in python 3. But when I run my code there is no spaces between my strings. What should I do?

word1 = "How"
word2 = "do"
word3 = "you"
word4 = "like"
word5 = "Python"
word6 = "so"
word7 = "far?"

print(word1+word2+word3+word4+word5+word6+word7)

Solution

  • print(f'{word1} {word2} {word3} {word4} {word5} {word6} {word7}')