stp.is_const

stp.is_const(t)

z3py’s meaning: a symbol or a value (0-ary).