Search code snippets, questions, articles...

[Python] F-strings format syntax call functions

>>> name = "Eric Idle"
>>> f"{to_lowercase(name)} is funny."
'eric idle is funny.'

>>> f"{name.lower()} is funny."
'eric idle is funny.'
Was this helpful?
0 Comments
Programming Feeds
Learn something new everyday on Devsheet