Generators are a special class of functions that simplify the task of writing iterators. Regular functions compute a value and return it, but generators return an iterator that returns a stream of values. Definition as per Python Documentation
#datascience ,#datascience ,#data ,#python,
#computer ,#advanced ,#interview ,