Making a Demo of a Game I thought would be cool, but I need help

Chat, I might just be braindead, cause I can’t get this code to work more than once. I’m pretty new at this, but I didn’t think I was that new :’)

import random
def number_fcuk():
    right_answer = random.randint(1,10)
    points = 0
    while True:
        if points == 10:
            print("alright, I don't need you anymore. Byeeeeee :D")
            break
        guess = int(input("Howdy :D Guess a number or you'll probably die :D Well, what're you waiting for?!:"))
        if guess == right_answer:
            points += 1
            print("You actually got that right? I guess you aren't as stupid as I thought. Let's see if it's a lucky streak after all :D I think you have about ",(points),"points by now.")
            right_answer = random.randint
        elif guess + 1 == right_answer or guess - 1 == right_answer:
               print("...you know what, you can have that one.")
               points += 0.5
        elif guess > right_answer:
               print("Try thinking smaller. Maybe not as small as your IQ, but I digress")
        else:
            print("What was that, your body count? Maybe the size of your friend group? Oh, oh! The amount of sh!ts I give about your non-existent love life!")

number_fcuk()

In order to preserve formatting, please select any code or traceback that you post and then click the </> button.

There. Happy?

I can see that you have:

right_answer = random.randint

That should be:

right_answer = random.randint(1,10)

You also have:

elif guess  right_answer:

That’s missing a comparison operator.

For the first time, it does:

right_answer = random.randint(1,10)

It picks a random number.

For the second time, it does:

right_answer = random.randint

That doesn’t pick a random number; that assigns the function (OK, method) to right_answer.

That’s not what’s intended to do.

I appreciate you, bro