solution_071a.py

#!/usr/bin/python3
# ===================================================================
# convert string to list; print reverse string (list)
# ===================================================================

import user_interface as ui


while(True):

    s = ui.get_user_input('enter a string: ')

    ss = s.strip()             # strip string

    if not ss:
        break

    lst = list(ss)

##print(lst)

    i = -1
    while i >= -len(lst):
       ##print(f'[{i}] {lst[i]}')
       print(lst[i],end='')    
       i -= 1
    print()