We have an assignment to make a cup and my teacher made smooth circle shaped edges with only a few vertices in the instructions. However he did not explain how. I've tried with loop tools -> sphere, but that wasn't any help.
How do you achieve the result in the second image?