numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
filtered_nums = [x for x in numbers if x < 4 or x > 7]
print(filtered_nums)
filtered_nums = [x for x in numbers if x < 4 or x > 7]
print(filtered_nums)
words = ['crash', 'flash', 'cash', 'brush', 'dish', 'fish', 'wish', 'work']
sh_words = [word for word in words if word.endswith('sh')]
print(sh_words)
sh_words = [word for word in words if word.endswith('sh')]
print(sh_words)
numbers = [12, 345, 6789, 90, 5678, 1234]
even_3char_nums = [str(num) for num in numbers if num % 2 == 0 and len(str(num)) == 3]
print(even_3char_nums)
even_3char_nums = [str(num) for num in numbers if num % 2 == 0 and len(str(num)) == 3]
print(even_3char_nums)