Instructions
Use your solution from Programming Assignment 5 (or use yourinstructor's solution) to create a modular Python application.Include a main function (and a top-level scope check),and at leastone other non-trivial function (e.g., a function that deals the newcard out of the deck). The main function should contain the loopwhich checks if the user wants to continue.
Include a shebang, and ID header, descriptive comments, and useconstants where appropriate.
Sample Output (user input in red):
Welcome to the card dealer!
Here is your first card:
5 of hearts
Would you like another card? (y or n) y
King of hearts
Would you like another card? (y or n) y
Jack of clubs
Would you like another card? (y or n) y
King of spades
Would you like another card? (y or n) n
final hand value = 35
final hand: ['5 of hearts', 'King of hearts', 'Jack of clubs','King of spades']
Submission
Attach and submit your Python file to this assignment.