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
  itertools and amazing speed Pedroski55 8 2,054 Nov-11-2022, 01:20 PM
Last Post: Gribouillis
  cs.collections error DaveG 7 1,755 Apr-06-2022, 04:18 PM
Last Post: Larz60+
  Trying to understand how isinstance(values, collections.Iterable) work. quazirfan 7 4,199 Aug-10-2021, 08:10 AM
Last Post: snippsat
  What happens to a <itertools.permutations object at 0x7fe3cc66af68> after it is read? Pedroski55 3 2,402 Nov-29-2020, 08:35 AM
Last Post: DeaD_EyE
  Making lists using itertools and eliminating duplicates. mike3891 2 2,245 Oct-26-2020, 05:39 PM
Last Post: bowlofred
  Python3 itertools.groupby printing the key august 1 2,089 Aug-17-2020, 05:46 AM
Last Post: bowlofred
  Do you keep up with Python Exercises? Donovan 0 1,500 Aug-08-2020, 02:31 AM
Last Post: Donovan
  AttributeError: 'collections.OrderedDict' object has no attribute 'value_counts Kristenl2784 4 7,354 Jul-17-2020, 01:50 AM
Last Post: palladium
  collections.OrderedDict Bert123456 2 1,781 Jul-09-2020, 08:51 PM
Last Post: Bert123456
  ctypes and custom data type (structures, pointer to structures) python_user_n 0 2,662 Jul-08-2020, 05:52 PM
Last Post: python_user_n

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020