WAP to enter a String and check whether it starts with letter 'A'/'a' or not. Display an appropriate message.
Answers
Answered by
0
Explanation:
Python program to check whether it starts with letter 'A'/'a' or not
text = input("Enter a string: ")
if text.startswith('a') or text.startswith('A'):
print("The text starts with 'a' or 'A'")
else:
print("The text does not start with 'a' or 'A'")
Similar questions
Math,
4 months ago
English,
4 months ago
Math,
9 months ago
Math,
9 months ago
India Languages,
1 year ago