All lessons
Advanced

Code · Python

Idiomatic Python.

Target 28 WPM · 92%
WPM 0Accuracy 100%Time 0.0s
def total(items): return sum(x['price'] for x in items if x.get('active'))

Click the box above and start typing.