Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Final Prat Luce Quiz nklin Blay: Attempt 1 White a program that prompts the user

ID: 3824967 • Letter: F

Question

Final Prat Luce Quiz nklin Blay: Attempt 1 White a program that prompts the user for a month and a day. Assume that months are specified as an integer between 1 and 12 for January, 2 for February, and so on) and that the day of the month is a number between 1 and 31. lf the date falls between 1216 and 315, you should print if the date falls between 3/16 and 6/15, you should print "Spring. If the falls between and 915, you should print Summer And if the date falls between 9 16 12 you should print "Fall

Explanation / Answer

import random SUITS = ("D", "H", "C", "S") suit = random.choice(SUITS) number = random.randint( 1,13) card_names = {'ace': 1, 'jack': 11, 'queen': 12, 'king': 13} for i in range(2, 11): card_names[str(i)] = i guessCount = 0 Guess_Suit = input("Start by guessing the Suit: ") guessCount = guessCount + 1 while guessCount < 9: Guess_Suit = Guess_Suit.upper() guessCount = guessCount + 1 if Guess_Suit == suit: print("Correct!") break elif Guess_Suit != suit: print('Wrong') Guess_Suit = input("Guess the Suit again: ") Guess_number = input("Now Guess the card number or name of the face card:") Guess_number = card_names.get(Guess_number.lower().strip()) guessCount = guessCount + 1 while guessCount < 9: if Guess_number is None: print("The card you picked is invalid") Guess_number = input("Pick another one: ") Guess_number = card_names.get(Guess_number.lower().strip()) guessCount = guessCount + 1 elif Guess_number == number: print("THATS IT YOU WON") break else: print('Wrong') Guess_number = input("Pick another one: ") Guess_number = card_names.get(Guess_number.lower().strip()) guessCount = guessCount + 1
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote