#38 Python Tutorial for Beginners | Filter Map Reduce in Python


Video is ready, Click Here to View ×

Python Tutorial to learn Python programming with examples
Complete Python Tutorial for Beginners Playlist : https://www.youtube.com/watch?v=hEgO047GxaQ&t=0s&index=2&list=PLsyeobzWxl7poL9JTVyndKe62ieoN-MZ3
Python Tutorial in Hindi : https://www.youtube.com/watch?v=JNbup20svwU&list=PLk_Jw3TebqxD7JYo0vnnFvVCEv5hON_ew

Check out our website: http://www.telusko.com

Follow Telusko on Twitter: https://twitter.com/navinreddy20

Follow on Facebook:
Telusko :…

25 thoughts on “#38 Python Tutorial for Beginners | Filter Map Reduce in Python

  1. Sir,
    Could You Please Tell me Why are you not using parantasis (I mean round Brackets ) when calling the functions like update(During Demonstration) in using map function And still Program is Working
    doubles = list(map(update,nums)) Why not doubles = list(map(update(),nums))

  2. Take a list of temperatures in Celsius
    1)WAP CONVERT it into Fahrenheit using LAMDA and MAP and print
    2)WAP using LAMDA and Filter to find The temp of the list which is more than 38 and PRINT
    3)WAP using LAMDA and reduce to Find the maximum Temp of the given Celsius list and Print
    from _functools import reduce

    Celsius = [39.2, 36.5, 37.3, 37.8]
    Fahrenheit = list(map(lambda x: (float(9)/5)*x + 32, Celsius))
    print("convert temp into Farenhite",Fahrenheit)

    temp=list(filter(lambda x:x>38,Celsius))
    print("The temperature which is more than 38",temp)

    F=lambda a,b:a if a>b else b
    print("check which is the highest temp in the list",highesttemp)

  3. nums =[1,2,3,4,5,6,7]
    evens = list(map(lambda n: n % 2 == 0,nums))
    if the function is a condition then it will give true or false according to the input
    output : [False, True, False, True, False, True, False]

  4. I have made a use of lambda and map() method and would like to share ..
    And here is the snippet :
    a,b=[int(x) for x in input("Enter two values seperated with spaces : ").split()]
    tup=( lambda c,d : c+d, lambda c,d : c-d , lambda c,d : c*d , (lambda c,d : (c+d)/2))

    dic=dict(zip(('Sum' , 'Difference' , 'Product' , 'Average'),map(lambda x : x(a,b),tup)))

    for j in dic:
    print("{} : {}".format(j,dic[j]))

    Hope this gets useful in some way.
    Thank You ๐Ÿ™‚

  5. i have some doubts bro. i cant understand these syntax (i.e) request.setTimeout(timeout[, callback]), request.setSocketKeepAlive([enable][, initialDelay]), request.end([data[, encoding]][,callback]). i can understand basic syntax like run(a,b) is a function with two params, but these syntax makes me confusing … (timeout[, calback]), ([enable][,initialDelay]), ([noDelay]), ([data[, encoding]][, callback]]). i hope u can clear my doubts. thanks for your useful videos

Leave a Reply

Your email address will not be published. Required fields are marked *