[Python] How does print work with multiple words in python?

Discussão em 'Python' iniciado por Stack, Julho 23, 2025.

  1. Stack

    Stack Membro Participativo

    I have this python program:

    hello = "Hello" #make hello "hello"
    world = "world!" #make world "world!"
    print(hello world) #print hello world


    But when I run this, it says there is a syntax error on line 3. I don't understand how to make print work with multiple words.

    I tried this program and I expected it to say hello world!

    Continue reading...

Compartilhe esta Página