Menu Sidebar


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 John Perl: my $name = “John”; print “My name is $name”; >>> My name is […]

Follow me on Twitter

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.