We have a piece of code that we saw earlier in Lesson 2. Let’s use it as an example to…