Python – Functions

What are Functions in Python? In Python functions are groups of related statements that can be called together, typically perform a specific task, and which may or may not take a set of parameters or return a value. Functions can be defined in one place…

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…

Maven – Password Encryption

Maven supports server password encryption. Password should be always confidential and in case of Maven, it needs password to be included in the settings.xmland clear text password should be encrypted in following scenarios, Build machine (server, CI box) is shared between multiple users Users have…

Maven – Settings Reference

Maven – settings.xml file usage In maven, general settings are declared using settings.xml file which might live in two locations, In the Maven install location: ${maven.home}/conf/settings.xml In User’s home directory: ${user.home}/.m2/settings.xml The former Mavensettings.xml are also called global settings, the latter settings.xml are referred to as user settings….