What functions are used for python numeric characters

In [3]: import string

In [4]: _ _
Out [4]: "0123456789"

what function is used at the horizontal line

Mar.23,2021

>>> string.digits

you can use:

>>> dir(string)

check what methods or attributes string has


underscores are special variables in ipython. One, two, and three consecutive underscores hold the most recent first, second, and third results, respectively. Such as

In [1]: 123
Out[1]: 123

In [2]: 'abc'
Out[2]: 'abc'

In [3]: _, __
Out[3]: ('abc', 123)
Menu