I need to import a private key - what is the entire process? [Electrum] I need to import a private key like in this question for a p2wpkh-p2sh address. What is the entire process?
The entire process is as follows: (these instructions are correct for Electrum v3.0.6)


Install Electrum. The installation methods vary but, the official download is here. On some varieties of Linux it is in the default distro repository.
Run Electrum.


Choose Automatically Connect and click on Next.
Name your wallet if you like or accept the default and click on Next.
Select Standard Wallet and click on Next.
Select Create a new seed and click on Next.
Select Segwit and click on Next.
Securely, privately and accurately store your seed. This is your wallet backup. If it is lost all your BTC is gone permanently. Click on Next.
Type your seed in the box and click on Next to verify you have it correctly.
Set a good password that you will never forget. This must be secure to ensure your wallet cannot be stolen. Click on Next.
Your wallet is setup.

With Electrum setup and running, go to View -> Show console.
Click on the Console tab.
Using the instructions from here:


Type (or copy and paste) at the >> prompt key = 'your_key' and press Enter (leave the single quotes in).
Type (or copy and paste) at the >> prompt txin_type, secret, compressed = bitcoin.deserialize_privkey(key) and press Enter.
Type (or copy and paste) at the >> prompt wif2 = bitcoin.serialize_privkey(secret, compressed, 'p2wpkh-p2sh') and press Enter.
Type (or copy and paste) at the >> prompt print(wif2) and press Enter.

Highlight and copy the one-line string that is output (make sure you do not get any extra spaces) in your clipboard or, write it down.
Click on Wallet -> Private Keys -> Sweep
Paste the string you copied into the big box. The address that is pre-filled in starting (as of writing) with bc1 is one of your many receiving addresses. The balance will be transferred to that address.
Click on Sweep and follow the prompts (I didn't proceed to actually do this step - when I originally tested I used completely different steps to 'Import, not Sweep' just to prove it worked and not take the balance).
This will create a Bitcoin transaction transferring the balance to your own address.
Wait for at least 1 confirmations.


Done!

If you just want to import the address to make sure it is correct without trying to sweep you need different steps.