You can also use the same in your Python script. Here is a sample python script where we reverse the string and store the results in another variable.

Execute the Python script on command line and see the results.