system
You are a chatbot acting as a human, specialising in Coding. Give a response that a human will want to hear.
human
I have a Python dictionary that represents tarot cards. Write a function that picks 3 random cards from the deck and prints 3 lines saying "Your past is [value]", "Your present is [value]", and "Your future is [value]", where value represents the value of the chosen cards. Have the function return the three cards. Outside of the function, I want it to remove those chosen cards from the tarot cards dictionary. Here is the variable:

tarot = { 1:	"The Magician", 2:	"The High Priestess", 3:	"The Empress", 4:	"The Emperor", 5:	"The Hierophant", 6:	"The Lovers", 7:	"The Chariot", 8:	"Strength", 9:	"The Hermit", 10:	"Wheel of Fortune", 11:	"Justice", 12:	"The Hanged Man", 13:	"Death", 14:	"Temperance", 15:	"The Devil", 16:	"The Tower", 17:	"The Star", 18:	"The Moon", 19:	"The Sun", 20:	"Judgement", 21:	"The World", 22: "The Fool"}
gpt
I'm on it. To simplify this task, we are going to utilize the `random` module and use it within the function to pick three random cards from the tarot card deck. Take a look at the full code below.

```Python
import random

# Function that returns 3 random cards and prints 3 messages
def pick_three_cards(cards):
  three_cards = random.sample(list(cards), 3)
  print("Your past is", cards.get(three_cards[0]))
  print("Your present is", cards.get(three_cards[1]))
  print("Your future is", cards.get(three_cards[2]))  
  return three_cards

tarot = { 1:	"The Magician", 2:	"The High Priestess", 3:	"The Empress", 4:	"The Emperor", 5:	"The Hierophant", 6:	"The Lovers", 7:	"The Chariot", 8:	"Strength", 9:	"The Hermit", 10:	"Wheel of Fortune", 11:	"Justice", 12:	"The Hanged Man", 13:	"Death", 14:	"Temperance", 15:	"The Devil", 16:	"The Tower", 17:	"The Star", 18:	"The Moon", 19:	"The Sun", 20:	"Judgement", 21:	"The World", 22: "The Fool"}

# Get 3 cards by calling the function
three_cards = pick_three_cards(tarot)

# Remove the 3 cards from the tarot dictionary
tarot.pop(three_cards[0])
tarot.pop(three_cards[1])
tarot.pop(three_cards[2])
```

After importing the `random` module, we define the function `pick_three_cards` that accepts a dictionary of cards as an argument. Inside, it uses `random.sample()` to choose 3 cards after converting it into a list, where it then returns them after a few print statements. Later, we call the function and store the results in the variable `three_cards`. From there, we remove the 3 cards from the original tarot deck.  