We're a place where coders share, stay up-to-date and grow their careers.
The * is used to define that method as a generator function which allows you to use the yield keyword.
*
yield
Thanks!
The
*
is used to define that method as a generator function which allows you to use theyield
keyword.Thanks!