String interpolation: Difference between revisions

Content deleted Content added
Add a CoffeeScript sample
Add a Python sample
Line 85:
apples = 4
console.log "I have #{apples} apples"
</source>
 
The output will be:
<source lang="text">
I have 4 apples
</source>
 
=== Python ===
<source lang="python">
apples = 4
print "I have %s apples" % apples
</source>