## Python Program to Convert Octal Number to Decimal and vice-versa

The octal numeral system, or oct for short, is the base-8 number system and uses the digits 0 to 7. The main characteristic of an Octal Numbering System is that … Read more

## Python Program to Convert Binary Number to Decimal and Vice-Versa

A binary number is a number expressed in the base-2 numeral system or binary numeral system, which uses only two symbols 0 and 1. The decimal numeral system is the … Read more

## Python Programs to Create Pyramid and Patterns

In this article, we will go over different ways to generate pyramids and patters in Python. Half pyramid of asterisks def half_pyramid(rows): for i in range(rows): print(‘*’ * (i+1)) half_pyramid(6) … Read more

## Python Program to Find the Factors of a Number

The factor of any number is a whole number which exactly divides the number into a whole number without leaving any remainder. For example, 3 is a factor of 9 … Read more

## Python Program to Calculate Power of a Number

Problem Definition Create a Python program to take two numbers from the user one being the base number another the exponent then calculate the power. Program import math base_number = … Read more

## Python Program To Reverse a Number

Problem Definition Create a Python program to reverse a number in Python. Solution This article will show multiple solutions for reversing a number in Python. Reversing a number mathematically The … Read more

## Python Program To Display Characters From A to Z

Problem Definition Create a Python program to display all alphabets from A to Z. Solution This article will go through two pythonic ways to generate alphabets. Using String module Python’s … Read more

## Adding Custom Model Managers In Django

A manager is an interface through which database query operations are provided to Django models. At least one Manager exists for every model in a Django application, objects is the default … Read more

## Creating Feeds with Django

Django ships with built-in syndication feed generating framework, which is used to generate dynamic Atom and RSS feeds. RSS is an abbreviation for Really Simple Syndication, it’s a way to … Read more