Filter Function in Python February 10, 2022 # This code with print greater then n(5) numbers are available in listl = [1,2,3,4,5,6,7,8]def greater(n): return n>5g = list(filter(greater,l))print(g) Share Get link Facebook X Pinterest Email Other Apps Share Get link Facebook X Pinterest Email Other Apps Comments
Comments
Post a Comment