As the title says, this is a Python dictionary quick guide. Please check out the Dictionary Tutorial for more articles about dictionaries. # … [Read more...] about Python Dictionary Quick Guide
How to copy and move files with Shutil.
What is Shutil? The shutil module helps you automate copying files and directories. This saves the steps of opening, reading, writing and closing … [Read more...] about How to copy and move files with Shutil.
Fetching data from the Internet
What is Urllib2? urllib2 is a Python module for fetching URLs. What can it do? It offers a very simple interface, in the form of the urlopen … [Read more...] about Fetching data from the Internet
Reversing lists and strings
This short post will show how to do a reverse loops in Python. The first example will show how to do that in a list a and the other example how to … [Read more...] about Reversing lists and strings
Python Range Function
The Range function The built-in range function in Python is very useful to generate sequences of numbers in the form of a list. The given end point … [Read more...] about Python Range Function
Script : Get the username from a prompt…
This script will ask the user for its username, by using the raw_input function. Then a list of allowed users is created named user1 and user2. The … [Read more...] about Script : Get the username from a prompt…
Command Line Arguments in Python
The sys module in Python provides us with many tools to interact with the system using Python programs. In this article, we will discuss how we can … [Read more...] about Command Line Arguments in Python
How to handle Errors and Exceptions in Python
Errors and Exceptions If you (and you will) write code that doesn't work, you will get an error message. What are exceptions? Exceptions is what you … [Read more...] about How to handle Errors and Exceptions in Python
Python Dictionary – How To Create Dictionaries In Python
Dictionaries in Python are a collection of key-value pairs that are unordered and can be changed by use of built-in methods. Dictionaries are used to … [Read more...] about Python Dictionary – How To Create Dictionaries In Python
Requests In Python
What is Requests The Requests module is a an elegant and simple HTTP library for Python. What can I do with Requests? Requests allow you to send … [Read more...] about Requests In Python