Pickles is one of the most important feature of Python. Pickle in Python is a representation of an object as a string of bytes. These bytes can be saved in a database, different file path or altogether into a different computer. Later, these bytes can be reassembled to form the original Python object which isContinue reading “Pickles”
Tag Archives: python collections
Lambda Functions
Lambda functions are small and anonymous functions. Lambda function can take ‘n‘ number of arguments, but will have only one expression. To create a Lambda function in Python, we need use Lambda keyword. Let’s see with an example. If we assign a function to a variable, it becomes an anonymous function and thus a lambdaContinue reading “Lambda Functions”
Dictionaries Again
We saw in the previous posts how to retrieve items from Dictionaries. Now, let’s learn other operations associated with Dictionaries in Python. Length of Dictionaries We have created a dictionary called as personDict. We can find the length of Dictionaries as shown below. Example: Output: This will display the number of items in a dictionary.Continue reading “Dictionaries Again”