Is there a way to apply the same format to a list of multiple real variables without a necessity of making a list? There are a lot of tutorials, but every one of them omits this problem. Say, I have reals:
variable = 123.234
another = 1.54816
var = 99.9994
Comparing to Fortran, I want to get ('_' representing a whitespace):
write(*,'(3f8.3)') variable, another, var
output:
_123.234___1.548__99.999
or something like this in Python:
print("{:8.3f}".format(variable, another, var))
preserving the same output as for Fortran.
I know I can make a list of variables and then use a for loop, but I'd rather avoid that since it introduces unnecessary lines in the code.
output: 123.234 1.548 99.999, right?