print('%s %.2f' % ("hue =",swSky1.hue)) print('{0} {1:.2f}'.format("hue =",swSky1.hue)) print("hue =", format(swSky1.hue,'.2f')) # f:float, x:hex, s:string