0
String follows the pattern or not???
This is a program that Check if string follows order of characters defined by a pattern or not For example: Input: ahhellllloou Output: YES Input: hlelo Output: NO đœđȘđ© đđ© đđ€đđšđŁ'đ© đŹđ€đ§đ đŹđđ©đ đ©đđđšđ đđŁđ„đȘđ©đš...đđđ??? https://code.sololearn.com/cI5VI2rE1gqu/?ref=app
1 Resposta
+ 1
Sry, I don't understand your logic. But actually you can simply do this for same output :
pat = "hello"
talk = input()
print(pat in talk)
edit :
is first case have pattern "hello" ? how yes?