Advertisement
gauravssnl

Dictionary String Formatting.py

Sep 27th, 2016
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. # dictionary based string formatting
  2. dict={"name":"gauravssnl","status":"newbie"}
  3. print "My name is %(name)s"%dict
  4. print "My programming status is %(status)s"%dict
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement