How can we check if one string contains another substring?



How can we check if one string contains another substring?..

Answer / Rupesh Kumar Paswan

You can use the `in` operator in Python to check whether a substring is present within another string.n``pythonnsome_string = 'Hello, World!'nsome_substring = 'World'nif some_substring in some_string:n print('Found!')

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Windows General Interview Questions

How can you backup and restore DC

4 Answers   IBM,


Is apple os more secure than windows?

1 Answers  


Should I use a registry cleaner windows 10?

1 Answers  


How can you find and replace text in a file using the windows command-line environment?

1 Answers  


Can we run sh file in windows?

1 Answers  


Should I turn off background apps windows 10?

1 Answers  


How do I fix 0xc000007b?

1 Answers  


Who invented windows?

1 Answers  


How can I replace windows xp with windows 7?

1 Answers  


What is the cost to upgrade from windows 7 to windows 10?

1 Answers  


Can I upgrade to windows 8 from windows 7 without losing data?

1 Answers  


How can I upgrade my windows 7 to windows 10 for free?

1 Answers  


Categories