In this video, we are going to learn how to download and install pycharm IDE and reduce function in a python programming language. ________________________________________________________________ Full Playlist : https://www.youtube.com/playlist?list=PL0zysOflRCel7fKZ_bBjlxA0XsHlbsv7P source code: __________________________________________________________________ Learn Python in One Video in Hindi : https://youtu.be/7GYHAJdHFbE Learn Core Java Basics : https://youtu.be/9yBlFPKiCdY Learn Servlet in Hindi: https://www.youtube.com/playlist?list=PL0zysOflRCel5BSXoslpfDawe8FyyOSZb Learn JDBC Programming : https://www.youtube.com/playlist?list=PL0zysOflRCenjuvOwumYLG9TCsEQZrV2M Learn c,java,python,kotlin basics : https://www.onlyjavatech.com/ TechSoft INDIA official website: https://www.techsoftindia.co.in/ Durgesh Tiwari Website : https://www.durgeshkumartiwari.com/ Follow me on Instagram: https://www.instagram.com/durgesh_k_t/ topic covered: pycharm installation, how to install pycharm , how to install pycharm in hindi, how to douwnload pycharm in hindi, what is reduce function in python, how to use reduce function in python, how to sum of list using reduce function, how to find minimum using reduce function
# reduce function
import functools
# def sum(x, y):
# return x + y
mylist = [4, 2, 9, 2, 6]
print(mylist)
# ans = functools.reduce(sum, mylist)
# 6
# 15
# 17
# 23
# print(ans)
min = functools.reduce(lambda x, y: x if x < y else y, mylist)
print(min)
max = functools.reduce(lambda a, b: a if a > b else b, mylist)
print(max)