Solving doubt about module-2 bingo problem

Continuing the discussion from Module 2 challenge:

Hi taleishwari , you can use random module to solve this bingo problem easily.

import random

Generate a random number between 1 and 20

random_number = random.randint(1, 20)

Prompt the user to enter a number

user_number = int(input("Enter a number between 1 and 30: "))

Check if the user’s number matches the random number

if user_number == random_number:
print(“Better luck next time!”)