> Python coding?

Python coding?

Posted at: 2014-12-18 
I'm working on code for a tweet program in python. The code should evaluate to true if the tweet contains a hashtag symbol.

How would I go about writing the if-statement?

tweet = "Hello from twitter. #newb"

def ContainsHash(t):

????return t.find("#") > -1

print ContainsHash(tweet)

better if u ask on http://stackoverflow.com/

I'm working on code for a tweet program in python. The code should evaluate to true if the tweet contains a hashtag symbol.

How would I go about writing the if-statement?