<jupyter_start><jupyter_text>Now You Code 3: Twitter Hastag DetectorLet's use Python's built-in string functions to help us write a program to detect Twitter hashtags in text. Here's how it should work:Example Run 1:```Enter Tweet: You got a 50 on the exam? iamsad for you!Hashtag: iamsad```    Example Run 2:```Enter Tweet: lol too funny joke hahaHashtag: lolHashtag: jokeHashtag: haha```Example Run 3:```Enter Tweet: Happy birthday @mafudgeHashtag: none```Your approach should be to split the text into words and for each word look for the hashtag `` at the start of the word.  Step 1: Problem Analysis ProgramInputs:enter a tweetOutputs:if there is no hashtag it will print noneif there is a hashtag it will print the statementAlgorithm (Steps in Program):1. enter a tweet2. create an if statement for when the sentence has a hashtag3. set a for-in for the word in the tweet that has the hastag4. set the else to when the sentence has no hashtag5. print statements will be the hashtags, or none.<jupyter_code>## Step 2: todo write code for full problem
tweet = input("Enter a tweet:")
if tweet.find("#")>= 0:
    for word in tweet.split():
        if word.startswith("#"):
            print("hashtag: ", word)
else:
    print("Hashtag: none")<jupyter_output>Enter a tweet:it wights 64# that's #heavy
hashtag:  #heavy
StarcoderdataJupyterStructuredCleanDedup