Aug. 20, 2013

Python Code Examples

Code Examples


This page contains all Python scripts that we have posted so far on

You can find more Python code examples at the bottom of this page.
Using pywhois
Magic 8-ball
CommandLineFu with Python
Port scanner in Python 
Google Command Line Script 
Date and Time Script
Bitly Shortener with Python
Sending Mails using Gmail
Command Line via tespeed
Search computer for specific files
Get the Geo Location of an IP Address
Get the username from a prompts
Tweet Search using Python
Date and Time in Python
Python Game : Rolling the dice
Monitor Apache / Nginx Log File
Log Checker in Python
Python : Guessing Game part 2
Guessing Game written in Python
Python Password Generator
Convert KM/H to MPH
Get all the links from a website
Celsius and Fahrenheit Converter
Calculate the average score
Check your external IP address
Python Hangman Game
Python Command Line IMDB Scraper

Python code examples

Here we link to other sites that provides Python code examples.
ActiveState Code - Popular Python recipes

Nullege - Search engine for Python source code

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, only recommend products or services that we try personally and believe will add value to our readers.