What is the difference between eval repr and str functions in Python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is the difference between eval repr and str functions in Python

3rd Jan 2018, 12:28 PM
O_o
O_o - avatar
2 Answers
3rd Jan 2018, 12:29 PM
Nithiwat
Nithiwat - avatar
0
Thank you for this I read this though I am confused when I search more I see these lines common repr is unambiguous and it is used by developers while str is user friendly can u explain meaning of these sentences,please and also explain what is __eval__ thank you
3rd Jan 2018, 1:46 PM
O_o
O_o - avatar