p
y
c
h
a
l
l
e
n
g
e
r
Home
Intermediate Python
Working With Iterables II
Working With Iterables II
dict comprehension
set comprehension
enumerate
sorted
reversed
all
any
NEXT
Dict and Set Comprehensions
LESSON
Exercise: Dict Comprehension from zip()
CHALLENGE
Exercise: Dict Comprehension — Word Lengths
CHALLENGE
Exercise: Set Comprehension — Unique Values
CHALLENGE
The enumerate() Function
LESSON
Exercise: Labeled List with enumerate()
CHALLENGE
Exercise: enumerate() with start=
CHALLENGE
Exercise: Index-to-Value Dict with enumerate()
CHALLENGE
Sorting and Reversing Sequences
LESSON
Sort a List with sorted()
CHALLENGE
Sort a List in Descending Order
CHALLENGE
Reverse a Sequence with reversed()
CHALLENGE
Sorting with a Key Function
LESSON
Exercise: Sort by Length
CHALLENGE
Exercise: Case-Insensitive Sort
CHALLENGE
Exercise: Sort by Absolute Value
CHALLENGE
Testing Conditions with all() and any()
LESSON
Check if Any Number is Positive
CHALLENGE
Check if All Numbers Are Even
CHALLENGE
Combine all() and any()
CHALLENGE
Test: Working with Iterables
EXAM