Now a simple exercise for you. I hope now all things related to generator are very clear. The exercise is also not going to be very complex, it's rather simple. What you're required to do, you're required to actually test about what you have learned and how you're required to write a generator function which returns the key series. They are calculated using the following formula, the first two numbers of the series is always equal to one, and each consecutive number returned is the sum of the last two numbers. So the first two numbers are one, the first number is one, the second number is one.
The third number is the sum of the first two numbers that is one plus one, two, then the fourth number is two plus one, three, and so on. And you can easily do it the hint is, can you use two variables in the generator function? Yes, you can do it easily. And the second hint is the assignment of variables can be done simultaneously. So at a time you can assign two values to two different variables together. And this is the hint.
It's something very easy to do within three to four lines of code, you can easily do it