1. เรียนรู้
  2. /
  3. Courses
  4. /
  5. Python 도구 상자

Connected

Exercises

이터러블에 대한 리스트 컴프리헨션

리스트 컴프리헨션은 이터러블을 기반으로 만들 수 있다는 것을 알고 계시죠. 아래에 주어진 객체들 중 어떤 것들에 대해 리스트 컴프리헨션을 만들 수 있을까요?

doctor = ['house', 'cuddy', 'chase', 'thirteen', 'wilson']

range(50)

underwood = 'After all, we are nothing more or less than what we choose to reveal.'

jean = '24601'

flash = ['jay garrick', 'barry allen', 'wally west', 'bart allen']

valjean = 24601

คำแนะนำ

50 XP

คำตอบที่เป็นไปได้