Iterables पर list comprehension
आप जानते हैं कि list comprehensions को iterables पर बनाया जा सकता है। नीचे दिए गए ऑब्जेक्ट्स में से किन पर हम list comprehensions बना सकते हैं?
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
यह अभ्यास पाठ्यक्रम का हिस्सा है
Python टूलबॉक्स
इंटरैक्टिव व्यावहारिक अभ्यास
हमारे इंटरैक्टिव अभ्यासों में से किसी एक के साथ सिद्धांत को व्यवहार में बदलें
अभ्यास शुरू करें