Python Forum
Drills/Exercises for collections, itertools, and common built-in data structures?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Drills/Exercises for collections, itertools, and common built-in data structures?
#1
It seems pretty useful/efficient to have a good grasp on the collections, itertools module, and the methods and properties of things like strings, dictionaries, lists, and sets.

To get out of the beginner's comfort zone, any recommended books or resources that does drills/exercises on utilizing the collections and itertools modules, string manipulation, dictionaries, lists, and sets so that you get a hang of their more intermediate-advanced properties?

Note: seems like there's plenty exercises on list comprehensions.
Reply
#2
I don't know of a resource that would focus on the particular modules/structures you mentioned. But playing with challenges on Codewars I have stumbled upon many which allow you to practice what you are interested in. Good thing is that after completing the challenge, you get to see solutions by others so you can compare and learn.
Reply
#3
(Apr-26-2018, 08:08 AM)j.crater Wrote: I don't know of a resource that would focus on the particular modules/structures you mentioned. But playing with challenges on Codewars I have stumbled upon many which allow you to practice what you are interested in. Good thing is that after completing the challenge, you get to see solutions by others so you can compare and learn.

Does it break it down into categories beforehand so you know whether it's a problem that requires a list?

Also anybody used Python Cookbook before? If so, how do you utilize it for learning purposes? Someone recommended it as a comprehensive primer for these things.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Mirroring disk structures in nested dictionaries Curbie 16 4,550 Apr-27-2025, 02:43 PM
Last Post: deanhystad
  itertools and amazing speed Pedroski55 8 5,309 Nov-11-2022, 01:20 PM
Last Post: Gribouillis
  cs.collections error DaveG 7 4,034 Apr-06-2022, 04:18 PM
Last Post: Larz60+
  a function common to methods of a class Skaperen 7 5,029 Oct-04-2021, 07:07 PM
Last Post: Skaperen
  Trying to understand how isinstance(values, collections.Iterable) work. quazirfan 7 9,049 Aug-10-2021, 08:10 AM
Last Post: snippsat
  Find Common Elements in 2 list quest 4 4,352 Apr-14-2021, 03:57 PM
Last Post: quest
  What happens to a <itertools.permutations object at 0x7fe3cc66af68> after it is read? Pedroski55 3 4,295 Nov-29-2020, 08:35 AM
Last Post: DeaD_EyE
  Check common element in tuples PUP280 10 10,394 Nov-05-2020, 05:01 PM
Last Post: PUP280
  Making lists using itertools and eliminating duplicates. mike3891 2 3,678 Oct-26-2020, 05:39 PM
Last Post: bowlofred
  Python3 itertools.groupby printing the key august 1 3,324 Aug-17-2020, 05:46 AM
Last Post: bowlofred

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020
This forum uses Lukasz Tkacz MyBB addons.
Forum use Krzysztof "Supryk" Supryczynski addons.