In Python, you can use the islower() method to check whether a character is a lowercase letter. Here's an example:
s = input('Type a word: ')
lowercase_letters = []
for char in s:
if char.islower():
lowercase_letters.append(char)
print("Lowercase letters in the string:", lowercase_letters)
In the above code, the islower() method is used to check each character in the string s. If a character is a lowercase letter, it is added to the lowercase_letters list. Finally, the program prints the lowercase letters found in the string.
You can also achieve the same result using a list comprehension in a more concise way:
s = input('Type a word: ')
lowercase_letters = [char for char in s if char.islower()]
print("Lowercase letters in the string:", lowercase_letters)
Both examples will prompt you to enter a word and then display the lowercase letters present in that word.