I find it takes quite a bit of focus, time an effort to format a string with the syntax I'm currently using:
myList=['one','two','three']
myString='The number %s is larger than %s but smaller than %s.'%(myList[1],myList[0],myList[2])
Result:
"The number two is larger than one but smaller than three"
Strange but every time I reach %
keyboard key followed by s
I feel kind of interrupted...
I wonder if there is alternative way of achieving a similar string formatting. Please post some examples.