؟THIS IS WHAT->from right to left

#!/usr/bin/env python
"""
!   Author: Hani
?   Date : todday 1/9/2021
-:  Purpose: :the jump algorithm
"""

import argparse
import re


# //-------------------------------------------
def get_arg():
    """Get command-line arguments"""
    parser = argparse.ArgumentParser(
        description="Jump the Five",
        formatter_class=argparse.ArgumentDefaultsHelpFormatter,
    )
    parser.add_argument("str",
                        metavar="str",
                        type=str,
                        nargs="+",#for long string
                        help="Input text")
    # parser.add_argument("-str","--text", metavar=str, help="Input text")
    # parser.add_argument('-o',
    #                     '--on',
    #                     help='A boolean flag',
    #                     action='store_true')
    return parser.parse_args()


# //-------------------------------------------


def main():
    """Make a jazz noise here!"""
    numeric = {
        '1':"9",
        '2':"8",
        '3':"7",
        '4':"6",
        '5':"0",
        '6':"4",
        '7':"3",
        '8':"2",
        '9':"1",
        '0':"5",
    }
    # for k, v in numeric.items():
    #     print(f"{k:5} {v}")
    args = get_arg()
    string = args.str
    print(string)
    stri = ' '.join(string)
    s= []
    for num in string:
        if num.isalpha():
            print(num, end=' ')
        if num.isalpha() != True:
            for n in num:
                justNum = n.replace('-', '')
                # print(justNum, end='')
                print(f"{numeric.get(justNum, '-')}", end='')
    # print(s)
    #-:test 1
    # for char in string:
    #     print(numeric.get(char, '-'), end='')
    # for char in string:
    #     print(char, end=' ') #print as join method
        # rplaceNum = numeric.get(char)
        # print(rplaceNum, end=' ')



    # print()


# //-------------------------------------------
if __name__ == "__main__":
    main()

my question is what is this →

I don’t want to wait a bunch of hours ? :laughing:

when I try make test it give me I different from my first photo?

#!/usr/bin/env python
"""
!   Author: Hani
?   Date : todday 1/9/2021
-:  Purpose: :the jump algorithm
"""

import argparse
import re


# //-------------------------------------------
def get_arg():
    """Get command-line arguments"""
    parser = argparse.ArgumentParser(
        description="Jump the Five",
        formatter_class=argparse.ArgumentDefaultsHelpFormatter,
    )
    parser.add_argument("str",
                        metavar="str",
                        type=str,
                        nargs="+",#for long string
                        help="Input text")
    # parser.add_argument("-str","--text", metavar=str, help="Input text")
    # parser.add_argument('-o',
    #                     '--on',
    #                     help='A boolean flag',
    #                     action='store_true')
    return parser.parse_args()


# //-------------------------------------------


def main():
    """Make a jazz noise here!"""
    numeric = {
        '1':"9",
        '2':"8",
        '3':"7",
        '4':"6",
        '5':"0",
        '6':"4",
        '7':"3",
        '8':"2",
        '9':"1",
        '0':"5",
    }
    # for k, v in numeric.items():
    #     print(f"{k:5} {v}")
    args = get_arg()
    string = args.str
    # print(string)
    stri = ' '.join(string).replace('.', '')
    # print(stri.split())
    # print(stri.replace(".", ""))
    # newString = []
    # newString.append(''.join(stri))
    # print(newString)
    # for i in newString:
    #     print(i)
    #-:----------------------
    # for so in stri:
    #     if so.isalpha() !=True:
    #         print(so, end='')
    newStri = [so for so in stri if so.isalpha()!= True]
    newNum = ''.join(newStri).strip().replace('-','')
    for i in newNum:
        print(f"{numeric.get(i, '-')}", end='') #===> and this line =>read down 
    #-:----------------------
    for num in string:
        if num.isalpha():
            print(num, end=' ')
        if num.isalpha() != True:
            for n in num:
                justNum = n.replace('-', '')
                # print(justNum, end='')
                print(f"{numeric.get(justNum, '-')}", end='')  #=> do you know what different from this line and line up
    print()
    # print(s)
    #-:test 1
    # for char in string:
    #     print(numeric.get(char, '-'), end='')
    # for char in string:
    #     print(char, end=' ') #print as join method
        # rplaceNum = numeric.get(char)
        # print(rplaceNum, end=' ')



    # print()


# //-------------------------------------------
if __name__ == "__main__":
    main()

I’m a little confused. Are you asking why the number 098-… is translated to 512…? Isn’t that because you have this map:

    numeric = {
        '1':"9",
        '2':"8",
        '3':"7",
        '4':"6",
        '5':"0",
        '6':"4",
        '7':"3",
        '8':"2",
        '9':"1",
        '0':"5",
    }

That seems to be translating the numbers, but I’m not sure why you’re doing that.

Since this seems like an odd little thing you’re doing can you take time to explain what this does and what you expect it to do?

Also, instead of a screenshot can you post a copy-paste of the relevant parts of the output. The output in your terminal is text so you can select the relevent parts and the paste them into a code block just like with your code. Should be easier to see.