Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> foo = '%(name)s : %(age)s'
- >>> blah = '%(name)s : %(age)s'
- >>> foo = blah % {'name': 'jim', 'age': 15}
- >>> foo
- 'jim : 15'
- >>> bar = blah % {'name': 'jane', 'age': 14}
- >>> bar
- 'jane : 14'
Advertisement
Add Comment
Please, Sign In to add comment