This book [0] uses Java. The content of the edition using Python is the same IIRC. The first one used Swift and is a tad older.
[0] https://www.manning.com/books/classic-computer-science-probl...
[0] https://www.manning.com/books/classic-computer-science-probl...