what does repr() function does in python? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

what does repr() function does in python?

9th Feb 2020, 1:32 PM
sai
2 Respostas
+ 3
It shows the string representation of an object. you have a class dog. with instance Lassie. now. what shall be shown on print(Lassie)? repr() gives the answer
9th Feb 2020, 1:41 PM
Oma Falk
Oma Falk - avatar