READING

python ile rasgele sifre uretmek – 2

python ile rasgele sifre uretmek – 2

Merhaba, daha kisa ve oz hali asagidaki gibi.
import random
import string
def rasgele (kac):
    karakterler = string.ascii_letters + string.punctuation + string.digits
    rand = (random.sample(karakterler, kac))
    print(*rand, sep="")

rasgele(20)

RELATED POST

Your email address will not be published. Required fields are marked *