Discuss / Python / L2

夕桐

#1 Created at ... [Delete] [Delete and Lock User]
# -*- coding: utf-8 -*-
L1 = ['Hello', 'World', 18, 'Apple', None]
L2 = [L.lower() for L in L1 if isinstance(L, str)]
print(L2)

  • 1

Reply