+ 2
I am confused what impure function really are! Can someone clear it please!
2 Answers
+ 2
https://code.sololearn.com/cV5aC4X3SqGL/?ref=app
Maybe this code bit helps
+ 5
Pure functions are those that have a return or yield statement whereas impure are those which give the output but don't return it!
They either print it or change the variable values