jeudi 23 septembre 2021

Random items in a list [closed]

I want the user to input a number into the input and with that number select random items from a list, how can I do this?

import random

numbers = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']

nr_letters= int(input("How many letters would you like in your password?\n"))




Aucun commentaire:

Enregistrer un commentaire