Code Monkey home page Code Monkey logo

mit-6.0001-psets's Introduction

MIT 6.0001 Solutions

My solutions to MIT 6.0001's problem sets in Python 3.9.

Video lectures for this course can be found on YouTube.

Disclaimer

These solutions were written and published solely for educational and self-study purposes and are not guaranteed to be correct. I highly encourage you to attempt solving these psets on your own before checking these solutions, and even so, take them with a grain of salt!

A note on broken helper code for pset 5

As of April 2023, the helper code provided on OCW's website for problem set 5 breaks when trying to run on Python 3.9. Some modifications had to be made to the original code in order to fix it.

Here are some of the issues I found and fixed:

  • A deprecated base64 decoding method in the feedparser.py module had to be removed.
  • The process() function in ps5.py broke when trying to access the description property for RSS entries. Accessing the summary property instead fixes this.
  • The Yahoo News RSS feed endpoint (http://news.yahoo.com/rss/topstories) had to be removed in order avoid breaking the process() function.
  • Added more info to the exception handling to the main_thread in ps5.py using the traceback module.

With the changes above, the code now runs fine on Python 3.9 and displays news stories from the Google News RSS feed, using the triggers specified in the triggers.txt file to filter stories.

About 6.0001

6.0001 Introduction to Computer Science and Programming in Python is intended for students with little or no programming experience. It aims to provide students with an understanding of the role computation can play in solving problems and to help students, regardless of their major, feel justifiably confident of their ability to write small programs that allow them to accomplish useful goals. The class uses the Python 3.5 programming language.

mit-6.0001-psets's People

Contributors

chromeuniverse avatar

Watchers

James Cloos avatar  avatar

Forkers

ronsheely

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.