Pankaj Kumar

I have been working on Python programming for more than 12 years. At AskPython, I share my learning on Python with other fellow developers.

Python String isalpha() Function

String in Python has built-in functions for almost every action to be performed on a string. Python String isalpha() function checks for the alphabets in a string and returns True if the string consists of only alphabets (a-z, A-Z). Key Points : Return Type: Boolean i.e. True or False Parametric Values: No Parameters required Blank […]

Python String isalpha() Function Read More »

Python String isalnum() Function

String in Python has built-in functions for almost every action to be performed on a string. Python String isalnum() function checks for the alphanumeric characters in a string and returns True only if the string consists of alphanumeric characters i.e. either alphabet (a-z, A-Z) or numbers (0-9) or combination of both. Key Points : Return

Python String isalnum() Function Read More »

Python String Substring

Substring is a portion of the string that can be extracted and represented as a new string. In this tutorial, we will learn how to work with Substrings in Python. 1. Creating Python String Substring Substring can be created using either of the following methods: Slicing split() method Output: 2. Check for the presence of

Python String Substring Read More »

Python String Functions

Python has built-in functions for almost every operation that is to be performed on a string. To make it simple, these are classified on the basis of the frequency of their use as well as their operations. They are as follows : Python String Functions Classification Basic Functions Advanced Functions Miscellaneous (These functions are not

Python String Functions Read More »

Python String capitalize() Function

String in Python has built-in functions for almost every action to be performed on a string. Python String capitalize() function is used to convert only the first character to the uppercase letter, rest all characters are lowercase. Key Points : Return Type: String Parametric Values: No parameters can be parsed onto capitalize() function. Converts only

Python String capitalize() Function Read More »

Python Bitwise Operators

Operators are used to performing operations on values and variables. These symbols carry out all kinds of computations. The value on which the operator operates on is known as Operand. In Python, bit-wise operators are used to performing calculations on integers according to the bits. The integers are converted into binary and then bit by bit

Python Bitwise Operators Read More »

Python Comparison Operators

Operators are symbols in programming languages that perform the operation on the operands and decide the operation type. For instance, the equal to ( == ) operator checks for equal values and returns True if they are equal, and False otherwise, whereas the not equal ( !=) operator does the exact opposite. In Python, operators

Python Comparison Operators Read More »

Python Logical Operators

Python Operators are symbols/words that tell the Python Interpreter to perform or execute certain manipulation tasks. The logical operators are used to combine multiple boolean statements. There are three logical operators in Python. and or not Python Logical Operators Flowchart The below image depicts the flowchart of the logical operators. Logical AND Operator in Python

Python Logical Operators Read More »