y = 0.5x = '.1f' % y
You meant:
x = '%.1f' % y
You're missing a percent sign:
or:
print '%.1f' % 0.5
Hope this helpsPhilip
Thanks, I'm a dufus today.
hth vbr