I am writing a document in LaTeX that contains large sections of Python code and output. Typically, I like to license my writing under CC BY-SA 4.0 and my code under GPLv3. I have already placed a CC BY-SA 4.0 notice at the end of my (as of yet unpublished) document, but this notice was generated using a LaTeX package and therefore does not appear verbatim in the LaTeX source. The source file for the document will be hosted on GitHub.
Is it a good idea to GPL my Python code while using CC BY-SA for the rest of the content? Or would it be better (i.e. less of a headache for others) to use CC BY-SA for the entire work? Also, how do I address licensing both in the output PDF and the source?