Request for a name and display any random positive integer from 1 to 10

Question:

Repl link:

import random

members = []

# Get member names
for i in range(10):
    name = input("Enter member name: ")
    members.append(name)

# Generate random number and display
random_number = random.randint(1, 10)
print("The random number is:", random_number)

Hey @gamevor542, welcome to Replit Ask!

What exactly do you need help with? From what it seems, you’ve already provided code that should work.

3 Likes