input
import math
print(repr(math.pi))
print(str(math.pi))
output
3.141592653589793
3.141592653589793
could someone please tell me what the difference between
repr
and
str
is as the example on the documentation does not help as they both return the same figure?
surely it does something more complex?