Quantcast
Channel: Active questions tagged string-manipulation - Mathematica Stack Exchange
Viewing all articles
Browse latest Browse all 186

StringForm with named arguments

$
0
0

StringForm with named arguments

In python, this is possible:

example:

a = "{x}, {y}".format(x=5, y=12)print(a)

result:

5, 12

In Mathematica, I used

StringForm ["``,``",5,12]

but I couldn't use named arguments.

Is there any way to do this in Mathematica? like a :

StringForm ["`x`,`y`",x->5, y->12]

Viewing all articles
Browse latest Browse all 186

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>