8000 Funcion desordena-listas: · Issue #1 · pythonvlc/retos · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Funcion desordena-listas: #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you ac 75DB count related emails.

Already on GitHub? Sign in to your account

Open
molikitic opened this issue Apr 18, 2024 · 0 comments
Open

Funcion desordena-listas: #1

molikitic opened this issue Apr 18, 2024 · 0 comments

Comments

@molikitic
Copy link

from random import randint as rd
def desordenaLista(lista):
# ln = lista nueva & nr = numero random
ln = []
while len(lista)!=0:
nr = rd(0,len(lista)-1)
ln.append(lista.pop(nr))
return ln

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0