You should have a pre-workout snack 1-2 hours before exercise if you will be working out for more than 1 hour. It should consist of mostly carbohydrates with some protein and fat. You should have a post-workout snack within 30 minutes afterward containing some carbohydrates with some protein and fat. Some examples are a PB&J sandwich, trail mix, cheese and wheat crackers, greek yogurt and fruit.
Blog: https://nutritionhealthworks.com/nutrition-blog/pre-and-post-workout-nutrition/