script.py
= "Hello Matt"
words
print(words)
We have moved the string out of the parentheses and into a named variable, words
. We then pass this variable to the function:
script.py
= "Hello Matt"
words
print(words)
When we run our script we see that the output has not changed, as expected:
Terminal/Command Prompt
python script.py
Hello Matt