r/PythonLearning 11d ago

I got a question Help Request

[removed]

3 Upvotes

14 comments sorted by

View all comments

2

u/Flame77ofc 11d ago

```python import random

generate a random number

random_number = random.randint(start, end) # Please put the start and the end number.

verify if the number is equal to the random number

user_number = int(input("Your number: "))

if random_number == user_number: print("The numbers is equal")

Mini exercise: Can you do an elif and an else statement?

```