I try to create an application that takes several inputs and represent them in a comprehensive manner. Let's say I have the following script:
x = 5
y = 'meters'
z = 'second'
and I want to get a pdf/output like this
The speed is 5 meters/second
Is there any way to do it? Thank you in advance

\def\myx{5}etc. If you want to have units exclusively better usesiunitxpackage. – percusse May 11 '18 at 14:18