Category Archives: Python

Default Parameters in Python Functions

A default parameter is a value provided in function declaration that is automatically assigned by the compiler if caller of the function doesn’t provide a value for the parameter with default value. Following is a simple Python example to demonstrate use of default parameters. We don’t have to write 3 Multiply functions, only one function works by using… Read More »

Python Program to Swap String Case Without Using swapcase()

Generally, we use swapcase() to swap strings in Python. What if we are asked to do swapping without using the method. In this article, I will be sharing python program to swap upper case letters to lower case and vice versa in the same string. Examples: Input: “w3ColLeges” Output: “W3cOLlEGES” Input: “W3cOlLegEs OrG” Output: “w3CoLlEgEs oRg” Some  letters… Read More »

What is Object-Oriented Programming

OOPs stands for Object Oriented Programming. OOP is a programming style with Classes, Objects, Inheritance, Polymorphism, Encapsulation, Abstraction. Before OOP, Procedural Programming like C was used, based on functions. C++ introduced OOP with Objects and Classes for data and functions.  OOP provides a structured, reusable, and developer-friendly approach. It treats everything as objects, like Smalltalk, the first OOP… Read More »

Why choose python for your Android app development

Do you know how frequently you check your smartphone in a day? No? Well, according to various reports, the average number is an astonishing 100+ times a day. The reason behind our addiction to smartphones is the overwhelming sensory experience they offer in our daily lives. Wondering how? Think about Facebook, Instagram, Twitter, YouTube, WhatsApp etc. Smartphone Apps… Read More »