Python – Using If Statement

If statement in Python is used to control the flow of execution within a program based on some condition,  evaluated to be True or False. Comparison operator and logical operator are used to evaluate condition. Comparison Operators A comparison operator is an operator that performs…

Python – Type Conversion

Python provides various functions for converting string, ints, floats, boolean to other types. Converting String to Ints If we want to convert a string into an int, then we can do this using the int() function. This can be useful when used with the input()…

Python – String Operations

In previous article, we saw about What is String in Python?. In this article we can see String operations in Python. Python provides some operations or functions that are available or built-in to use  with strings. Each below topics are explained for better understanding and…

Python – String

String in Python is a series, or sequence, of characters in order. Strings are immutable which means once a string has been created it cannot be changed. If you try to change a string you will in fact create a new string. New String will…

Python – Hello World Example

Python is a general-purpose programming language in a similar stream to other programming languages such as C++, JavaScript, C# and Oracle’s Java. Python Versions Currently there are two main versions of Python called Python 2 and Python 3. The difference between the two versions can…

Python – Importance

Why Python is Important Programming Language? Python is powerful and fast, plays well with others, runs everywhere, is friendly & easy to learn and is Open. Well, you can find the above answer everywhere. But how does exactly it matters in real programming world? Python is…