There may be many situations while testing or debugging python programs where we want a certain statement in the code or a block of statements in the … [Read more...] about Comment out a block of code in Python
Code
Numeric Types in Python
In any OOP language, there are many different data types. In Python, number data types are used to store numeric values. There are four different … [Read more...] about Numeric Types in Python
Magic 8-ball written in Python
Overview The Magic 8 Ball is a toy used for fortune-telling or seeking advice. Magic 8-ball written in Python In this script I'm using 8 possible … [Read more...] about Magic 8-ball written in Python
Python Code : Convert KM/H to MPH
Convert KM/H to MPH This script converts speed from KM/H to MPH, which may be handy for calculating speed limits when driving abroad, especially for … [Read more...] about Python Code : Convert KM/H to MPH
Python Code : Get all the links from a website
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