**CIS 1920: Python Programming 🐍**
**Spring 2023**
Welcome! Python is a powerful language with both imperative and functional paradigms. As one of the fastest growing languages of all time, Python is widely used across academia and industry. Our goal with this course is to familiarize you with Pythonic coding principles as well as introduce you to the wide use cases of Python and its packages. (#) Logistics - **Time**: Thursdays 8:30am - 10:00 am ET - **Location**: Towne 315 - **Instructor**: Tony Liu - **Teaching Assistant**: Nichole Chau - **Office Hours (Zoom links on Ed)** - Tony: - Thursdays 3:00pm - 4:30pm - Nicole: - Wednesdays 4 - 5pm - Fridays 3:30pm - 4:30pm (#) Schedule Lecture slides, recordings, and assignments will be linked below. Exact due dates for assignments will be shown in Gradescope, but in general: - Assignments will be released after lecture on Thursdays - Homeworks (HW) will be due the following **Friday at 11:59pm ET** - Worksheets (WS) will be due the following **Wednesday at 11:59pm ET** (##) Pythonic Foundations | Date | Topic | Optional Readings |Assignments | |-------|--------------------------------------------------------------------------------------|------------------------------------------|----------------------------------------| | 1/12 | Logistics, Python Basics
[[pdf](lectures/wk01_intro.pdf)] [[recording][wk01]] | [What is Python?][whatispython] | [WS 1](worksheets/ws1.html): due 1/18 | | 1/19 | Data Structures
[[pdf](lectures/wk02_data_structures.pdf)] [[recording][wk02]] | | [HW 1](hws/hw1.html): due 1/27 | | 1/26 | Pythonic Programming I
[[pdf](lectures/wk03_pythonic1.pdf)] [[recording][wk03]] | [Namespaces][namespaces] | [WS 2](worksheets/ws2.html): due 2/1 | | 2/2 | Pythonic Programming II
[[pq.py](demos/pq.py)] [[pq_solution.py](demos/pq_solution.py)]
[[pdf](lectures/wk04_pythonic2.pdf)] [[recording][wk04]] | | [HW 2](hws/hw2.html): due 2/10 | | 2/9 | Modules, Testing, Scripting | | HW 3: due 2/17 | (##) Data Science (##) Web Development (#) Syllabus A list of the topics we will cover can be found below. Note that topics are subject to change. - **Pythonic Foundations** - Data structures and file I/O - Exceptions, modules, and OOP - Virtual environments and workflows - Testing and scripting - **Data Science and Machine Learning** - Data manipulation using NumPy and Pandas - Data visualization using Matplotlib and Seaborn - Machine learning with Scikit-learn - Deep learning with Pytorch - **Web Development and Deployment** - REST APIs with Flask - Web dev with Django - Cloud deployment with Docker - Web scraping (#) Course Policies (##) Communication We will primarily use Ed for discussion outside of lecture and office hours. The system is highly catered to getting you help fast and efficiently from classmates and the teaching staff. Rather than emailing, we encourage you to post your questions on Ed. (##) Grading The grading breakdown is as follows: - Six homeworks (60%) - Final project (25%) - Completion-graded worksheets (10%) - Participation (5%) (##) Late assignments Everybody gets **five late days for homeworks**, and **up to two** can be used for a single assignment. We'll track late submissions via Gradescope and will record your late day usage automatically, though definitely feel free to ask us at any point in the semester how many late days you have remaining. Beyond these, any late day will incur a penalty of 20% as of the change of date. Late days only apply to homeworks, so they may not be used for worksheets or the final project. (##) Collaboration You are permitted (and encouraged) to discuss the homework problems with other class members, but these discussions are to be limited to high-level concepts. **In particular, you are absolutely not permitted to copy/share code or implementation details**. Similarly, you are not permitted to use or consult code found on the internet for any of your assignments. The only context where it is permitted to share code is during the final project, during which you are allowed to collaborate with your team members. (#) Attribution and Licensing This course would not be possible without the lecture and homework content created by [Arun Kirubarajan](https://kirubarajan.com/) and [Jorge Mendez](https://www.seas.upenn.edu/~mendezme/). You are free to use or extend these projects for educational purposes provided that: 1. you do not distribute or publish solutions 2. you retain this notice 3. you provide clear attribution to the University of Pennsylvania, including a link to https://www.cis.upenn.edu/~cis1920/ [whatispython]: https://www.python.org/doc/essays/blurb/ [namespaces]: https://docs.python.org/3/tutorial/classes.html#python-scopes-and-namespaces [three_tdd]: https://blog.cleancoder.com/uncle-bob/2014/12/17/TheCyclesOfTDD.html [matplotlib]: https://ryxcommar.com/2020/04/11/why-you-hate-matplotlib/ [hospital_scraping]: https://www.wsj.com/articles/hospitals-hide-pricing-data-from-search-results-11616405402 [machine_learning]: https://homes.cs.washington.edu/~pedrod/papers/cacm12.pdf [excavatingai]: https://excavating.ai/ [wk01]: https://upenn.zoom.us/rec/share/r6Om0mgtm_fjN14KYZBx4d2TOod71-sy29uYoza3p-u8-7hccgC1KFHNgSJNaeGG.zNXcb0gRigok_EQ2 [wk02]: https://upenn.zoom.us/rec/share/SKsxCrnxcMzA0ewyP4Hpo6SfEi-y-5HiT9stXSN4b0ddWWUef-l8_T8yikKN6hix.apb_JNqcAt-rf741 [wk03]: https://upenn.zoom.us/rec/share/MTgD9R1ck-vlpeut-R_pkkGB84eMADtVfmgKBmTJO9RUBCC9Stq2Yvgn3stc3WDI.h5oRRGcRUc99oggk [wk04]: https://upenn.zoom.us/rec/share/3a6DqeAr2xPhk8gDfpFjT9-UuNdJyWBsKXL3X0vYjwwe4IHKMQylRL5bGlUEIimf.m3Xwqj5uLTgJkb4N?startTime=1675344643000