Python: Find the numbers of a given string and store them in a list, display the numbers which are bigger than the length of the list in sorted form
Write a Python program to find the numbers in a given string and store them in a list. Afterward, display the numbers that are longer than the length of the list in sorted form. Use the lambda function to solve the problem.
Sample Solution:
Python Code :
Sample Output:
Original string: sdf 23 safs8 5 sdfsd8 sdfs 56 21sfs 20 5 Numbers in sorted form: 20 23 56
Python Code Editor:
Have another way to solve this solution? Contribute your code (and comments) through Disqus.
Previous: Write a Python program to find all anagrams of a string in a given list of strings using lambda.
Next: Write a Python program that multiply each number of given list with a given number using lambda function. Print the result.
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics