Upgrade to Pro — share decks privately, control downloads, hide ads and more …

f-strings

Mariatta
January 22, 2018

 f-strings

Lightning talk about f-strings. Presented at PyCascades 2018 in Vancouver.

Mariatta

January 22, 2018
Tweet

More Decks by Mariatta

Other Decks in Programming

Transcript

  1. Call a function >>> def to_uppercase(input): ... return input.upper() ...

    >>> name = “bart simpson” >>> print(f"Hi {to_uppercase(name)}!") Hi BART SIMPSON!