Pankaj Kumar

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…

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.…

Python String startswith() Function

String in Python has built-in functions for almost every action to be performed on a string. Python String startswith() function checks for the specific prefix in a string and returns True else False. Key Points: Return Type: Boolean i.e. True…

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…

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…

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 :…

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…

Comparison Operators Thumbnail

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…

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…