Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Python String Format – Python S Print Format Example
- Here is the basic syntax:
- "This is a string %s" % "string value goes here"
- 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.
- Here is a basic example using % string formatting.
- print("Hi, my name is %s" % "Jessica")
- for more:https://www.clictune.com/eM9P
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement