If you’ve never written a for-loop, or don’t know what a string is in programming, start here. These courses are self-paced, allowing you to adjust the number of hours you spend per week to meet your needs.
We are currently looking for volunteers to try out both of the following two courses and analyze them in different ways to determine which one is better suited to be included in our curriculum. We suggest that you flip a coin to decide which one to take first, so that you avoid an ordering bias. Once you have completed both courses, please provide your analysis of this RFC (the RFC is from Computer Science curriculum, but also applicable for this curriculum).
If you don’t have time or do not want to volunteer, you are required to do only ONE of the following courses.
This course has been developed by the CS50 team at Harvard University.
An introduction to programming using a language called Python. Learn how to read and write code as well as how to test and “debug” it. Designed for students with or without prior programming experience who’d like to learn Python specifically. Learn about functions, arguments, and return values (oh my!); variables and types; conditionals and Boolean expressions; and loops. Learn how to handle exceptions, find and fix bugs, and write unit tests; use third-party libraries; validate and extract data with regular expressions; model real-world entities with classes, objects, methods, and properties; and read and write files. Hands-on opportunities for lots of practice. Exercises inspired by real-world programming problems. No software required except for a web browser, or you can write code on your own PC or Mac.
Link: https://cs50.harvard.edu/python/
Note: This course is different from CS50 or CS50x. CS50 is not part of the OSSU curriculum. That being said, if you have completed CS50, you can skip this course and move on to the next one.
This course has been created by Professor Charles Severance from the University of Michigan.
Learn to Program and Analyze Data with Python. Develop programs to gather, clean, analyze, and visualize data.
Link: https://www.py4e.com/lessons
Textbook: PDF / EPUB / HTML / Buy hardcopy
Note: This course is also offered on Coursera, Edx. Those versions require you to pay to get the full version of the course. We suggest doing the course on its website, which is completely free.
import collections
collections.Callable = collections.abc.Callable
from bs4 import BeautifulSoup
Doing this should fix the compatibility issue and allow your code to run.