Code Clinic: Python

Code Clinic: Python

1h 51mIntermediate2018-06-08

Authors

Barron Stone

Barron Stone

Electrical Engineer

Course details

Successful programmers know more than just how to code. They also know how to think about solving problems. Code Clinic is a series of courses where our instructors solve the same problems using different programming languages. Here, Barron Stone works with Python. Barron introduces challenges and provides an overview of his solutions in Python. Challenges include topics such as statistical analysis and accessing peripheral devices.

Skills covered

PythonLimited SeriesProgramming LanguagesOpen SourceSoftware Development

Concepts

Introduction

  • Welcome
  • Getting the most from Code Clinic

Problem 1 - Weather Statistics

  • Intro - The weather at Pond Oreille
  • Solution overview - Weather statistics
  • Importing data with the CSV module
  • Loading data into NumPy arrays
  • Embedding matplotlib into Tkinter
  • Plotting results with matplotlib

Problem 2 - Where Am I

  • Intro - Where am I
  • Geolocation using simple IP lookup
  • Geolocation using Google Maps API
  • Getting a Google Maps API key
  • Determining nearby Wi-Fi access points
  • Making a POST with requests

Problem 3 - Eight Queens

  • Intro - Eight queens
  • Solution overview - Eight queens
  • Understanding permutations
  • Finding solutions using permutations
  • Drawing the board with Tkinter

Problem 4 - Musical Instrument

  • Intro - Accessing peripherals
  • Solution overview - Musical instrument
  • Capturing mouse inputs with Tkinter
  • Drawing on the Tkinter canvas
  • Generating sounds with simpleaudio

Problem 5 - Facial Recognition

  • Intro - Facial recognition
  • Solution overview - Facial recognition
  • Loading images with OpenCV and imageio
  • Detecting faces using Haar cascades
  • Scaling images
  • Saving results as JSON

Problem 6 - Real-Time Information Dashboard

  • Intro - Real-time information dashboard
  • Solution overview - Information dashboard
  • Understanding Django
  • Routing URLs with Django
  • Manipulating data with the Django ORM
  • Populating HTML templates with Django
40,000 Toman