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 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.
Learn Python - Free Interactive Python Tutorial 10.1. os.path — Common pathname manipulations — Python v2.7.5 documentation This module implements some useful functions on pathnames. To read or write files see open(), and for accessing the filesystem see the os module. Note On Windows, many of these functions do not properly support UNC pathnames. splitunc() and ismount() do handle them correctly. Unlike a unix shell, Python does not do any automatic path expansions. Since different operating systems have different path name conventions, there are several versions of this module in the standard library. posixpath for UNIX-style pathsntpath for Windows pathsmacpath for old-style MacOS pathsos2emxpath for OS/2 EMX paths os.path.abspath(path) Return a normalized absolutized version of the pathname path. os.path.basename(path) Return the base name of pathname path. os.path.commonprefix(list) Return the longest path prefix (taken character-by-character) that is a prefix of all paths in list. os.path.dirname(path) Return the directory name of pathname path. os.path.exists(path) os.path.lexists(path) os.path.getatime(path)
The 10 Best Coding Challenge Websites for 2018 – Coderbyte At the end of 2016 I published the article: The 10 most popular coding challenge websites for 2017. The list was based on a few resources such as popular blog posts, Quora posts, articles, Google searches, and popular posts on forums like r/learnprogramming and Hacker News. This updated 2018 list features 10 websites that offer the best coding challenges and resources to help new and intermediate developers improve their skills, prepare for interviews, and progress in their careers. The ordering of the list is based on level of difficulty (beginner to advanced). 1. Beginner — Intermediate Coderbyte provides 200+ coding challenges you can solve in an online editor using 10 different programming languages. Aside from coding challenges, they provide courses in Algorithms & Data Structures, Web Development, and prep courses for coding bootcamps. 2. Codewars provides a large collection of coding challenges submitted and edited by their own community. 3. 4. 5. Intermediate — Advanced 6. 7. 8. 9.