Open cca4522 opened 1 month ago
+
*
<
>
==
!=
<=
>=
in
not in
\t
\n
\'
\\
%
%s
%d
%f
%c
str.format()
len()
upper()
lower()
strip()
replace()
split()
join()
find()
count()
startswith()
endswith()
Hi @cca4522 is this issue still open, if yes then what is the requirement would like to contribute on this.
Python Strings - Learning Objectives Checklist
1. Introduction to Strings
2. String Manipulation
Concatenation
+
operator.Repetition
*
operator.3. String Operators
Comparison Operators
<
,>
,==
,!=
,<=
, and>=
to compare strings.Membership Operators
in
andnot in
to check for substrings in a string.4. String Escape Characters
Tab (
\t
)Newline (
\n
)Single Quote (
\'
)Backslash (
\\
)5. String Formatting
Using the
%
Operator%s
,%d
,%f
,%c
, and other placeholders.Using
str.format()
MethodF-Strings (String Interpolation)
6. Raw Strings (r-strings)
7. String Indexing
8. String Methods
Commonly Used Methods
len()
: Get the length of a string.upper()
,lower()
: Convert strings to uppercase or lowercase.strip()
: Remove leading and trailing whitespace.replace()
: Replace parts of a string with another substring.split()
: Split a string into a list based on a separator.join()
: Join a list of strings into a single string.find()
: Locate a substring within a string.count()
: Count occurrences of a substring.startswith()
,endswith()
: Check if a string starts or ends with a given substring.