Today was the last Python Open Lab of the semester – congrats to all of the students who have made it this far and picked up skills in a new programming language! Over the course of the semester, we’ve been learning the basics of Python: how to initialize lists, create dictionaries, iterate through items, and define […]
Tag: Python Open Lab
Python Open Labs: April 9, 2018
We spent class today reviewing functions and how they work in Python. Students were given problem statements and were asked to write functions to return the correct output. We went over multiple problems, and I’ll step through one in this blog post today. Imagine that you are given two inputs in the form strings: Jewels […]
Python Open Labs: March 26, 2018
Over the past few weeks, students have been learning how to iterate through items – whether they may be in strings, lists, tuples, or dictionaries. Students have mainly been using for loops to grab the value of each item, and lots of progress has been in regards to writing them with little to no instruction. […]
Python Open Lab Nov 28: Blog Style!
Hello all, Due to some complex scheduling issues, I am posting here the material we would have covered in lab tomorrow. Please feel free to contact me for any questions (data@library.columbia.edu). Enjoy! Python Objects and Classes (cont’d!) Self: What is the self variable in Python? The self variable represents the instance of the object itself. Unlike most object-oriented languages […]
Fall 2017 Python Open Lab Week 3
October 10, 2017 Week 3’s lab was intense! We started with list methods, where we left off last week and went through the following: list.append(x): Add an item to the end of the list. list.extend(L): Extend the list by appending all the items in the given […]
Fall 2017 Python Open Lab Week 2
Week 2: October 3rd This week we started with a brief review of the basics from week 1 and the starter kit. We continued on with Data Structures and worked through Lists, Tuples and Dictionaries. These concepts were easy to approach and we went over many practice examples on the way. Towards the end of […]
Fall 2017 Python Open Lab Week 1
Week 1 September 26 In week 1 of our Python Open lab, we introduced the Python Starter Kit and went over Python basics such as expressions, variables and statements, floats, statements, integers, strings, booleans, and control flow statements. The class was a mix of students with little to no experience with Python, to a few […]
Python Open Labs
In the penultimate session of Python Open Labs we had a brief review of csv concepts and XML parsing with BeautifulSoup Library. A boiler plate code for practise can be obtained below from the Google Drive link, filed under Session-19 folder. All of the course slides and examples are made available on: https://goo.gl/YP0c2E Next week on […]
Python Open Labs – CSV Files
As we move towards the end of Spring semester, having covered most of the basics in Python, the recent sessions have been focusing on introducing python modules requested by attendees. Last week had a second session on web-scraping with BeautifulSoup, I have updated the practice code for the same in Session-17 folder of the google […]
Python Open Labs – Web Scraping
For those who have been following this blog series, sorry for a late post on the updates about Python Open Labs. Last week we covered some basics about web scraping with python, but before I start let me make a customary disclaimer. Make sure that any of the websites that you want to scrape have granted […]