Python Program Using String To Get Ring