I found error to run ex24 of python3

In this line…

script, input_encoding, error = sys.argv

Hi @prince81 welcome to the forum.

Can you elaborate on the error? What was presented as the error reason?

Those lines in the code import sys and unpack the command line arguments into variables.

Did you run your code with the script in the terminal, stating the encoding you wanted?

I’m going to guess you’re not running it with all the command line arguments. Take a look at the What You Should See section to see how I run it, and then the video.