Python Installer la bibliothèque aléatoire
sudo pip3 install random2
Nels
sudo pip3 install random2
import random #imports random module which is built-in
random_fruits = ['apple', 'mango', 'banana'] #make a list of fruits and store it in the variable
print(random.choice(random_fruits)) #print fruits randomly
pip install random2
from random import
users_pass=input("Enter your password")
password={ 'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'}
guess=""
while(guess!=users_pass):
guess=""
for letter in range(len(users_pass)):
guess_letter=password{randint(0,25)}
guess=str(guess_letter)+str(guess)
print(guess)
print("Your password is,guess")