As previously stated, there are two ways to do this. You can sweat the pipe directly to the valve, but these is a risk involved, especially for a novice. Get the valve too hot and it's toasted. The second way, the safer way, is to sweat a male adapter to a short length of copper pipe. Then screw the adapter into the valve following HJ's suggestion. Tight or tighter and use some pipe dope. Now, you can sweat fittings on the other end of the copper pipe without overheating the valve. With little planning you won't have to make a second cut on those short pieces of pipe.