Jan. 06, 2013

Python Code Snippets

Code Snippets

Find all mp3 files with os.walk and fnmatch
Show the most popuplar videos on YouTube
Backup all MySQL databases, with timestamp.
Get the Geo location of an IP Address
How to use the Vimeo API in Python
Get the username from a prompt
Celsius and Fahrenheit Convertor
Twitter command line program
Convert from KM/H to MPH
Monitor Nginx and Apache log files
Get all links from a website
Age, Height and Weight
Calculate Average Score
Python Hangman Game
IMDB Crawler/Scraper
Check your external IP address
Get the username from a prompt
Password Generator
Log Checker
Finding all files in the path that endswith a certain extension
Parsing with Json
Guessing Game Part 2
Webbrowser script
OS Walk

Share this article

Recommended Python Training – DataCamp

For Python training, our top recommendation is DataCamp.

Datacamp provides online interactive courses that combine interactive coding challenges with videos from top instructors in the field.

Datacamp has beginner to advanced Python training that programmers of all levels benefit from.


Download Our Free Guide To Learning Python

* indicates required

Read more about:
Disclosure of Material Connection: Some of the links in the post above are “affiliate links.” This means if you click on the link and purchase the item, I will receive an affiliate commission. Regardless, PythonForBeginners.com only recommend products or services that we try personally and believe will add value to our readers.