Python 3 exercise 23

whats the use of strict
this is from ex 23

I can’t answer that quite yet. Even though i’ve been through the chapter. I looked it up and found a reading on it here,
https://docs.python.org/3/howto/unicode.html
lets see how far down the rabbit hole goes.

This might help…

and just saw this.


looks like I have more reading to do.

so its for Handling errors?
strict : behavior which raises UnicodeDecodeError on failure.

btw, apparently that other post on ex23 wasn’t talking about what we are.

Per the exercise, we pass 'strict'as an argument via the command line. Why do we not pass that argument as errors in lines 15 and 16?

#confused

A free service run by Zed A. Shaw for learncodethehardway.org.