say shut up in python

In Python, you can print the message "shut up" to the console using the print() function and string concatenation like this:

main.py
print("shut" + " " + "up")
27 chars
2 lines

Alternatively, you can use string formatting to inject the words "shut" and "up" into a string template like this:

main.py
print("{} {}".format("shut", "up"))
36 chars
2 lines

Note that this phrase may be inappropriate in some contexts and it's important to consider how your code and communications may be perceived by others.

related categories

gistlibby LogSnag