How It WorksPricing🔥Interactive Engineering Learning🤩 Free Career AdviceAboutContact
Log In
Add to Slack

debugging Magic Quiz

Test your knowledge of debugging by answering this quiz!
Question 1 of 1

Given the following code in Python:

from functools import reduce

items = [
  {'a':1},
  {'b':2},
  {'c':3},
  {'d':4},
]

result = [val for arr in items for val in arr]

print(reduce(lambda acc, n: acc + n, result, ''))

What will be printed to the console?


  • 10
  • "10"
  • "abcd"
  • [{'a':1}, {'b':2}, {'c':3}, {'d':4}]
How do you stack up?
My Progress
Percentage of Total Answers Correct
0 / 0
0%

Breakdown by Tag
python
0 / 0
0%
0 / 0
0%
SkillMagic

How It Works