Python 2.6 introduced the str.format() method with a slightly different syntax from the existing % operator. Which is better and for what situations?
%
Pyt
For python version >= 3.6 (see PEP 498)
s1='albha' s2='beta' f'{s1}{s2:>10}' #output 'albha beta'