I want to confirm my answer
The question is:- Find a closed set in R which is neither compact nor connected.
Can I write {1} union [0,infinity) ?
Next I am in search of example of a function f: X--> Y such that X is connected metric space but f(X) is disconnected subset of metric space Y. I know R is connected metric space with usual metric