> Is there a way to do:
> 
> s = "I like python %i%s of the time."
> print s % (99, "%")
> 
> without having to pass in "%"?

You mean like

  s = "I like python %i%% of the time."
  print s % 99

http://docs.python.org/lib/typesseq-strings.html

-tkc




-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to