Looping Program In Python To Convert