String and number concatenation
#!/usr/bin/env python # # [SNIPPET_NAME: String and number concatenation] # [SNIPPET_CATEGORIES: Python Core] # [SNIPPET_DESCRIPTION: Concatenate a string and a number] # [SNIPPET_AUTHOR: Jono Bacon <[email protected]>] # [SNIPPET_LICENSE: GPL] x = 1 print str(x) + " is a string" print "%s is a string" % x print x, "is a string"