print ("{0:.1f} and the other no {0:.2f}".format(a,b))
python cannot do both manual and automatic precision handling (field numbering) in a single execution of code. You can either go for specifying the field numbering for each variable or let python do it automatically for all.