Write a functions goFishFor (card, hand) instead of goFishin (card, hand) in the code below import random
Question:
Write a functions goFishFor (card, hand) instead of goFishin (card, hand) in the code below import random # Here I defined the two lists needed using the split() suits-. "Clubs Diamonds Hearts Spades".split0 values - "Ace Two Three Four Five Six Seven Eight Nine Ten Jack Queen King split) # This function generates a random card def randomCard): return values random.randint(0.12)] + of +suits[random.randint(0.3) hand p for i in range(5): hand.append(randomCardo) card randomCard) def goFishincard,hand) if card in hand hand.remove(card) return (card, hand] else: return 'Go Fish The only difference between the two functions you're being asked to write is that gofishin should use in operator to find card in hand while goFishFor should use a for loop