Computer Science, asked by Meghanatiruvuru, 10 months ago

Jim has recently started gambling. He plays Number BlackJack. In this game, the players draw numbered cards and whoever has a value closer to 21 wins. However, if the number goes over 21 then both lose. If both have the same value, then also both of them lose.

Given the values possessed by 2 players, you have to tell us who wins.

Complete the given function solve that takes input 2 integers: the first integer is Player 1's value and 2nd integer is Player2's value. You have to print Player1 if Player1 wins, Player2 if Player2 wins and Rematch if both lose. python3

Answers

Answered by usmanmalik443
1

Answer:

it's super duper muper cover loper difficult

Answered by vishalnelaturi
1

def solve(num1,num2):

   

   if(num1>21 and num2>21 ):

       print("Rematch")

   elif(num1==num2):

       print("Rematch")

   elif(num1>num2):

       print("Player1")

   elif(num2>num1):

       print("Player2")

   else:

       print("Rematch")

Similar questions