Python determines whether a string contains substrings

Time:2020-9-1

Python determines whether a string contains substrings

S =’1234 ask Volvo 434 ‘
If s.find (‘volvo ‘)! = – 1:
Print (‘existence ‘)
else:

Print (‘does not exist ‘)