Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python

Few issues with this video

  1. It is never clarified that the version of python that should be used to run all of this is python 3 if you are using python2 you will have problems using open function and the encoding

  2. At the variable DATATYPES, what does |S100 or |S50 etc stand for?

  3. Most important point maybe, the video finishes in the middle of the speech of the teacher and the code is never run, Im thinking maybe it needs to be re uploaded?

1 Answer

In python2 you can skip the encoding argument at the open function in the file s2v1.py, there are a few work arounds but none of them are necessary here.

If you have a data sample that requires that you make sure utf-8 encoding is used you will have to encode de string data with the .encoding('utf-8') method. If someone needs the workaround I can write them down.