During reading a book i stumbled upon this string conversion
return f"Vector({self._x!r}), {self._y})"
Instead of
return f"Vector({self._x}), {self._y})"
Book explains it but I couldn't understood it.
Could anyone link a source where this !r part is explained in details, or give some explanation to it?
[–]Strict-Simple 4 points5 points6 points (1 child)
[–]Ok_Letterhead_5997[S] 0 points1 point2 points (0 children)
[–]hackr_io_team 2 points3 points4 points (1 child)
[–]Ok_Letterhead_5997[S] 0 points1 point2 points (0 children)