DataScience - Generator Functions
If we write range(10), it will return an object not the data.For getting the data we need to add for loop as:for i in range(10): print(i)
We can also take elements into list but it will do a lot of memory consumption if there are millions of elements...
karansss.hashnode.dev3 min read