PythonByteSize
  • Home
  • Detailed Videos
  • 1-Minute Videos
  • Exercises
    • 1. The Basics Exercises
    • 2. Python Program Structures Exercises
    • 3. Python Operators Exercises
    • 4. Python Functions Exercises
  • Donate
  • Computing Topics
  • Mathematics
  • Educators
  • Contact
  • About

6.7. Counting words in a simple sentence (Python string)

This video lesson shows a simple but not comprehensive way of counting words in a Python string and at the same time shows an example of nested program constructs. Please note that the technique shown here is not the best way to perform this task. However, it should be useful for demonstrating nested structures and also give practice at manipulating strings.
<< Previous Video
Next Video >>
Please consider donating to help with the costs incurred in developing this website.             Donate >>