Going through a string and see if it contains the second parameter
<p>Hi my question is that i want a function that would have two parameter one being a tweet and another being a hashtag and it will return True if and only if the hashtag is in the tweet and false otherwise.</p>

<p>Examples: </p>

<p><code>contains_hashtags('I like bats #batman', 'batman')</code> results in True</p>

<p><code>contains_hashtags('I like bats #batman', 'bat')</code> results in False because its not the same as #batman.</p>

<p>So far I have </p>

<pre><code>def contains_hashtags(tweet, hashtag):
tweet.split(" ")
for char in tweet:
    if tweet.startswith(hashtag):
        return True
    else:
        return False
</code></pre>

<p>I tried splitting the tweet first then going through each character and see if it startswith the hashtag</p>