There are two ways to check whether one Python string s1 contains another string s2:
1) Use the expression s2 in s1, or
2) Use the find method s1.find(s2).
Read the full article at:
https://blog.finxter.com/python-strin...
~~~
Become a better coder! Download the 5x Python Cheat Sheet Course (PDF). It’s free!
** Click: https://blog.finxter.com/subscribe/ **
🐍 Cheating in Python? Of course! 🐍
See you soon -- it’s fun! 🤓
~~~
Experts in their fields read more books! Become a Python expert:
... [Book] Coffee Break Python -- https://blog.finxter.com/coffee-break...
... [Book] Coffee Break NumPy -- https://blog.finxter.com/coffee-break...
And become a Python master the fun way!
~~~
Start earning money by creating your own Python coding business (free webinar):
https://blog.finxter.com/webinar-free...
In questa pagina del sito puoi guardare il video online How to Check if a Python String Contains Another String? della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Finxter 04 settembre 2019, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 4,577 volte e gli è piaciuto 40 spettatori. Buona visione!