0% found this document useful (0 votes)
7 views

Python Datatypes 4

Strings in Python are sequences of characters defined by single or double quotes and are immutable. Common operations on strings include slicing, concatenation, and formatting. Examples of strings are 'hello' and 'world'.

Uploaded by

MARK SIMIYU
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

Python Datatypes 4

Strings in Python are sequences of characters defined by single or double quotes and are immutable. Common operations on strings include slicing, concatenation, and formatting. Examples of strings are 'hello' and 'world'.

Uploaded by

MARK SIMIYU
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Text Data Type

Strings (str) represent sequences of characters.

They are defined using single or double quotes, e.g., 'hello', "world".

Strings are immutable in Python.

Common operations: slicing, concatenation, and formatting.

You might also like