• Cursos
  • Compilador de Código
  • Discutir
  • Preços
  • Teams
Menu
0

Random

Given a list, how do you get a random element from it?

python
23rd Oct 2019, 1:40 AM
Seca
3 Respostas
+ 4
Lookup the random module. https://www.sololearn.com/discuss/1952201/?ref=app https://www.sololearn.com/discuss/1843464/?ref=app https://www.sololearn.com/discuss/335729/?ref=app https://www.sololearn.com/discuss/1146071/?ref=app https://www.sololearn.com/discuss/1205128/?ref=app https://www.sololearn.com/discuss/444125/?ref=app https://www.sololearn.com/discuss/1593652/?ref=app https://www.sololearn.com/discuss/1081212/?ref=app
23rd Oct 2019, 1:51 AM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 1
thank you to you both
23rd Oct 2019, 3:46 AM
Seca
+ 1
it works
23rd Oct 2019, 3:46 AM
Seca

Costuma ter perguntas como essa?

Aprenda de maneira mais eficiente, de graça:

  • Introdução ao Python

    7.1M de alunos

  • Introdução ao Java

    4.7M de alunos

  • Introdução ao C

    1.5M alunos

  • Introdução ao HTML

    7.5M alunos

Ver todos os cursos
Quente hoje
Hi help me I am new
2 Votes
My codebits section is full of deleted codes
12 Votes
Why are there like 10 community-made lessons?
0 Votes
How do I solve all test cases for popsicles problem?https://www.sololearn.com/coach/3?ref=app
0 Votes
Why so many mathematical questions in challenges?
0 Votes
Where did mess up....
1 Votes
Where can I learn c#
0 Votes
I have an error in a problem and I don't know what the correct answer is
1 Votes
best language if i want to learn about AI
0 Votes
DBA for finalist university student projects
0 Votes