Overview In this script, we are going to use the re module to get all links from any website. One of the most powerful function in the re module is … [Read more...] about Python Code : Get all the links from a website
Python Code: Celsius and Fahrenheit Converter
Overview This script converts temperature between Fahrenheit to Celsius. To create a python converter for celsius and fahrenheit, you first have to … [Read more...] about Python Code: Celsius and Fahrenheit Converter
Python Code: Calculate the average score
Overview This script will calculate the average of three values. Make sure to put in "int" before the raw_input function, since we are using … [Read more...] about Python Code: Calculate the average score
Python Calendar : Show calendars
This script will ask for an input of a year. It will then take that input and return the calendar for that entire year. import calendar print "Show a … [Read more...] about Python Calendar : Show calendars
Urllib2 – User Agent
Overview This post will show how to add headers to a HTTP request. By default urllib2 identifies itself as Python-urllib/2.7 : GET / HTTP/1.1" … [Read more...] about Urllib2 – User Agent
Booleans, True or False in Python
What are Boolean? Boolean values are the two constant objects False and True. They are used to represent truth values (other values can also be … [Read more...] about Booleans, True or False in Python
Strings Formatting in Python
String formatting is a method to insert a variable or another string into a predefined string. Whenever we need to insert a user input to a string, we … [Read more...] about Strings Formatting in Python
Python Join Examples
Overview This post will show some examples of the Python join method. What is important to remember is that the character that joins the elements is … [Read more...] about Python Join Examples
Python Standard Library vs Python Package Index
Python Modules In this post, we'll look at the Python Standard Library and Python Package Index Python Standard … [Read more...] about Python Standard Library vs Python Package Index
Python Strings Quotes
Overview Strings can be enclosed in single quotes or double quotes. Single quoted string can contain double quotes and double quoted string … [Read more...] about Python Strings Quotes