diff --git a/Doc/reference/simple_stmts.rst b/Doc/reference/simple_stmts.rst index e5028ab9a77..fa6bd27e88a 100644 --- a/Doc/reference/simple_stmts.rst +++ b/Doc/reference/simple_stmts.rst @@ -375,8 +375,8 @@ The :keyword:`print` statement .. index:: statement: print .. productionlist:: - print_stmt: "print" ([`expression` ("," `expression`)* [","] - : | ">>" `expression` [("," `expression`)+ [","]) + print_stmt: "print" ([`expression` ("," `expression`)* [","]] + : | ">>" `expression` [("," `expression`)+ [","]]) :keyword:`print` evaluates each expression in turn and writes the resulting object to standard output (see below). If an object is not a string, it is