Google's Python Class - Educational Materials Welcome to Google's Python Class -- this is a free class for people with a little bit of programming experience who want to learn Python. The class includes written materials, lecture videos, and lots of code exercises to practice Python coding. These materials are used within Google to introduce Python to people who have just a little programming experience.
How to Think Like a Computer Scientist — How to Think Like a Computer Scientist: Learning with Python 2nd Edition documentation Navigation How to Think Like a Computer Scientist¶ Learning with Python¶ GPIO Examples 1 - A single LED Before we even get started with the GPIO, lets make an LED light up by simply wiring it to the +3.3v supply and 0v. Single LED Lit up One LED on the 3.3v supply So… We have a yellow wire from the Pi’s +3.3v supply to the breadboard and this connects to an LED then via a 270Ω (ohm) resistor to 0v. The green wire connects back to the Pi.
Python Ecosystem - An Introduction » mirnazim.org When developers shift from PHP, Ruby or any other platform to Python, the very first road block they face (most often) is a lack of an overall understanding of the Python ecosystem. Developers often yearn for a tutorial or resource that explains how to accomplish most tasks in a more or less standard way. What follows is an extract from the internal wiki at my workplace, which documents the basics of the Python ecosystem for web application development for our interns, trainees and experienced developers who shift to Python from other platforms. This is not a complete resource. Python's IDLE editor: How to Use - by Dr A. Dawson Copyright Dr A Dawson 2005 - 2016 This file is: Python_Editor_IDLE.htm First created: Tuesday 8th March 2005, 7:28 PT, ADLast updated: Saturday 31st January 2015, 9:05 PT, AD This page explains how to run the IDLE integrated development environment (IDE) for editing and running Python 2.x or Python 3 programs. The IDLE GUI (graphical user interface) is automatically installed with the Python interpreter. IDLE was designed specifically for use with Python.
Python: Inverted Index for dummies An Inverted Index is an index data structure storing a mapping from content, such as words or numbers, to its document locations and is generally used to allow fast full text searches. The first step of Inverted Index creation is Document Processing In our case is word_index() that consist of word_split(), normalization and the deletion of stop words ("the", "then", "that"...). def word_split(text): word_list =  wcurrent =  windex = None for i, c in enumerate(text): if c.isalnum(): wcurrent.append(c) windex = i elif wcurrent: word = u''.join(wcurrent) word_list.append((windex - len(word) + 1, word)) wcurrent =  if wcurrent: word = u''.join(wcurrent) word_list.append((windex - len(word) + 1, word)) return word_list word_split() is quite a long function that does a really simple job split words.
Computer Science Circles Variables act as "storage locations" for data in a program. They are a way of naming information for later usage. Each variable has a name; an example variable name we will use is myLuckyNumber. To store information in a variable, we write a command using an equal sign in the following way:
Adding a Bluetooth serial terminal to Raspberry Pi Sometimes you find a computer component that’s so cheap, that works so well, that you’re amazed you managed to live without it for so long. The JY-MCU Arduino Bluetooth Wireless Serial Port Module is that component for me right now. JY-MCU Arduino Bluetooth Wireless Serial Port Module from dx.com This little board is a cheap ($8.50!) 7 Major Players In Free Online Education By Jennifer Berry Imagine a world where free, college-level education was available to almost everyone. Believe it or not, you're living in that world right now. Online education has been around for decades, but in the past couple of years, interest has spiked for massive open online courses, otherwise known as MOOCs, according to Brian Whitmer, co-founder of Instructure, an education technology company that created the Canvas Network, a platform for open online courses. "Since 2012, MOOCs have caught the attention of the educational world due to their potential to disrupt how education is delivered and open up access to anyone with an Internet connection," Whitmer explains.