Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. # Expression in Literal String Interpolation (pep-0498/#supporting-full-python-expressions)
  2. fixtures = []
  3.  
  4. a1 = f"'{'\' \''.join(fixtures)}'"
  5. a2 = f"'{"' '".join(fixtures)}'"
  6.  
  7. # only on Python 3.5.3
  8. a3 = f"({'|'.join(fixtures)})"
  9. a4 = f'" "{f} '.join(fixtures)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement