Give examples of (i) a set that is not a closed, bounded interval, but nevertheless contains its supremum and infimum, and (ii) a set that is not an open interval but nevertheless does not contain it supremum or infimum. I've tried to look into the definition of open sets and closed sets. There's a question which I've proved earlier Q. Show that a closed, bounded interval contains is supremum and infimum and that an open interval contains neither. But I couldn't think of an example.
This is a question from Scharamm's book of Real Analysis. Edit: I realised that not open sets don't mean closed sets. P.S I'm a beginner in Analysis. Also I am new to stackexchange community.
i. Remove a point from a closed bounded interval.
ii. A half open set.