How to change wordpress excerpt length

This is a snippet tutorial that we can use everytime we need to modify the wordpress excerpt to the length we want.

Put this code in your functions.php?and enter the number of length you want let say my example is 35.