René's URL Explorer Experiment


Title: Check if a Python String Contains a Substring (Summary) (Video) – Real Python

Open Graph Title: Check if a Python String Contains a Substring (Summary) – Real Python

Description: And that’s a wrap. You’re at the end of How to Check if a Python String Contains a Substring. And you’ve learned quite a lot in this course. Now you do have the skills to figure out whether there is actually the word "secret" in this long text, and…

Open Graph Description: And that’s a wrap. You’re at the end of How to Check if a Python String Contains a Substring. And you’ve learned quite a lot in this course. Now you do have the skills to figure out whether there is actually the word "secret" in this long text, and…

Opengraph URL: https://realpython.com/lessons/python-string-contains-substring-summary/

X: @realpython

direct link

Domain: realpython.com


Hey, it has json ld scripts:
  {
    "@context": "https://schema.org",
    "@type": "VideoObject",
    "name": "Check if a Python String Contains a Substring (Summary)",
    "description": "And that’s a wrap. You’re at the end of How to Check if a Python String Contains a Substring. And you’ve learned quite a lot in this course. Now you do have the skills to figure out whether there is actually the word \u0022secret\u0022 in this long text, and…",
    "thumbnailUrl": ["https://files.realpython.com/media/How-to-Check-if-a-String-Contains-Another-String_Watermarked.ad5138507ec7.jpg"],
    "uploadDate": "2023-04-04T14:00:00+00:00",
    "duration": "PT2M22S",
    
    "potentialAction": {
      "@type": "SeekToAction",
      "target": "https://realpython.com/lessons/python-string-contains-substring-summary/#t={seek_to_second_number}",
      "startOffset-input": "required name=seek_to_second_number"
    }
  }
  

authorReal Python
twitter:cardsummary_large_image
twitter:imagehttps://files.realpython.com/media/How-to-Check-if-a-String-Contains-Another-String_Watermarked.ad5138507ec7.jpg
og:imagehttps://files.realpython.com/media/How-to-Check-if-a-String-Contains-Another-String_Watermarked.ad5138507ec7.jpg
twitter:creator@realpython
og:typevideo.episode

Links:

https://realpython.com/
Start Herehttps://realpython.com/start-here/
Learn Python https://realpython.com/lessons/python-string-contains-substring-summary/
Python Tutorials →In-depth articles and video courseshttps://realpython.com/search?kind=article&kind=course&order=newest
Learning Paths →Guided study plans for accelerated learninghttps://realpython.com/learning-paths/
Quizzes & Exercises →Check your learning progresshttps://realpython.com/quizzes/
Browse Topics →Focus on a specific area or skill levelhttps://realpython.com/tutorials/all/
Community Chat →Learn with other Pythonistashttps://realpython.com/community/
Office Hours →Live Q&A calls with Python expertshttps://realpython.com/office-hours/
Podcast →Hear what’s new in the world of Pythonhttps://realpython.com/podcasts/rpp/
Books →Round out your knowledge and learn offlinehttps://realpython.com/products/books/
Reference →Concise definitions for common Python termshttps://realpython.com/ref/
Code Mentor →BetaPersonalized code assistance & learning toolshttps://realpython.com/mentor/
Unlock All Content →https://realpython.com/account/join/
More https://realpython.com/lessons/python-string-contains-substring-summary/
Learner Storieshttps://realpython.com/learner-stories/
Python Newsletterhttps://realpython.com/newsletter/
Python Job Boardhttps://www.pythonjobshq.com
Meet the Teamhttps://realpython.com/team/
Become a Tutorial Writerhttps://realpython.com/write-for-us/
Become a Video Instructorhttps://realpython.com/become-an-instructor/
Searchhttps://realpython.com/search
https://realpython.com/search
Joinhttps://realpython.com/account/join/
Sign‑Inhttps://realpython.com/account/login/?next=%2Flessons%2Fpython-string-contains-substring-summary%2F
Unlock This Lessonhttps://realpython.com/account/join/?utm_source=rp_lesson&utm_content=python-string-contains-substring
Unlock This Lessonhttps://realpython.com/account/join/?utm_source=rp_lesson&utm_content=python-string-contains-substring
https://realpython.com/courses/python-string-contains-substring/#team
Check if a Python String Contains a Substringhttps://realpython.com/courses/python-string-contains-substring/
Martin Breusshttps://realpython.com/courses/python-string-contains-substring/#team
Recommended Tutorialhttps://realpython.com/python-string-contains-substring/
Course Slides (PDF)https://realpython.com/courses/python-string-contains-substring/downloads/python-string-contains-substring-slides/
Sample Code (ZIP)https://realpython.com/courses/python-string-contains-substring/downloads/python-string-contains-substring-code/
Ask a Questionhttps://realpython.com/lessons/python-string-contains-substring-summary/#discussion
https://realpython.com/feedback/survey/course/python-string-contains-substring/liked/?from=lesson-title
https://realpython.com/feedback/survey/course/python-string-contains-substring/disliked/?from=lesson-title
Contentshttps://realpython.com/lessons/python-string-contains-substring-summary/#description
Transcripthttps://realpython.com/lessons/python-string-contains-substring-summary/#transcript
Discussionhttps://realpython.com/lessons/python-string-contains-substring-summary/#discussion
Unlock This Lessonhttps://realpython.com/account/join/?utm_source=rp_lesson_preview&utm_content=python-string-contains-substring
Sign-Inhttps://realpython.com/account/login/
Unlock This Lessonhttps://realpython.com/account/join/?utm_source=rp_lesson_preview&utm_content=python-string-contains-substring
Sign-Inhttps://realpython.com/account/login/
00:00https://realpython.com/lessons/python-string-contains-substring-summary/#t=0.64
And that’s a wrap.https://realpython.com/lessons/python-string-contains-substring-summary/#t=0.64
You’re at the end of How to Check if a Python String Contains a Substring.https://realpython.com/lessons/python-string-contains-substring-summary/#t=1.58
And you’ve learned quite a lot in this course.https://realpython.com/lessons/python-string-contains-substring-summary/#t=5.52
00:08https://realpython.com/lessons/python-string-contains-substring-summary/#t=8.94
Now you do have the skills to figure out whether there is actually the wordhttps://realpython.com/lessons/python-string-contains-substring-summary/#t=8.94
"secret" in this long text,https://realpython.com/lessons/python-string-contains-substring-summary/#t=12.44
and you can download the slides for this course in the supporting materials andhttps://realpython.com/lessons/python-string-contains-substring-summary/#t=14.42
then actually copy/paste this text.https://realpython.com/lessons/python-string-contains-substring-summary/#t=18.28
00:20https://realpython.com/lessons/python-string-contains-substring-summary/#t=20.17
So this is a little task that I want to send you off with.https://realpython.com/lessons/python-string-contains-substring-summary/#t=20.17
Take this long text and then apply the different ways that you learned to identifyhttps://realpython.com/lessons/python-string-contains-substring-summary/#t=23.35
a substring in a text and figure out whether the word "secret" appears in here.https://realpython.com/lessons/python-string-contains-substring-summary/#t=28.04
00:34https://realpython.com/lessons/python-string-contains-substring-summary/#t=34.38
And these are the topics that you covered in this course. First,https://realpython.com/lessons/python-string-contains-substring-summary/#t=34.38
you learned how to confirm the presence of a substringhttps://realpython.com/lessons/python-string-contains-substring-summary/#t=37.57
and that the best way to do this in Python is using the in operator.https://realpython.com/lessons/python-string-contains-substring-summary/#t=39.61
00:43https://realpython.com/lessons/python-string-contains-substring-summary/#t=43.6
Then you learned how you can generalize that check by removing the casehttps://realpython.com/lessons/python-string-contains-substring-summary/#t=43.6
sensitivity, and you did that by lowercasing,https://realpython.com/lessons/python-string-contains-substring-summary/#t=46.89
the string that you’re searching in. Next,https://realpython.com/lessons/python-string-contains-substring-summary/#t=49.57
you’ve worked with a couple of string methods that you can use to learn morehttps://realpython.com/lessons/python-string-contains-substring-summary/#t=52.13
about the substring,https://realpython.com/lessons/python-string-contains-substring-summary/#t=55.33
such as using .count() to figure out how often does it appear in the texthttps://realpython.com/lessons/python-string-contains-substring-summary/#t=56.28
or using .index() to figure out the location of the substring.https://realpython.com/lessons/python-string-contains-substring-summary/#t=60.94
01:06https://realpython.com/lessons/python-string-contains-substring-summary/#t=66.79
And that led us over to a situation where maybe you want to work more with thehttps://realpython.com/lessons/python-string-contains-substring-summary/#t=66.79
substring or you want to apply some conditions to the search.https://realpython.com/lessons/python-string-contains-substring-summary/#t=71.13
And both of that works well when you’re using regular expressions with the rehttps://realpython.com/lessons/python-string-contains-substring-summary/#t=74.31
module. And you’ve seen a couple of examples of how to do that. And finally,https://realpython.com/lessons/python-string-contains-substring-summary/#t=79.09
you also learned how you can confirm the presence of a substring inside of ahttps://realpython.com/lessons/python-string-contains-substring-summary/#t=83.69
pandas DataFrame column and look at the pandas way of doing that by usinghttps://realpython.com/lessons/python-string-contains-substring-summary/#t=88.25
.str.contains(). That’s all for this course.https://realpython.com/lessons/python-string-contains-substring-summary/#t=93.29
01:37https://realpython.com/lessons/python-string-contains-substring-summary/#t=97.8
There’s a couple of resources that I already shared,https://realpython.com/lessons/python-string-contains-substring-summary/#t=97.8
and here’s some other articles and courses where you can continue your learning.https://realpython.com/lessons/python-string-contains-substring-summary/#t=100.0
So the first one is called Strings and Character Data in Python.https://realpython.com/lessons/python-string-contains-substring-summary/#t=104.29
01:47https://realpython.com/lessons/python-string-contains-substring-summary/#t=107.31
That exists as a tutorial as well as a course,https://realpython.com/lessons/python-string-contains-substring-summary/#t=107.31
if you want to learn more about strings in general.https://realpython.com/lessons/python-string-contains-substring-summary/#t=110.21
Then we have all the resources on regular expressions and building regexes inhttps://realpython.com/lessons/python-string-contains-substring-summary/#t=112.47
Python. There’s a tutorial and a video course as well.https://realpython.com/lessons/python-string-contains-substring-summary/#t=116.32
01:59https://realpython.com/lessons/python-string-contains-substring-summary/#t=119.58
And then there’s also a bunch of resources about pandas.https://realpython.com/lessons/python-string-contains-substring-summary/#t=119.58
And here I wanted to highlight the article on the pandas DataFrame that alsohttps://realpython.com/lessons/python-string-contains-substring-summary/#t=122.64
exists both as a tutorial and the course.https://realpython.com/lessons/python-string-contains-substring-summary/#t=126.96
02:09https://realpython.com/lessons/python-string-contains-substring-summary/#t=129.91
So these are three directions that you can continue your learning onwards fromhttps://realpython.com/lessons/python-string-contains-substring-summary/#t=129.91
here. And I hope you had fun and thanks for watching.https://realpython.com/lessons/python-string-contains-substring-summary/#t=134.34
My name is Martin and hope to see you around here at Real Python.https://realpython.com/lessons/python-string-contains-substring-summary/#t=137.87
Become a Memberhttps://realpython.com/account/join/
https://realpython.com/lessons/python-string-contains-substring-quiz/
Overviewhttps://realpython.com/courses/python-string-contains-substring/
Check if a Python String Contains a Substring (Overview) 02:00 https://realpython.com/videos/python-string-contains-substring-overview/
Confirm the Presence of a Substring 04:31 https://realpython.com/videos/confirm-substring-python/
Generalize Your Substring Check 04:10 https://realpython.com/videos/generalize-substring-check/
Learn More Using String Methods 01:49 https://realpython.com/lessons/string-methods-python-substring/
Use .count() to Get the Number of Occurrences 02:30 https://realpython.com/lessons/count-substring-python/
Use .index() to Get the Location of the Substring 02:35 https://realpython.com/lessons/index-python-substring/
Avoid Using .find() to Check for Substrings 05:20 https://realpython.com/lessons/avoid-find-python-substring/
Get to Know Regex for Finding Substrings 01:32 https://realpython.com/lessons/substrings-regex-python-intro/
Match a Substring Using re.search() 03:51 https://realpython.com/lessons/substring-re-search-python/
Explore a Match Object 03:25 https://realpython.com/lessons/match-object-substring/
Find All Pattern Matches 03:28 https://realpython.com/lessons/find-pattern-matches-python/
Get All Matches as Match Objects 03:26 https://realpython.com/lessons/get-match-objects-python/
Wrap Up Finding Substrings With Regex 01:51 https://realpython.com/lessons/substrings-regex-python-summary/
Set Up and Inspect the Data 02:10 https://realpython.com/lessons/inspect-pandas-data/
Filter DataFrame Rows With .str.contains() 02:03 https://realpython.com/lessons/filter-dataframe-str-contains/
Use Regular Expressions With pandas 02:23 https://realpython.com/lessons/regular-expressions-pandas/
Check if a Python String Contains a Substring (Quiz) 11:00 https://realpython.com/lessons/python-string-contains-substring-quiz/
Check if a Python String Contains a Substring (Summary) 02:22 https://realpython.com/lessons/python-string-contains-substring-summary/
Privacy Policyhttps://realpython.com/privacy-policy/

Viewport: width=device-width, initial-scale=1, shrink-to-fit=no, viewport-fit=cover

Robots: max-image-preview:large


URLs of crawlers that visited me.