Block code display settings

I'm creating some lecture notes for a basic cryptography course. I developed some basic python modules explaining how some of the basic protocols work and I want to use Quarto to create a pdf file where this code is explained. Was wondering if there are options for controlling how the python code blocks look like, in particular, I would like to say that some part of the code should belong to a specific module etc. Can I add this extra information in a header-like section inside the block?

Sorry for asking such a basic question, I went over the guide but it doesn't give that many formatting options for PDF output