string-interpolation

Is there a Python equivalent to Ruby's string interpolation?

Is there a Python equivalent to Ruby's string interpolation? Question: Ruby example: name = “Spongebob Squarepants” puts “Who lives in a Pineapple under the sea? n#{name}.” The successful Python string concatenation is seemingly verbose to me. Asked By: Caste || Source Answers: Python 3.6 will add literal string interpolation similar to Ruby’s string interpolation. Starting …

Total answers: 9