Skip to content

Instantly share code, notes, and snippets.

@everythingpython
Created August 30, 2025 16:38
Show Gist options
  • Select an option

  • Save everythingpython/f11884f5d464aa1d2931ddf1d4823434 to your computer and use it in GitHub Desktop.

Select an option

Save everythingpython/f11884f5d464aa1d2931ddf1d4823434 to your computer and use it in GitHub Desktop.
Using t-strings - Example 1
a = "Abhiram"
c = t"Hello {a}"
print(c)
# Template(strings=('Hello ', ''), interpolations=(Interpolation('Abhiram', 'a', None, ''),))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment