In this we are going to see a program on if a letter expected occurs the execution is ended in Python Programming Language.
expected_letter = 't'
while(True):
letter = input("Enter The Letter : ")
if letter == expected_letter:
print("Expected Letter Appeared")
break
else:
print("Not Expected Letter")
# Coded By DHIRAJ SHELKE
#ENJOY CODING
Post a Comment
FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP