Example
Creating and Joining Strings
…create text and join it in Python. Basics of working with strings.
Showing 1–10 of 11
Example
…create text and join it in Python. Basics of working with strings.
Example
F-strings are a modern way to format text in Python. Insert variables directly into text.
Example
Useful methods for working with text: changing case, removing whitespace.
Example
Accessing individual characters and text fragments. Zero-based indexing in Python.
Example
Searching, replacing and splitting text. Advanced string manipulation methods.
Example
Special characters like \n and \t allow formatting text with new lines and tabs.
Example
Changing data types using int(), float() and str() functions. Converting between types.
Example
For loop iterates through sequence elements. Basic iteration over lists.
Example
Tuples are immutable lists. Once created, they cannot be modified.
Example
Python allows changing variable type during program execution. This is dynamic typing.