Searching for a substring in a string
📁 example
Need to find in a string: whether a given substring is contained in the string or not. For example, there is a string sdfssf sddff svvsef xbsdf sdfwwe and need to find out if dff is contained in it or not.
They cannot be 100% necessary, meaning you can't write a program without addition operations, but you can without lambda functions - however, with them it's shorter and more convenient. For example, you need to print a dictionary in descending order of the sum of each value:
bigrams = {""AB"": [10, 11, 12], ""BC"": [5, -5, 8], ""CD"": [105, 1, 0], ""DE"": [6, 6], ""EF"": [15, 20, < Log in to leave an answer