About this document
Python String Basics and Operations by Randy Tabaog is a document available to read on EtoBox.
This document provides an overview of string methods and functions in Python. It discusses accessing characters in a string using indexes, getting the length of a string with len(), traversing strings with while and for loops, slicing strings, immutable nature of strings, comparing strings, and built-in string methods. Exercises are included to count the number of occurrences of a letter in a string and to generalize the code into a function.
- Author
- Randy Tabaog
- Language
- EN