Загрузка...

String Methods and Built-in-functions | Strings in Python | Class 11 computer Science

Click to join telegram channel: Computer by Govind rathore https://t.me/computer_by_govind_rathore Python tutorials for Class 11 computer science https://www.youtube.com/playlist?list=PLGvVxA5_aYsO60UF_rjLh37rY-KOwzOoI Notes: strip() – This function returns the string after removing the spaces both on the left and the right of the string. Syntax: str.strip() lstrip() – This function returns the string after removing the spaces from the left of the string. Syntax: str.lsstrip() or str.lstrip(chars) rstrip() – This function returns the string after removing the spaces from the right of the string. Syntax: str.rsstrip() or str.rsstrip(chars) isspace() – This function returns True if the string contains only whitespace characters, otherwise returns False. Syntax: str.isspace() istitle() – This function returns True if the string is properly “titlecased”, else returns False if the string is not a “titlecased” string or an empty string. Syntax: str.istitle() join() – This function returns a string in which the string elements have been joined by a string separator. Syntax: str.join(sequence) swapcase() – This function converts and returns all uppercase characters into lowercase and vice versa of the given string. Syntax: str.swapcase() partition() – This function is used to split the given string using the specified separator and return a tuple with three parts: • Substring before the separator, • Separator itself, • Substring after the separator. Syntax: str.partition() ord() – This function returns the ASCII/Unicode of the character. Syntax: ord(chars) chr() – This function returns the character represented by the inputted Unicode/ASCII number. Syntax: chr(chars) Query solved: String Methods and Built-in-functions, Built in functions for string, strip() function for string in python, lstrip() function for string in python, rstrip() function for string in python, isspace() function for string in python, istitle() function for string in python, join() function for string in python, swapcase() function for string in python, partition() function for string in python, ord() function for string in python, chr() function for string in python, Python tutorials for class 11 computer Science, class 11 computer Science with python by sumita arora, class 11 computer Science with python by preeti arora, class 11 computer Science

Видео String Methods and Built-in-functions | Strings in Python | Class 11 computer Science автора Кодовое возрождение с помощью Python
Страницу в закладки Мои закладки
Все заметки Новая заметка Страницу в заметки