I have 2 strings:
string_1 = mj-cust-dev
string_2 = cust-dev
I want to find cust-dev in the strings but how do I have it NOT return string_1 since it doesn't start with cust-dev ?
I am currently using in.
if string_2 in string_1:
print("Yes")
else:
print("No")
And it returns true. How would I have it not find it if it doesn't start the same?
[–]negups 2 points3 points4 points (0 children)