Back to Browse

Python Shell Session - Strings

56 views
Jul 18, 2024
2:57

Python Shell Session on Strings and some of their methods (e.g. lower()). Getting the first character by writing print(text[0]). Slicing to get the first three characters by writing print(text[0:3]). Methods include Lower Case, Upper Case, Splitting by Space (gives a list of words), Centering, Right Justifying, Title Case and Capitalize. Also getting the length of a string as well as converting to a list and a set.

Download

0 formats

No download links available.

Python Shell Session - Strings | NatokHD