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
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.