input: Write a python function to authenticate and interact with Twitter API to like and follow users who post tweets with a specific hashtag. 
  assert interact_with_tweets(api, '#news') == True
  assert interact_with_tweets(api, '#python') == True
  assert interact_with_tweets(api, '#tech') == True
output: def interact_with_tweets(api, hashtag):
      try:
          # Search for tweets with the specific hashtag
          tweets = api.search_tweets(q=hashtag, count=10)
          
          for tweet in tweets:
              # Like the tweet
              api.create_favorite(tweet.id)
              
              # Follow the user who posted the tweet
              api.create_friendship(tweet.user.id)
          
          return True
      except Exception as e:
          print(f"An error occurred: {e}")
          return False