You asked
Which single canon lens works for both portraits and close up shots?
The guide doesn't name one Canon lens for both portraits and close-ups, and its material doesn't cover close-up or macro focusing, so it can't say which lens focuses closest. For portraits, its pick is the 50mm f/1.8. The guide calls it the cheapest great lens in photography and made for almost every mount, so if you want one lens for people, this is the one to buy. Portraits lenses
On an APS-C Canon body such as the EOS 80D, the 50mm behaves like a classic 75-80mm portrait lens. That's a comfortable distance for headshots, and the wide aperture gives the soft background that makes portraits stand out. The crop factor is explained in focal length, and sensor sizes covers why APS-C changes the view.
Because the guide doesn't cover close-up performance, you'll need to check each lens's closest focusing distance yourself before deciding. If close-up detail is your main goal, look for a lens built for it rather than relying on a portrait lens. The gear catalogue lists the lenses for your mount.
Written by Claude from this site's pages.
From these pages
This answer is for the question above. Each answer is written for the exact question in its address, so a question with its details in it (a budget, what you shoot, what you already have) gets an answer about those details. An answer draws on all 15 pages of the guide and its catalogue of 320 cameras and 1050 lenses. Another question gets its own answer at its own address, as words after /ask/. Or fill in your own: /ask/which-camera-for-{what-you-shoot}-under-{budget}-euros or /ask/which-lens-for-{what-you-shoot}-on-{your-camera}.