Advertisement
sissou123

Untitled

Apr 20th, 2022
1,350
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.42 KB | None | 0 0
  1. Python String Format – Python S Print Format Example
  2.  
  3. Here is the basic syntax:
  4.  
  5. "This is a string %s" % "string value goes here"
  6. You can create strings and use %s inside that string which acts as a placeholder. Then you can write % followed by the actual string value you want to use.
  7.  
  8. Here is a basic example using % string formatting.
  9.  
  10. print("Hi, my name is %s" % "Jessica")
  11. for more:https://www.clictune.com/eM9P
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement