How do I avoid quotes in the result of a print command?
Posted: Mon Jan 19, 2015 1:10 pm
If I only print variables, I see the values and nothing else. But then I try this one:
Both the variables and the text shows in single quotes. Using double quotes in the code doesn't help either. Is there a way to avoid this? It looks so silly like this:
Note that even the commas are printed. And without commas the code fails. This is what I want to see:
Edit: I can of course use a few lines to put it together first, but I'm just wondering if there's a slightly different syntax that lets me only use the one, short line.
Code: Select all
print ('Rom:', Rom, 'Tidspunkt: ', eg.globals.Tid[Rom])Code: Select all
('Rom:', 'Ute', 'Tidspunkt: ', 'Kl. 14:09, den 19.01.')Code: Select all
(Rom: Ute, Tidspunkt: Kl. 14:09, den 19.01.)