import random

x = int(input("Enter the random number between 1 to 10: "))
n=random.randint(1,10)
print("The System random number is ",n)
if n == x:
  print("CONGRATULATIONS!! Correct Guess")
else :
  print("BETTER LUCK NEXT TIME. Wrong Guess.")
     
           
Note: Need to be arranged in compiler after copied
   

 OutPut:

Enter the random number between 1 to 10: 5
The System random number is 6
BETTER LUCK NEXT TIME. Wrong Guess.