Advertisement
here2share

# str_one-liner_occurrence_replace.py

Sep 7th, 2015
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.11 KB | None | 0 0
  1. # str_one-liner_occurrence_replace.py
  2.  
  3. print ("-*-*-*-*-*-*-"*2).replace("*", "%s") % tuple("PYTHONROCKS!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement