input: Write a function to query Twitter and get the most recent tweets from a specified user. The function should authenticate with Twitter using OAuth, create an API object, and then fetch the user's timeline. Finally, it should print out each tweet's text. If the username is not found, the function should print an appropriate error message.
  
  
  import tweepy
  
  def get_recent_tweets(username):
      # 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)
      except tweepy.TweepError as e:
          print(f"Error: {e}")
          return
  
      for tweet in tweets:
          print(tweet.text)
  
  # Test cases
  get_recent_tweets("@elonmusk") # Should print recent tweets by Elon Musk
  get_recent_tweets("@nonexistentuser") # Should print an error message
  
output: def get_recent_tweets(username):
      # 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)
      except tweepy.TweepError as e:
          print(f"Error: {e}")
          return
  
      for tweet in tweets:
          print(tweet.text)