I want to use a list comprehension to create a list containing the numbers greater than 5 from the following text: "I have bought 10 cameras of which only 7 are working, while the other three are broken". I have been able to write a script to know if there are numbers in that sentence, but I am not able to extract them in a new list.
str1 = ('I have bought 10 cameras of which only 7 are working, while the other three are broken')
print(any(map(str.isdigit,