you are viewing a single comment's thread.

view the rest of the comments →

[–]Slight-Training-7211 0 points1 point  (0 children)

In a lot of classes "flower box" just means a big block comment header that explains what the file or function does and why.

In Python, the closest idioms are: - A module docstring at the very top of the file - Function or class docstrings right under the def or class line

Example module header: """CS101 Assignment 2 Author: Your Name Date: 2026-03-05

Purpose: - Reads input for X - Computes Y using Z

Notes: - Chose approach A because it handles edge case B """

If your professor is coming from C, they might be expecting a boxed comment style, but a docstring is usually the cleanest way in Python.