Computer Science, asked by deeptanshuyadav4, 6 months ago

WAP to enter a String and check whether it starts with letter 'A'/'a' or not. Display an appropriate message.

Answers

Answered by bktbunu
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