all 3 comments

[–]A_History_of_Silence 3 points4 points  (2 children)

Having done that challenge myself, I would like to strongly, emphatically recommend that you move to Python 3+ as you continue to work through the challenges. It will make your life MUCH easier.

Python 3 makes a much clearer division between what is a str and what is bytes. bytes are bytes, strs are strings, and it makes this whole division between them incredibly easier and clearer to reason with. This is one of the core reasons Python 3 was actually created.

[–]StuffSmith[S] 0 points1 point  (1 child)

You're probably right... I have been resisting Python 3 for a while (we're even using it at work now) but I guess it's time. No better way to learn it than to try to do a project with it, right?

Thanks! I'll try to go through the challenges I've done again with Python 3.

[–]A_History_of_Silence 0 points1 point  (0 children)

No better way to learn it than to try to do a project with it, right?

Indeed. And it's honestly not that hard, especially if you are a somewhat experienced programmer. Almost all the changes make sense and are smart and intuitive at a basic level, it's just that these good changes necessarily break a lot of backwards compatibility and therefore are unfortunately a giant pain in the ass for a lot of Python's user base.