Python3 Tutorial For Beginners | repr vs eval vs print || Lesson 3

preview_player
Показать описание
Best for entertainment, tourism, picnics, sports, comedy, music and more: @RoshanAliExploration
repr() encloses an object in quotations.
eval() removes quotations from an object.
print() just doesn't show the quotations of the string. Doesn't really remove the quotes.
eval() really removes the quotes.

#python3 #reprevalprint #sciartfun #comparisonofrepr #reprvseval #printcommand #pythonvideos
Рекомендации по теме
Комментарии
Автор

Dear SciArtFun, thank you for your great video. One thing that got me wondering is what would be the best approach to use "eval" over an instance of a given custom class in order to have a new copy of that instance? Sincerely,

philiperiskallaleal
Автор

I disliked the video because you can't see the end portion of what you were explaining (last 20 seconds).

raphaelcharlespinon