Posts From Python String

Python String upper() Function

Python String upper() function converts complete String into Uppercase and returns a new string. Strings are immutable in String, so the original string value remains unchanged. Key Points : Return Type: String Parametric Values: No parameters can be passed into the upper() function. Converts whole of string into uppercase It does not modify the original string. The […]

Python String islower() Function

Python String islower() function checks if all the characters in a string are lowercase then return True else False. Key Points : Return Type: Boolean i.e. True or False Parametric Values: No Parameters required It is not space-sensitive but case sensitive Empty String also returns False. String islower() Syntax str_name here refers to the input string. And, […]

Python String isupper() Function

String in Python has built-in functions for almost every action to be performed on a string. Python String isupper() function checks if all the characters in a string are uppercase then returns true else false. Key Points : Return Type: Boolean i.e. True or False Parametric Values: No Parameters required It is not space-sensitive but case sensitive […]

Python String isdigit() Function

Python String isdigit() function checks for the Digit characters in a string and returns True if the string consists of only digit characters. Key Points: Return Type: Boolean i.e. True or False Parametric Values: No parameters need to be parsed in isdigit() function Blank spaces in between digits lead to return False Empty String also returns False […]

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 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 […]