The coconut is the fruit of the coconut palm (Cocos nucifera), commonly called the coconut nut. When the coconuts are stripped of their fibrous, woody outer husk, a white flesh is obtained that is quite firm and very tasty.
Copra (the kernel) is the raw material for making the oil, which is obtained by pressing the copra and possibly refining it (rather as happens with olive oil, except that with coconut there is no way of knowing whether it is of “extra virgin” quality, but on average it is still preferable to other oils such as palm oil).