top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Python: Difference between str() and repr() functions ?

0 votes
252 views

Both the functions gives same output

str(18)
'18'

repr(18)
'18'

What differences these two functions have in term of functionality and in whic scenarios these two functions are used ?

posted May 7, 2017 by Vikram Singh

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

...