How to Install Django Web Framework on Ubuntu

How to install django in ubuntu. Django is a free, open-source web framework written in the most popular python programming language and used by millions of developers every year. Its popularity is due to its friendliness to both beginners and advanced programmers with lots of python libraries and support. Django is secure and robust enough… Continue Reading »

How To Setup Django Applications with Apache and mod_wsgi on Ubuntu

Learn to deploy django on apache with virtualenv and mod_wsgi. Django is a Python-based web framework, that can help you to create your web application rapidly. Django is secure, powerful, fast and comes with most of the python libraries. Django is a popular choice for creating web applications. There are lots of websites that rely… Continue Reading »

Python Program For Simple Calculator

Here we are going to implement an easy simple calculator program in Python. We are going to implement Addition, Subtraction, Multiplication, and Division. To understand this example, you should have knowledge of following Python programming topics: Python – If…Else Condition Python – Function Python – Operators When you execute the program it will ask for entering… Continue Reading »

Python Program for Factorial Using Loop and Recursive Function

Python Factorial of n is that the product of all positive descending integers. Factorial of n is denoted by n!. Here, 4! is pronounced as “4 factorial”, it is also called “4 bang” or “4 shriek”. The factorial is normally used in Combinations and Permutations (mathematics). To understand this example, you should have knowledge of… Continue Reading »

Python Try Exception Finally Nothing

Python provides two important options to handle any sudden error in your Python programs and to feature debugging capabilities in them. The try block enables you to check a block of code for errors. The except block lets you handle the error. Exception Handling In Python The finally block enables you to execute code, no matter the… Continue Reading »

Python Module – Python Programming

Python Module can be thought of as a package in Java. A module permits you to logically organize your Python code. Consider a module to be constant as a code library. We can store Functions, Variables, Classes in Module. Built-In Modules Python has a built-in module which we can use according to our needs. For… Continue Reading »

Python Lambda Function – Python Programming

Python Lambda function is a small anonymous function. These functions are called anonymous because they are not declared in the standard manner by using the def keyword. A lambda function can take any number of arguments, but can only have one expression. Lambda Syntax lambda arguments : expression In Lambda Function the expressions are executed and the result is returned. Single… Continue Reading »

Python Function – Python Programming

Python Function is a block of code that works on variable input and produces output. Functions offer higher modularity for your application and a high degree of code reusing. Features of Functions Function is a block of code which is executed when it is called. You can pass information, referred to as parameters, into a function. A… Continue Reading »

Python Date Time Calendar – Python Programming

Python Date Time can be used in Python by importing DateTime Modules. We can also work with Calendar using the Calendar Module. Importing Date Time and Calendar Modules import datetimeimport calendar Python DateTime Once we have imported modules then we can work on a date, time and calendar in Python import datetimex = datetime.datetime.now()print(x) If you… Continue Reading »