We can define Dictionary as a collection of keys-values pairs which are unordered, mutable and indexable. Dictionaries in Python are written with the use of curly brackets and between curly brackets, we define our key-value pairs separated with colons : .between each pair. Just like the lists in Python you can manipulate them. A Python dictionary […]
5 comparisons between generator function and generator expression in Python
In our previous post, we have learned about Generator expressions and how we can create generator functions and print values from it. Here, in this post, we will try to learn about generator expression and generator function both but more specifically generator functions in python. Also, we will do some quick comparison between both of them […]