Tag: interpolation

How to implement string interpolation in Python

String interpolation is a process of substituting values of local variables into placeholders in a string. It is implemented in many programming languages such as Scala: //Scala 2.10+ var name = "John"; println(s"My name is $name") >>> My name is...

/ January 4, 2017