convertion of a string into ASCII values

How to convert our name into ASCII values as output

Type cast character to int it will give you ascii value for java

    **char ch = 'N';
    int n = (int)ch;
    System.out.println(n);**

Since it tagged in Python3, I will give you solution in Python 3.X

ord('a')

This will return ASCII value of character ‘a’ i.e integer 97. You can check more inbuilt functions from documentation. If you want to convert whole string, you can loop this function with characters of string.

Source: [link text][1]
[1]: Built-in Functions — Python 3.11.3 documentation