input: Write a function to query Twitter to get the most recent tweets from a user. The function should authenticate using Twitter's API and fetch the tweets. If the function is successful, it should print the text of each tweet. If the user does not exist or the authentication fails, the function should return an error message.
  
  
  def get_recent_tweets(username):
      import tweepy
      
      # Authenticate to Twitter
      auth = tweepy.OAuthHandler("CONSUMER_KEY", "CONSUMER_SECRET")
      auth.set_access_token("ACCESS_TOKEN", "ACCESS_TOKEN_SECRET")
      
      # Create API object
      api = tweepy.API(auth)
      
      try:
          # Get the most recent tweets from the given user
          tweets = api.user_timeline(screen_name=username)
          for tweet in tweets:
              print(tweet.text)
      except tweepy.TweepError as e:
          return str(e)
  
  assert get_recent_tweets("@elonmusk") != "Error"
  assert get_recent_tweets("@nonexistentuser") == "Error"
  
output: def get_recent_tweets(username):
      import tweepy
      
      # Authenticate to Twitter
      auth = tweepy.OAuthHandler("CONSUMER_KEY", "CONSUMER_SECRET")
      auth.set_access_token("ACCESS_TOKEN", "ACCESS_TOKEN_SECRET")
      
      # Create API object
      api = tweepy.API(auth)
      
      try:
          # Get the most recent tweets from the given user
          tweets = api.user_timeline(screen_name=username)
          for tweet in tweets:
              print(tweet.text)
      except tweepy.TweepError as e:
          return str(e)