Should I take a real course or watch youtube to learn UE4?

Well, courses will give you basic theory just like youtube. So it’s more of how much patience do you have.
If you don’t have a lot of money and you have a lot of patience - youtube is a great option. Personally I chose this path.
If you have money and low on patience (when it’s better for you that somebody drags you to learn somethings) then courses are your thing.

Here is a good library of videos explaining most of UE4 features including blueprints and so on

I am relatively new to Unreal Engine 4 and I want to get into game development. I would like to learn more about blueprint scripting and coding in the engine. (I am aware there are other components in a game other than learning the blueprint scripting such as sound design or 3D modelling.) So my question is should I rely on a combination of watching youtube videos and self teaching to gain knowledge of blueprints or should I find a real life course I would have to pay for that involves formal teaching.

Def would go the YouTube route. Why pay for something you can get for free. The basics are def. on YouTube! Maybe a course when you want to do some more advanced stuff and really get deep into the engine. But if you are just starting out I would say you can get pretty far on YouTube. I started off about 2 years ago not knowing anything at all about what a game engine even was, I just wanted to create things so I went to YouTube and learned a lot without spending a dime. Now I am working on making my own tutorials and sharing what I know on YouTube. I think you can’t go wrong with free. I second the above videos, I watched Mathew’s stuff early on myself. There are a few other good people to watch as well like Dean Ashford and Virtus Learning Hub.

Here is a link to my channel

This is Dean

And Virtus

And if you have any specific questions just post here the community has gotten more active since I started for sure.