Random Winner Generator - Python Tkinter GUI Tutorial #39

Publicado el: 13 febrero 2020
en el canal de: John Elder
19,166
515

Yesterday I announced a sweapstakes to give away a Codemy membership. In this video we'll write some code to randomly select our winner! HINT: I picked more than one winner!


I took all the entries and added them to a Python list. I then converted the list into a Python set to automatically remove any duplicates, then converted it back to a Python list.


Next I generated a random number between 0 and the length of the list (minus one). Now we can use that to pick the winner from the list!



I wrapped the whole thing in a tKinter GUI so we would have something to look at!


En esta página del sitio puede ver el video en línea Random Winner Generator - Python Tkinter GUI Tutorial #39 de Duración hora minuto segunda en buena calidad , que subió el usuario John Elder 13 febrero 2020, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 19,166 veces y le gustó 515 a los espectadores. Disfruta viendo!