Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
172 views

String Manipulation - Python

Python has many built-in string manipulation methods that allow easy modification of string data. The document demonstrates how to use the len() method to determine string length and provides examples of code snippets using additional string methods, explaining what each code example does.

Uploaded by

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

String Manipulation - Python

Python has many built-in string manipulation methods that allow easy modification of string data. The document demonstrates how to use the len() method to determine string length and provides examples of code snippets using additional string methods, explaining what each code example does.

Uploaded by

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

Python

String Manipulation
String Manipulation
Python has lots of built in methods that allow us to easily manipulate
strings.
The len method counts the number of characters in a string.
Try it for yourself:
Example Method 1
Try this code:
Explain what the code does:
Example Method 2
Try this code:
Explain what the code does:
Example Method 3
Try this code:
Explain what the code does:

Example Method 4
Try this code:
Explain what the code does:
Example Method 5
Try this code:
Explain what the code does:
Example Method 6
Try this code:
Explain what the code does:

You might also like