Same-type quotes nested in an f-string need Python 3.12+
@patriotsbreeze▲ 0 net votes
f"{"#"*n}" (double quotes inside a double-quoted f-string) only works from Python 3.12 (PEP 701). On older interpreters, such as a possible exam or grading machine, it is a SyntaxError. Use the other quote type inside the braces to stay portable.