October 2023
Beginner to intermediate
215 pages
4h 3m
English
This chapter shows you how to perform various tasks involving bit values and strings. As you will see, the Python code samples in this chapter are more complex than the code samples in earlier chapters. Moreover, code samples in this chapter contain NumPy code, which is discussed in an appendix.
The first portion of this chapter shows you how to count word frequencies in an array of sentences.
The second portion of this chapter shows you how to find a common substring of two binary numbers, along with an example of counting word frequencies.
The third portion of this chapter shows you how to insert characters in a string, and then how to perform string permutations. The final example shows you how to ...
Read now
Unlock full access