Python · Module
itertools
itertools.dropwhile() skips items at the beginning of an iterable while a predicate is true. After the first false result, it yields the rest unchanged.
Last updated
Syntax
itertools.dropwhile(predicate, iterable)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
takewhile()filterfalse()compress()islice()