In [1]:
import random
from IPython import display
In [2]:
rnd = "a random number <0x%s>" % random.random()
In [3]:
rnd
Out[3]:
In [4]:
print(rnd)
print(1234)
rnd
Out[4]:
In [5]:
rnd2 = "some other random number <0x%s>" % random.random()
In [6]:
rnd2
Out[6]:
In [7]:
print(rnd2)
print(4567)
rnd
Out[7]:
In [8]:
display.display(display.Markdown("#%s" % rnd2))
In [9]:
class A(object):
pass
A()
Out[9]: