The other thing you list, input, is optional. I write programs that don't take any input all the time. Monte Carlo simulation, for example. The entire demoscene is largely devoted to creating incredibly sophisticated programs that don't take any input. Postscript is a full, Turing-complete language whose primary purpose is to create programs that generally don't take any input
Or a screenplay?
(Because there are better formats for them)
Vs. Cooking or Writing which aren't coding practices unto themselves.
Screenplays... are already written in code, partly. If they weren't, they'd include quotation marks and "she said" after every line.
Yaml isn't really code in the same sense as python is, and Shakespeare didn't write in code in the same sense that the diagrams in this article are.