Condensing Code

I would like to start it with simple code like the code for "go forward" or "left turn". When i put it together, and start to do things like "go forward then turn left then go forward". then it would be nice to just put a single command instead of twenty lines of code. I have watched a bunch of videos on it, but i don't really understand it. Thanks!