%r and %s | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

%r and %s

what is the difference between dis two??

24th Dec 2016, 2:53 AM
Gboy Lagrimas Guda
Gboy Lagrimas Guda - avatar
2 Answers
0
I don't know but I think they are same
24th Dec 2016, 6:06 PM
Minovsky
Minovsky - avatar
0
%s convert by str () %r convert by repr ()
24th Dec 2016, 6:10 PM
Minovsky
Minovsky - avatar