Question: Question 1 : Draw a playing card ( 2 5 marks ) a ) For this question, you will build six helper functions and one
Question : Draw a playing card marks
a For this question, you will build six helper functions and one main function that must work together to draw a playing card of any suit from ranks Ace to Nine. As you write your program, test each function individually by calling it with different function calls. Only move on to the next function once you are certain that your current function works. Remember, every line of code written should be inside of a function. Here are the criteria:
Your program
LQinitials.py must start with a commented academic integrity pledge, ID Box, and program purpose. EACH of the six helper functions as well as the main function must state its purpose in comments. Documentation matters?
Only Python syntax taught in lecture andor lab is permitted in lab submissions.
Here are the function specifications:
Helper function: drawtop
The first helper function has been provided for you. Copy this function into your program EXACTLY as written. The sereenshot provided shows one function call using this function. Try calling it with other function calls so you are sure how it works.
Purpose: Draw the top border of the card as well as
& the rank in the top left corner
def drawtoprank:
print
print torank
Helper function: drawsymool is
drawsymbols num symbol:
This function will draw the number of symbols indicated between zero to three on one line. The symbols will be space separated and appear centered within the edge borders. There MUST always be nine characters per line, counting symbols, spaces, and edges I Refer to the screenshot for examples.
NOTE: The table below shows the Unicode string for each French card suit.
tableNameUnicode,SymbolClubuDiamonduHeartuSpadeu
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
