Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. f"My formatting string!"
  2.  
  3. >>> name = "George"
  4. >>> print(f"My cool string is called {name}.")
  5. My cool string is called George.
  6.  
  7. print(f"My cool string is called {name.upper()}.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement