# Python 3.7.0 F-strings

**URL:** <https://discuss.python.org/t/python-3-7-0-f-strings/16987>\
**Category:** Python Help\
**Tags:** help\
**Created:** [July 1, 2022, 2:45pm UTC](https://discuss.python.org/t/python-3-7-0-f-strings/16987 "2022-07-01T14:45:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jterrell](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/jterrell/32/7867_2.png) [@jterrell](https://discuss.python.org/u/jterrell)\
**Post date:** [July 1, 2022, 2:45pm UTC](https://discuss.python.org/t/python-3-7-0-f-strings/16987/1 "2022-07-01T14:45:46Z")

</div>

Why print(f"{a + ‘\’}\") create Exception?

---

<div class="post-metadata">

**Author:** ![steven.daprano](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/steven.daprano/32/1083_2.png) [@steven.daprano](https://discuss.python.org/u/steven.daprano)\
**Post date:** [July 1, 2022, 3:15pm UTC](https://discuss.python.org/t/python-3-7-0-f-strings/16987/2 "2022-07-01T15:15:03Z")

</div>

“Why print(f”{a + ‘\’}\“) create Exception?”

SyntaxError: f-string expression part cannot include a backslash

Try this instead:

```
a = 'something'
print(f"{a + chr(92)}\\")

```
