PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
#Verification check for finding whether a particular key is present in a given string or not
#Inputs: any string literal,
#letter to be searched
string = input("Enter a long string \n")
key = input("Enter the letter to search for: \n")
if(key in string):
#Checks if key is in the string
print("Letter found in string")
#If the Bool value is TRUE
else:
print("Letter not found in string \n")
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run