# Revision history [back]

In particular, give a name to your object and use the automatic TAB-completion to get the list of available methods. In this way, you can learn about the methods .degree and .variables by hitting the TAB key after toto.

sage: sage: R = BooleanPolynomialRing(3, 'x')
sage: sage: x, y, z = R.gens()
sage: too = x+z
sage: sage: too.v   # (pressing TAB key here)
too.variable          too.vars_as_monomial
too.variables         too.version
sage: too.variables()
(x0, x2)
sage: len(toto.variables())
2


In particular, give a name to your object and use the automatic TAB-completion to get the list of available methods. In this way, you can learn about the methods .degree and .variables by hitting the TAB key after toto.

sage: sage: R = BooleanPolynomialRing(3, 'x')
sage: sage: x, y, z = R.gens()
sage: too = x+z
sage: sage: too.v   # (pressing TAB key here)
too.variable          too.vars_as_monomial
too.variables         too.version
sage: too.variables()
(x0, x2)
sage: len(toto.variables())
len(too.variables())
2


In particular, give a name to your object and use the automatic TAB-completion to get the list of available methods. In this way, you can learn about the methods .degree and .variables by hitting the TAB key after toto.too.

sage: sage: R = BooleanPolynomialRing(3, 'x')
sage: sage: x, y, z = R.gens()
sage: too = x+z
sage: sage: too.v   # (pressing TAB key here)
too.variable          too.vars_as_monomial
too.variables         too.version
sage: too.variables()
(x0, x2)
sage: len(too.variables())
2