Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python

name = "Fred"
header1 = "Dear %s," % name
title = "Dr."
header2 = "Dear %(title)s %(name)s," % vars()

print header1
print header2
Source by wiki.python.org #
 
PREVIOUS NEXT
Tagged: #python
ADD COMMENT
Topic
Name
3+3 =