in reply to The Law of Inconsistent Assumptions
Just a note - I prefer the sprintf-style notation of string interpolation in Python, but there are also other, less cumbersome ways:
print "Hello",foo,"." # not quite the same output but close enough print "Hello %s." % (foo) # printf-style interpolation
Manually concatenating strings is soo low-level :-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: The Law of Inconsistent Assumptions
by SpanishInquisition (Pilgrim) on Oct 20, 2004 at 20:02 UTC |