#!/usr/bin/python str = "ABCDEFGH" print(str) lenstr=len(str) print(lenstr) ss='' for i in range(lenstr,0,-2): s=str[i-2:i] ss=ss+s print(ss)