Please use functions to abstract the code below. The goal of this is to make the code more readable and organized.The new code should run the exact same way as the code below.
Execution, readability and cleanliness areimportant.
Once you have completed this, please write approx 1-2pages explaning
your technique of abstracting the code. Please discussyour decisions, your process, your
struggles, etc.
Please do not submit a handwritten response as this isnot legible in most cases.
Thank you.
from random import randint
def deck_of_cards():
face_val =[‘Ace’,’2′,’3′,’4′,’5′,’6′,’7′,’8′,’9′,’10’,’J’,’Q’,’K’]
cards_val = [‘Hearts’,’Spades’,’Clubs’,’Diamonds’]
decks = []
for x in cards_val:
for
PayPal Gateway not configured
PayPal Gateway not configured