!s
callsstr()
on the result!r
callsrepr()
on the result!a
callsascii()
on the result
>>> f"He said his name is {name!r}."
"He said his name is 'Fred'."
!s
calls str()
on the result!r
calls repr()
on the result!a
calls ascii()
on the result>>> f"He said his name is {name!r}."
"He said his name is 'Fred'."