Dec-21-2019, 02:34 AM
The modern way to do it (f-string syntax):
command = f'echo 0 | fbink -i {hour}.png -g x=100 -c'The backward compatible (to 3.5 and earlier) way to do it (the format method of strings):
command = 'echo 0 | fbink -i {}.png -g x = 100 -c'.format(hour)
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures