‫Hey, everyone, and welcome again to this course.
‫So this lecture is just a tutorial on how to complete the coding exercises on the Udemy platform.
‫So here I'm just going to show you an example of how you can complete the exercises.
‫And if you are having trouble, where can you find the solutions and debug your code a bit faster?
‫As an example, this is an exercise on vectors, and we see here that we have this student sage, which
‫is a vector with numeric values.
‫The first exercise asks us to sum the students age in a variable called total ages.
‫Notice that we have total ages assigned to zero right below the question.
‫So questions will not only be done in comments, you'll find the comment below.
‫You'll find which instruction you have to change or if there isn't any instruction, just notice how
‫you have to call the object that you want to create important, for example, total ages equal to zero.
‫What you have to do here is to sum the vector that is already created here in the lines where you have.
‫Don't change this.
‫This is code that is prepared for you to continue to emphasize no need to do anything, just do the
‫exercises.
‫What do you have assignments to zero?
‫Or where do you have some kind of question where there is some kind of requirement on your site to do
‫something?
‫So here I just have to take the zero and use some students h.
‫Then what I can do is I know that here I have to use an eight that are M equals to two because I have
‫to take out that and a from this vector.
‫This is the example of the answer that I can give, and you can do the same for the rest of the exercises
‫that we have here.
‫Several things that are extremely important.
‫Sometimes there are exercises that don't require you to write entire objects.
‫You just have to write some specific position of the object.
‫Pay attention to that.
‫Normally you have some kind of tip in the creation of the new object.
‫OK, from the answer.
‫And then what you have to do is after finishing all the exercises, you will hit check solution and
‫the solution will pass and you can continue for the exercises in your own environment.
‫If there are any or continue with the rest of the course so super important, where can you find the
‫solutions?
‫Depending on the course where you're working on, you'll have a folder called Udemy Platform Coding
‫Solutions or Exercise Solutions.
‫In that folder, you will find each one of the scripts that will make this code pass.
‫Let's see that folder.
‫So there you go.
‫Here I am in the course folder.
‫Udemy Platform Coding Exercise Solutions.
‫I'll go through the Section four vectors, and here I'll have another script that will contain their
‫exercise solutions for our code.
‫If you have a copy in some way this folder to your computer from the Google Drive, just make sure that
‫you have the folder updated.
‫Check the course materials again on the Google Drive.
‫I'm correcting some bugs or doing some updates on the exercises, and you have to have this file updated
‫with the last version.
‫Just make sure that that happens when you try to check the exercise solutions.
‫So I'm going to open this script.
‫This opens this script that contains all the solutions for the exercises.
‫If you are not able to complete all the exercises, please check here.
‫What's the solution?
‫And then you can copy and paste it into the new platform.
‫What I mean to do is to copy this entire code.
‫Go back to Udemy and then just select all this code that is here.
‫Making sure that I don't have anything here and hit Contrave or paste here the code and then perform
‫check solution as this is the solution file that is being evaluated.
‫This code will pass correctly and the exercises are correct.
‫OK.
‫There are some things that may happen while you are doing exercises, and I want to warn you before
‫to avoid frustration.
‫So if there's some kind of compiling error that will be harder to debug, pay attention to where you
‫are putting your parentheses.
‫Pay attention to how you are writing and structuring your code because those small bugs may end up causing
‫a lot of frustration.
‫So really, make sure when you are checking with the solutions that you are really having the same code.
‫If the code is not passing, this has happened, but it is completely normal to have some compiling
‫errors when you are starting to code.
‫But just make sure that every parentheses and every problem that you may have with the code is really
‫correct.
‫OK.
‫So for example, there are injuries related to the question and errors related to compiling.
‫Let me pick up an example if I go here to the Class one and just remove one of the square brackets.
‫This means that this instruction will be incomplete and the code will not compile correctly.
‫Let's see what will happen when I try to check the solution.
‫So here I have some problems.
‫For example.
‫You check an expected symbol in the log squat and watch the log as the question below.
‫So when you have compiling your horse, the our interpreter will not point you to the best place where
‫you are having your AHA.
‫OK?
‫Those compiling a new horse are harder to debug.
‫Just make sure that you have the parentheses correctly set.
‫If in some way you just mess up with the name of a variable, as we will see, for example, class three
‫instead of Class one, when I do check solution, I'll have another type of error.
‫So as you can see here, what?
‫I'll have his class one not far.
‫So this is easier to develop because you knew that if you check here, there are some variables that
‫are missing in your code and you didn't specify them correctly.
‫OK?
‫Another common mistake is just to have some mistake in the object itself.
‫So the object name is correct.
‫But what the object contains is not correct for what is being asked in the question.
‫So, for example, if I change seasons age to 20, while the question asks me to change to 13 and I
‫do check solution, what I'll have is then any on the subject.
‫As you can see, you check your all equal student's age vector tests, not equal to two.
‫That means that your students age noticed that the students age may be here or here.
‫Know that between these parameters of the all equal your object will be, you will notice that there's
‫something in this object that's not correct, according to the question.
‫If I change it again to 13 and do check solution, then that will be correct.
‫Is our interpreter runs top to bottom.
‫OK, so it will stop on the first day that it encounters.
‫That is extremely important.
‫And notice that if you do several mistakes, only the first or related to the first will show appear.
‫If you have some compelling mistake, even if you have another type of the compelling mistake will fail
‫first.
‫For example, I'll change Stephen's age to 20, and this makes the question wrong.
‫But I'll take out this square record here and do check solution.
‫As you will see that inferred that you'll be fired will not be delivered related to the question itself,
‫but to the compiling of the year.
‫Or as you noticed, the structure of the code is wrong.
‫And as the structure of the code is wrong, that therefore will fail first because I can't complete
‫the execution of this code.
‫OK, no matter what we do, this is a common mistake to happen.
‫Just be sure that your code is functioning correctly in terms of the square brackets and you close every
‫function that you have.
‫Alternative is to grab this code and run it directly on our studio in our studio.
‫The error message may be a bit better to interpret if you are still having trouble after these explanations
‫being me, and I'll be able to help you specifically with your question.
‫Just make sure that you are checking all these steps and that in some way you'll understand why your
‫instruction is not working when you compare it with the exercise solutions.
‫So I hope you have fun in this coding exercises, but the exercises are a really important component
‫of learning a new language.
‫I wish you luck, and I'll see you in the next lecture.