Various Built-in Functions in Python

Various Built-in Functions in Python

Python supports various built in functions to manipulate strings len() ord() chr() capitalize() center() isalnum() isalpha() isdigit() lower() islower() upper() isupper() title() swapcase() len() len() returns the length of characters present in strings. It is used in various fields to calculate the number of characters. Examples: ord() ord() returns a the ASCII value of the…

Precedence of operators and associativity

Precedence of operators and associativity

Operators are executed in the order of precedence. The operands and the operators are grouped in a specific logical way for evaluation. This logical grouping is called an Association. All problem-solving questions having at least one expression. Python interpreter evaluates an expression of operators in the following ways. The order of precedence ==> Upper groups…

How to Impress a Girlfriend using python

How to Impress a Girlfriend using python

Let’s move on to an awesome project on how to impress your girlfriend or Boyfriend using python. Before getting into this we will have python and pywhatkit packages. In this case, I will use pycharm IDE How to install pycharm in windows: https://iterathon.tech//how-to-install-the-pycharm-in-windows/ After opening a pycharm click on a new project and you can give it any…

Important interview questions in python

Important interview questions in python

We already discussed python and its fundamentals. Now, we move ahead to what our expected questions are asked by top MNC’s like Google, Facebook, and so on. These questions are followed by what we saw in previous blogs. This blog includes both Theory and practical questions, scroll down for practical questions. Theory Questions Q1. What…

set operation

What is Set Operation in python with Example

Set{} A set is another type of collection data type. A Set is a mutable and unordered collection of elements without duplicates. That means the elements within a set cannot be repeated. A set is created by placing all the elements separated by a comma within a pair of curly brackets { }. Syntax of set: variable={element1,element2,element3}…