Write a program which accepts a string as input to print "Yes" if the string is "yes" or "YES" or "Yes", otherwise print "No".


Topic: Write a program which accepts a string as input to print "Yes" if the string is "yes" or "YES" or "Yes", otherwise print "No".

Solution

s= input()
if s=="yes" or s=="YES" or s=="Yes":
    print("Yes")
else:
    print("No")



List all Python Programs