jeudi 26 novembre 2020

python print out same random number

Generate three random integers between 1 and 20, and check if exactly two of them are the same. If exactly two are the same, tell the user “Exactly two numbers are the same”. In any case, print out all three randomly generated numbers as well. (without using count() and function()




Aucun commentaire:

Enregistrer un commentaire