s Python Class - Google's Python Class - Google Code 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. To get started, the Python sections are linked at the left -- Python Set Up to get Python installed on your machine, Python Introduction for an introduction to the language, and then Python Strings starts the coding material, leading to the first exercise. This material was created by Nick Parlante working in the engEDU group at Google. Tip: Check out the Python Google Code University Forum to ask and answer questions.
Scripting, Part Two: Looping for Fun and Profit Crafty System Administrators who want to conserve energy need to learn the fine art of looping. You energy-conserving* system administrators will enjoy learning to use loops in your scripts. Looping is a technique that allows you to repeat a process or set of commands indefintely or until the loop exhausts a particular list of items. For example, you want to copy a particular file to everyone’s home directory. How do you do it? Don’t worry if you aren’t a scripting master, I’m going to take it slow through this series so that you can absorb what’s going on. The Basics You need access to a Linux system and last week’s post, “Scripting, Part One”. The Lively Loop There’s nothing particularly special about a loop. My original example is a good one. First, look at what’s needed to make this happen: a list of users, the file in question, and, depending on the file’s purpose, an optional permissions change. Next, put your needs into Linux terms. #! khess nimbus bob matthew mark luke john #! #!
TechCrunch – Startup and Technology News VentureBeat | Transformative tech coverage that matters Python Programming in your Browser: PythonAnywhere The os.path module This module contains functions that deal with long filenames (path names) in various ways. To use this module, import the os module, and access this module as os.path. Working with file names This module contains a number of functions that deal with long filenames in a platform independent way. In other words, without having to deal with forward and backward slashes, colons, and whatnot. Example: Using the os.path module to handle filename # File: os-path-example-1.py import os filename = "my/little/pony" print "using", os.name, "..." print "split", "=>", os.path.split(filename) print "splitext", "=>", os.path.splitext(filename) print "dirname", "=>", os.path.dirname(filename) print "basename", "=>", os.path.basename(filename) print "join", "=>", os.path.join(os.path.dirname(filename), os.path.basename(filename)) using nt ... split => ('my/little', 'pony') splitext => ('my/little/pony', '') dirname => my/little basename => pony join => my/little\pony /home/effbot/.pythonrc . . .
22 Free Resources for Data Structures and Algorithms: Binary Search Algorithms, String Algorithms… When you first start out with a tech career, you’re going to need to learn data structures and algorithms. These are the basis behind computer programming, and every high-quality employer will make sure you understand them. For beginners, though, it can be difficult to understand. In this series of technical blog posts, we’ll be sharing the resources we’ve collected here at Make School. In this post, we’ll share our resources for number bases, recursion and search algorithms, and string algorithms. Number bases Recursion and search algorithms String algorithms Read Stack Overflow’s answers to the question “What is unit testing?” Conclusion These resources are helpful, but they aren’t the only ways to learn data structures and algorithms.
Korben - Upgrade your mind Learn Python - Free Interactive Python Tutorial