0

Functional programming

Can somebody please explain me what functional proframming is and what pure and unpure functions are. I have learned them on Sololearn now, but I can't understand them, I have no idea at all about them. Can somebody please explain me what they are, with example? Thank you

23rd May 2022, 10:07 AM
Danish Zubair
Danish Zubair - avatar
10 Answers
23rd May 2022, 10:33 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 2
Rik Wittkopp Thank you so much for your examples. Very helpful.
24th May 2022, 4:46 PM
Nraelolos
+ 1
first of all , Python is not a functional programming language, but it is a multi-paradigm language that makes functional programming easy to perform, and easy to mix with other programming styles and Your function is pure if it does not contain any external code. Otherwise, it is impure if it includes one or more side effects. I'm sorry i don't provide you right now here an examples. wait for others reply may be someone can provide a brief explanation with example too.
23rd May 2022, 10:15 AM
Davinder Kumar
Davinder Kumar - avatar
+ 1
Davinder Kumar ok, thank you
23rd May 2022, 10:25 AM
Danish Zubair
Danish Zubair - avatar
+ 1
Rik Wittkopp thank you soo much
23rd May 2022, 10:28 AM
Danish Zubair
Danish Zubair - avatar
+ 1
Danish Zubair You're welcome 😁👍
23rd May 2022, 10:34 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 1
Rik Wittkopp thank you soo much
23rd May 2022, 10:35 AM
Danish Zubair
Danish Zubair - avatar
23rd May 2022, 10:24 AM
Stefanoo
Stefanoo - avatar
0
https://code.sololearn.com/c08UeWpKv21r/?ref=app
23rd May 2022, 10:26 AM
Rik Wittkopp
Rik Wittkopp - avatar
0
Stefanoo thank you
23rd May 2022, 10:29 AM
Danish Zubair
Danish Zubair - avatar