7. Prof's Grumpy Assistant: find() and related method for strings: String Indexing

Опубликовано: 08 Январь 2026
на канале: WIBYTE
97
4

In this video we look at the find(), rfind(), index() and rindex() methods in Python. We also get a better understanding of how strings are indexed in Python. We see the application of these concepts in context of the Prof.'s Grumpy Assistant project.

(www.wibyte.in)

Other videos in the series

Prof's Grumpy Assistant (Main project)
1. Introduction -    • 1. Prof's grumpy Assistant: Introduction  
2. String Methods: lower() etc. -    • 2. Prof's Grumpy Assistant: String Methods...  
3. How to use the if-else statement -    • 3. Prof's Grumpy Assistant: How to use the...  
4. String length and count() method -    • 4. Prof's Grumpy Assistant: string length ...  
5. if-elif-else statement -    • 5. Prof's Grumpy Assistant: if-elif-else s...  
6. startswith, endswith methods: Closer look at indentation -    • 6. Prof's Grumpy Assistant: startswith, en...  
7. find() and related method for strings: String Indexing -    • 7. Prof's Grumpy Assistant: find() and rel...  
8. Prof’s Grumpy Assistant gives Appointment Slots -    • 8. Prof's Grumpy Assistant: If-elif-else: ...  

Prof's Grumpy Assistant (Enhancements)
1. Remove trailing and leading spaces from the user response -    • 1. Prof's Grumpy Assistant Enhancements: r...  
2. How to analyze sentences -    • 2. Prof's Grumpy Assistant Enhancements: A...  
3. How to determine unique letters (words) in a word (sentence)? -    • 3. Prof's Grumpy Assistant Enhancements: D...  
4. How to determine if a word (or sentence) is a palindrome? -    • 4. Prof's Grumpy Assistant Enhancements: H...  
5. Creating randomness in the questions asked using random.randint() -    • 5. Prof's Grumpy Assistant Enhancements: C...  
6. Determining how long the user took to respond -    • 6. Prof's Grumpy Assistant Enhancements: D...