Question: Question 1 1 Point Write a python FUNCTION named flip a card() which returns random number between 1 and 13. After the function deffinition, write
Question 1 1 Point Write a python FUNCTION named flip a card() which returns random number between 1 and 13. After the function deffinition, write python code that flipping 3 cards and prints "you win" only of 3 cards are equals. Otherwise it prints "you lose". Use the editor to format your answer Question 2 2 Points Write a python program that creates a list Marks, and then asks the user to enter a value (for examplem). The program checks all Marks that are less than or equal m, and prints only those values. Algorithm (pseudocode): 1. Crate a list Marks with values 10.5, 12, 5, 7, 19.55, and 3.1 2. asks user to enter value, m 3. set 1 to be the number of items of Marka 4. for i from 0 to L-11 if Marks[1]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
