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