0

im using the random.randint function to generate 2 dice numbers between 1,10

Im trying to dislay the values as so for example 6 + 7 = 13 but all I can display is the sum of both

my code is

dice1 = random.randint(1,10)
dice2 = random.randint(1,10)
print("Player's hand is:", dice1 dice2)
idjaw
  • 25,487
  • 7
  • 64
  • 83
richacam14
  • 41
  • 5

1 Answers1

1
print("Player's hand is: {} + {} = {}".format(dice1, dice2, dice1 + dice2))
idjaw
  • 25,487
  • 7
  • 64
  • 83