(In general, version() gives the Sage version from within Sage, whether in the cell or cloud or your computer. Is that hard to find in the manuals? Perhaps it is nowadays, as the documentation has gotten bigger.)