Mega Code Archive

 
Categories / Python Tutorial / String
 

Repr creates a string that is a representation of the value as a legal Python expression

print repr("Hello, world!") print repr(10000L)