Yes they are a bit easier on the electric guitar but mastering it will take some time on either if you are totally new to it.
The kind of exercise you are talking about is called a trill exercise. A trill is a combination of 2 notes played repeatedly using a hammer on to move from the lower note to the higher, followed by a pull-off for moving from higher to lower.
It needs some patience. Initially, practice it at a low tempo and use an exaggerated side-wise motion to actually pluck it with the fretting hand as you pull-off. Do this at really slow tempo (something like 60 bpm, 1 quarter note per beat). Try to master it on 1-3 finger combo first as this is the easiest and the most common trill.
If you feel pain in the hand or in the muscles between the joints of the finger, STOP and shake your hand a couple of times and rest for a few minutes. This is very important to avoid injury to your tendons of the hand. Fingertips might hurt but that's usual for anyone new to guitar.
Once you are able to play the notes clearly and distinctly, speed up. As you speed up you will notice that you will need lesser side-wise motion to make it sound out and your trill will be a lot more fluid.
-- My current rig
Guitar: '98 MIJ Ibanez RG520 QS w EMG 81/60
Amp: Laney LC15R Tube, Fernandes 20W SS
Pedals: MI Audio Tube Zone Overdrive, Boss OD3, CS3, MT2, HM2, DS2, CE5, DD7, TU3, Beta Aivin DD2 Delay, Dunlop Crybaby 95Q, Stranger Vol Pedal, BBE SupaCharger
Others: Yamaha RBX 374 Bass, Yamaha MM-6 Synth, M-Audio Fast Track, Shure SM-57, Heet Sound E-Bow Plus
Wanted(pm if selling): EB VPJr/Boss FV500L,Ibanez w Original/Lo-Pro Edge